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

Script editor should re-open on the previously selected slot/event #37

Open
samdeane opened this issue Oct 18, 2021 · 3 comments
Open
Labels
enhancement New feature or request NQ-COMMENTED This issue or pull request already exists

Comments

@samdeane
Copy link

(previously posted here)

Not strictly a Lua improvement, but definitely a quality-of-life scripting improvement:

When re-opening the script editor on a control unit, the previously selected slot and event should be re-selected, and the text cursor should be restored to its previous position.

@Archaegeo Archaegeo added the enhancement New feature or request label Apr 26, 2022
@NQ-Ligo
Copy link

NQ-Ligo commented Apr 26, 2022

Hello !

The current editor is not the final version, we have many changes and improvements planned, so this is clearly something we will consider for that.

@Archaegeo Archaegeo added the NQ-COMMENTED This issue or pull request already exists label Apr 26, 2022
@samdeane
Copy link
Author

The current editor is not the final version, we have many changes and improvements planned, so this is clearly something we will consider for that.

Please please please don’t bother making a fancy editor in-game, just provide some hooks which allow the scripts to be edited externally (eg with VS Code).

Any effort you do making the editor fancy will be essentially re-inventing the wheel, and even if you can eventually get it as slick as VS Code is, you will have spent a vast amount of programmer time doing it, and that time could be much better spent elsewhere.

@samdeane
Copy link
Author

(I can explain further how I think the interface with an external editor should work, but I won’t bother unless anyone is actually interested…)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request NQ-COMMENTED This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants