Luminol icon indicating copy to clipboard operation
Luminol copied to clipboard

Switch/Variable Grouping

Open zimberzimber opened this issue 1 year ago • 3 comments

Is your feature request related to a problem? Please describe.

Often times you end up in a situation where switches or variables are all over the place instead of in a fixed range, usually as a result of going back to tweak things and adding new switches, so finding related switches or variables can get tedious sometimes.

Describe the solution you'd like

The ability to group switches and variables under labels independent of their IDs would allow for easier managing without too much hassle, or relying on naming conventions like cfg: xxx which usually only add more clutter and confusion.

When viewing switches/variables, there would be a view where you'll have a list of drop downs labeled with their name. Each drop down will display both the switches and the variables grouped under it, and will allow you to select a switch/variable from the group. If you're viewing it from a switches context, you'll still see the variables, but you won't be able to insert them, and vice versa.

The user would be able to manage these groups, by creating new ones, renaming/deleting existing ones, and adding entries to the groups.

This should not affect the game logic, it's just an easier way to organize things in editor.

Describe alternatives you've considered

Using prefixes in switch/variable names, which isn't very helpful when the switches/variables are all over the place, and make the rest of the name less readable.

Additional context

The structure should be as simple as:

{
  "group_name": [100, 101, 102]
}

Also might be worth notifying the user when a switch/variable is in more than one group.

zimberzimber avatar Jun 08 '23 18:06 zimberzimber

If you could draft up a UI that would be great!

Speak2Erase avatar Jun 08 '23 21:06 Speak2Erase

✨*Graphic design is my passion~*✨ image

It's closer to the RMXP styled menu than what you have going for Luminol, but I believe it conveys the idea well enough.

zimberzimber avatar Jun 08 '23 21:06 zimberzimber

This could work well with #32.

Speak2Erase avatar Aug 17 '23 01:08 Speak2Erase