YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
15 stars 8 forks source link

Improve "Open Editor" context menu in scrip inspector #3061

Open AvioxArcade opened 1 year ago

AvioxArcade commented 1 year ago

Is your feature request related to a problem?

the inspector can be a handy way to reference one script while working on another. There are times I'm doing this and realize I need to make a quick edit to the script I'm referencing in the inspector, which requires I go open the script, navigate to the line I was looking at, make the change, then return to the script I'm working on. It breaks flow.

Describe the solution you'd like

Consider adding a "Read-only" checkbox above/at the top of the script in the inspector. It would be checked by default. To make a change, simply un-check the "read-only" checkbox and make the change. I can imagine "read-only" re-ticking when the inspector changes focus to a different asset.

Describe alternatives you've considered

It also may be a helpful alternative for the "Open Editor" button to auto-scroll to the same top line that's in view in the inspector, so longer scripts don't require finding the area you were looking at in the inspector.

Additional context

No response

jackerley commented 1 year ago

There are planned changes to the code editor to more easily allow this kind of behaviour YoYoGames/GameMaker-Bugs#3219

Having Open Editor button open at that line is a good suggestion