From: Athene Allen Date: Sat, 22 Mar 2025 15:24:20 +0000 (+0000) Subject: pipboy update X-Git-Url: https://fortfriendship.online/gitweb/gnargle.github.io.git/commitdiff_plain/d7eeb50a66b73abbd821cae38570b321f7b464af?ds=sidebyside pipboy update --- diff --git a/img/projects/pipboy/inputWorking.mp4 b/img/projects/pipboy/inputWorking.mp4 new file mode 100644 index 0000000..8706110 Binary files /dev/null and b/img/projects/pipboy/inputWorking.mp4 differ diff --git a/projects/pipboy.html b/projects/pipboy.html index a559f8d..8fbada2 100644 --- a/projects/pipboy.html +++ b/projects/pipboy.html @@ -783,6 +783,33 @@
  • Move our selection up and down the list with each click
  • Pretty simple! OK, lets go do that.

    + Code Updated. Check the github link to keep up. +

    And look at that! We're done.

    + +

    + Nothing really special to talk about here, just some basic + increment/decrement handling and looping back to the start of + the list when necessary. +

    +

    + There is a specific wrinkle of having to deregister the input + event. Early on in my testing I hadn't done that and it kept the + .js loaded even after removing the SD card, which meant it + looked like any edits I made weren't actually working. In order + to prevent this I added gracefulClose() which deregisters the + handler and shows the main menu again. +

    +

    + Last thing here is really to handle what happens when we have + more perks than will fit in our available space. Then this + screen is basically done! +