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

Code editor 2: Make instance variables in global functions show up as unset color instead of global color #6906

Open
KormexGit opened this issue Jul 26, 2024 · 2 comments
Labels
feature request New feature (or a request for one)

Comments

@KormexGit
Copy link

Is your feature request related to a problem?

Since #6809 was closed as intentional, I'm submitting this FR instead to request it be, well, not intentional. Having these variables show up in global color could be quite confusing, since it makes it seem like the variables are globals. It also is a coloring style otherwise only possible through globalvar (which is deprecated), since globals are supposed to always have global. in front.

Describe the solution you'd like

Instead of having feather show that any variables set in a global function must be globals, instead have it go for a more middle ground "I don't know what you're intending", and have the variables show up in grey, the color for variables that are unset or unknown.

Describe alternatives you've considered

No response

Additional context

There was a discussion about this in Gamemaker Kitchen

@KormexGit KormexGit added the feature request New feature (or a request for one) label Jul 26, 2024
@DragoniteSpam
Copy link

if the whole thing was being written from scratch, this might be okay. but GMS2 users have 8 years of magenta variables being "global variables" and suddenly seeing magenta being used for something completely different is needlessly confusing

@Totobal5
Copy link

I completely agree, seeing magenta color where there is no global variable is weird and I don't like it.

@stuckie stuckie moved this from Triage to Backlog in Team Workload Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature (or a request for one)
Projects
Status: Backlog
Development

No branches or pull requests

3 participants