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
[gui/quickfort] implement interactive controls for repetitions and transformations #392
Conversation
|
needs unit tests. edit: done |
|
My only slight concern about Ctrl-Arrow is that it's bound to workspace switching on macOS by default. People can change that and/or DF, but I'm not sure how best to represent that in DF. I think your way is fine. |
|
I guess an alternative could be to have |
|
A couple more things:
|
I'll try a space. I originally had a comma to separate it, but since commas are rendered as ground rubble, it didn't really help.
This is a good idea, but WrappedLabel needs to be extended to support text attributes. (Option 2, I could go back to my pre-autowrapping version of the help text, which was just a list of Labels with text carefully measured on each line to limit length. Option 3, I could create a Label with the word "Enter" and render it over the wrapped text.)
I kept the nomenclature set by Python quickfort: https://github.com/joelpt/quickfort#transformations-simple-repetition There is currently no way to repeat North/South/East/West. I considered implementing it, but I didn't see a strong use case. The "repetition patterns" that python quickfort offers is nifty, but seems to me to be too niche. I can, of course, implement a similar feature if our users request it.
I can add documentation to gui/quickfort's help text so at least it is explained somewhere. Also, I could potentially draw arrow characters instead of the word "Arrows" for the hotkey hint. Would that make it clearer that ctrl-down is an option that you can try? |
|
Forgot to get back to you on this. I like the arrow keys... wonder why DF doesn't do that. Looks good! |


Fixes DFHack/dfhack#2018
Depends on DFHack/dfhack#2147
UI for controlling repetitions and transformations in quickfort blueprints.
There is some UI behavior that is unique to this script that could use some feedback about whether it works. The repetitions counter can be modified by multiple hotkeys or edited directly. Is that obvious from the presentation?
Separate hotkey labels for each transformation type crowded the UI a little too much, so I collapsed them into just a generic "Ctrl+Arrow" label. Does that work?
The transformations get "auto-reduced" so the transformation list doesn't get too long. Longer transformation sequences will get automatically replaced with shorter equivalent sequences. Is that confusing?
Finally, the repetition and transformation settings get saved between script invocations. Should it be? The thinking here is that if you are applying a sequence of blueprints, they are likely to all need to be transformed the same way.
Screenshot:
