-
Notifications
You must be signed in to change notification settings - Fork 489
move filtering of armok keybindings into cpp #4674
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -99,13 +99,20 @@ dfhack.HIDE_CONSOLE_ON_STARTUP = true | |
| function dfhack.getHideConsoleOnStartup() | ||
| return dfhack.HIDE_CONSOLE_ON_STARTUP | ||
| end | ||
| function dfhack.setHideConsoleOnStartup(value) | ||
| dfhack.HIDE_CONSOLE_ON_STARTUP = value | ||
| end | ||
|
|
||
| dfhack.HIDE_ARMOK_TOOLS = false | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this intended to be publicly accessible? If not, I would make it Same goes for
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it was intended to be publicly accessible, but this change makes it unwise to access directly. Now that I've removed references to it (gui/control-panel, docs), it's good to make it local. will make that change.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done in #4679
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. right - I knew it was previously public - was meaning to ask "is this still intended" |
||
| ---@nodiscard | ||
| ---@return boolean | ||
| function dfhack.getHideArmokTools() | ||
| function dfhack.getMortalMode() | ||
| return dfhack.HIDE_ARMOK_TOOLS | ||
| end | ||
| function dfhack.setMortalMode(value) | ||
| dfhack.HIDE_ARMOK_TOOLS = value | ||
| dfhack.internal.setMortalMode(value) | ||
| end | ||
|
|
||
| -- Error handling | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should be a mutex guarding all of these accesses (not exclusive to these two functions) because
SelectHotkeyis called from the input thread. (I haven't looked to see if there is an existing appropriate mutex)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for adding that (07ad3a2)