Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch/Variable Grouping #27

Open
zimberzimber opened this issue Jun 8, 2023 · 3 comments
Open

Switch/Variable Grouping #27

zimberzimber opened this issue Jun 8, 2023 · 3 comments
Labels
enhancement New feature or request
Milestone

Comments

@zimberzimber
Copy link
Member

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 zimberzimber added the enhancement New feature or request label Jun 8, 2023
@Speak2Erase
Copy link
Member

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

@zimberzimber
Copy link
Member Author

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.

@Speak2Erase
Copy link
Member

This could work well with #32.

@Speak2Erase Speak2Erase added this to the v1.0 milestone Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants