Adventure Game Studio

AGS Development => Editor Development => Topic started by: Snarky on Thu 09/11/2017 11:40:05

Title: Editor bugs - enums and structs ("Go to def"/"Find all instances"/auto-complete)
Post by: Snarky on Thu 09/11/2017 11:40:05
I've noticed that a few functions in the editor don't work for enums, and one other thing for user-defined structs (I'm testing in version 3.4.0.16).

Enums
Code (ags) Select
  CharacterDirection exitDirection = eDirectionLeft;

You get no dropdown after "=". After "eDi" you get the full list with "eDirectionDown" (the first matching token) highlighted. But:

Code (ags) Select
  CharacterDirection exitDirection;
  exitDirection = eDirectionLeft;


On the second line you get a dropdown after "=" with just the CharacterDirection values.

Ideally you would get a list with all the CharacterDirection values AND all the CharacterDirection variables only. Alternatively the list of values could show up after the =, but if you type something else it could disappear and after three characters you'd get the the full list. In any case, it should probably behave the same way whether you define and set the variable on one line or multiple.

Structs