Draw action hotkeys for Classic ASCII glyphs mode in the corresponding panels #5552
Closed
definability
started this conversation in
Ideas
Replies: 2 comments 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Thanks @quietust for your advice. It worked. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When the Classic ASCII glyphs are enabled, the structure placement menu looks weird: the tile placeholders (definitely designed for the Premium graphics) look incomplete and are begging to be filled (see the picture)

The challenge here is drawing the hotkey in a precise position. I can take the position of the top overlay (compare dfhack.gui.getCurFocus() against
dwarfmode/Building
) and calculate the offsets manually. Will SC_VIEWSCREEN_CHANGED help me detect that the user called the build menu?I can parse the tiles to determine which menus are active, but I would be happier to discover that the DFHack Lua API already has such features.
From the code snippet, I suspect there is a way to determine what building dialogue mode is currently enabled, but I need help determining how to fetch the currently active mode or, ideally, how to create a callback called when the mode is active
dfhack/library/lua/gui/buildings.lua
Lines 142 to 152 in 02bd218
How do you like the idea, and could you help me with the implementation questions?
Beta Was this translation helpful? Give feedback.
All reactions