diff options
| author | Alexander Gavrilov | 2012-09-08 13:46:02 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-09-08 13:46:02 +0400 |
| commit | bfa6ed3e0868c7a2fa9851c3feb8f9055b0330bb (patch) | |
| tree | 13da84ac921e3e607f8908c0816783598cd13a07 /library/modules | |
| parent | 325e294af2bbd2ba0381a476756eddbbfceb1b36 (diff) | |
| download | dfhack-bfa6ed3e0868c7a2fa9851c3feb8f9055b0330bb.tar.gz dfhack-bfa6ed3e0868c7a2fa9851c3feb8f9055b0330bb.tar.bz2 dfhack-bfa6ed3e0868c7a2fa9851c3feb8f9055b0330bb.tar.xz | |
Support setting the target area for the siege engine.
Diffstat (limited to 'library/modules')
| -rw-r--r-- | library/modules/Gui.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/library/modules/Gui.cpp b/library/modules/Gui.cpp index 8de90873..91df14ea 100644 --- a/library/modules/Gui.cpp +++ b/library/modules/Gui.cpp @@ -173,10 +173,9 @@ DEFINE_GET_FOCUS_STRING_HANDLER(dwarfmode) else if (id == &df::building_trapst::_identity) { auto trap = (df::building_trapst*)selected; - if (trap->trap_type == trap_type::Lever) { - focus += "/Lever"; + focus += "/" + enum_item_key(trap->trap_type); + if (trap->trap_type == trap_type::Lever) jobs = true; - } } else if (ui_building_in_assign && *ui_building_in_assign && ui_building_assign_type && ui_building_assign_units && @@ -189,6 +188,8 @@ DEFINE_GET_FOCUS_STRING_HANDLER(dwarfmode) focus += unit ? "/Unit" : "/None"; } } + else + focus += "/" + enum_item_key(selected->getType()); if (jobs) { |
