diff options
| author | Alexander Gavrilov | 2012-09-06 12:37:29 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-09-06 12:37:29 +0400 |
| commit | d5ea05ebb88b40483b62aaf5dfe20e1b24e8a28a (patch) | |
| tree | d900522e6e8599029f5534e34fb744f0a595bb09 /library/modules | |
| parent | 8d876cc7d92faf1616d914e03c890772256ebb83 (diff) | |
| download | dfhack-d5ea05ebb88b40483b62aaf5dfe20e1b24e8a28a.tar.gz dfhack-d5ea05ebb88b40483b62aaf5dfe20e1b24e8a28a.tar.bz2 dfhack-d5ea05ebb88b40483b62aaf5dfe20e1b24e8a28a.tar.xz | |
Implement a pressure plate sensitive to machine power.
When built next to a gearbox, it will monitor its powered state.
Diffstat (limited to 'library/modules')
| -rw-r--r-- | library/modules/Gui.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/library/modules/Gui.cpp b/library/modules/Gui.cpp index 1ea4bf68..8de90873 100644 --- a/library/modules/Gui.cpp +++ b/library/modules/Gui.cpp @@ -211,7 +211,14 @@ DEFINE_GET_FOCUS_STRING_HANDLER(dwarfmode) if (ui_build_selector->building_type < 0) focus += "/Type"; else if (ui_build_selector->stage != 2) - focus += "/Position"; + { + if (ui_build_selector->stage != 1) + focus += "/NoMaterials"; + else + focus += "/Position"; + + focus += "/" + enum_item_key(ui_build_selector->building_type); + } else { focus += "/Material"; |
