chrismaltby / gb-studio

A quick and easy to use drag and drop retro game creator for your favourite handheld video game system
https://www.gbstudio.dev
MIT License
8.5k stars 470 forks source link

Variable dropdown improvements #377

Open DuendeInexistente opened 4 years ago

DuendeInexistente commented 4 years ago

Is your feature request related to a problem? Please describe. The variable dropdown is too barebones:

  1. It loads lazily. I understand the performance concerns, but this is egregious when trying to reach the end. Just look at how long it takes, with the END key held pressed. Peek 2020-01-15 18-03

    As a suggestion, I think two things would solve this: Keep it loaded in memory (It's a fairly small array by even 2003 standards, c'mon), and/or make it so pressing up on the beginning automatically jumps to the very last variable, not the last variable that's loaded. This could be used as a shortcut and keep lazy loading, maybe.

  2. Variables can't be searched or typed directly, and can be difficult to find as a result. A. Keep named variables on top, in a slot between normal and local variables, as well as in the regular list. This would only be necessary for globals. B. Allow us to type variable numbers directly, either by their name or number. C. When typing said variables, use that to search in the existing ones. Again, name or number should be valid factors.

RichardULZ commented 4 years ago

Uhh, Pretty sure variables can be searched and typed directly, maybe i've just been typing $ first, but you can see the blinking cursor waiting for a search term.

DuendeInexistente commented 4 years ago

...odd, yesterday it wasn't letting my type when I noticed the cursor.