tyoeer / Chaoshead

A level editor, scripting interface, campaign editor, and reverse engineering tool for Levelhead
Apache License 2.0
4 stars 1 forks source link

Script hotkeys and making scripts faster to use #6

Closed slothybutt closed 2 years ago

slothybutt commented 2 years ago

It'd be nice if you could, let's say, when going to run a script, type in a box and set a key that performs that script for you without you having to go into the scripts menu at all. (It'd probably be a good idea to unbind it when the app closes too)

I think it would also be handy to have a setting or something to make the "Level successfully saved" or "Successfully Ran Script" boxes show up in a way where you don't have to click them, like some sort of indicator somewhere that tells you instead of having to press dismiss every time.

Unrelated but I don't want to make a new issue: It'd be nice if it told you where it put the screenshots, or put them... not in the appdata folder, at least. Took me a bit to find it. The screenshot is also a bit lower quality than just taking the screenshot yourself, but I guess it's useful for full-level stuff.

tyoeer commented 2 years ago
  1. Nice idea. Probably going to have just 1 "quick script" keybind you can bind to a script in the scripting tab though, quickly setting keybinds doesn't work that well with all the combinational logic that is possible.

  2. Modals can be quickly dismissed with Escape. I should probably make a more organised list of keybinds somewhere.

  3. The README should point you to look at the comments at the top of the script file, where it tells you that it saves to the Chaoshead userdata folder (which can also easily be opened from the Misc tab). If have the idea of adding script metadata to display in Chaoshead written down, but haven't gotten to it yet. Any other ideas on how to improve the documentation are welcome. \ If you copy the script, you can edit the ZOOM variable to change the resolution. What do you need high-res CH screenshots for? Perhaps I should change the default.

tyoeer commented 2 years ago

A hotkey has been added (in the next version) to quickly a previously specified script (you can bind it in the script interface) (it also remembers which script between sessions (that aligned more with the use-case I had in mind)).