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

Editor: clicking on "missing event function" warning should bring up the related object's events table #2589

Open
ivan-mogilko opened this issue Nov 25, 2024 · 0 comments
Labels
context: ui/ux type: enhancement a suggestion or necessity to have something improved what: editor related to the game editor

Comments

@ivan-mogilko
Copy link
Contributor

After #2556 Editor throws warnings about events that have function names in them, but no actual function defined in script.
These warnings mention object's name, but it would be more convenient if user could double click on it to bring this object up for editing, similar to how you can double click script error to bring up the line in script.

For this to work, we might need a new subclass of CompileMessage, which has something like following:

  • object's script name (it's unique in global/room namespace);
  • object's typename and id (because script names are not obligatory, sadly);
  • parent's identifier, which may be either a gui script name for the gui control, or a room number of anything in the room.

The "Goto definition" menu command already supports going to a global object, that functionality may be shared to some extent.
Going to the rooms will require opening that room. Currently editor only supports opening 1 room at a time, so preferably it should ask if it's okay to load a new one would another be open at the moment.

@ivan-mogilko ivan-mogilko added type: enhancement a suggestion or necessity to have something improved what: editor related to the game editor context: ui/ux labels Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
context: ui/ux type: enhancement a suggestion or necessity to have something improved what: editor related to the game editor
Projects
None yet
Development

No branches or pull requests

1 participant