|
|
|
@ -216,6 +216,11 @@ DEFINE_GET_FOCUS_STRING_HANDLER(dwarfmode)
|
|
|
|
|
newFocusString = baseFocus;
|
|
|
|
|
newFocusString += "/ViewSheets";
|
|
|
|
|
newFocusString += "/" + enum_item_key(game->main_interface.view_sheets.active_sheet);
|
|
|
|
|
if (game->main_interface.view_sheets.active_sheet == df::view_sheet_type::BUILDING) {
|
|
|
|
|
auto bld = df::building::find(game->main_interface.view_sheets.viewing_bldid);
|
|
|
|
|
if (bld)
|
|
|
|
|
newFocusString += '/' + enum_item_key(bld->getType());
|
|
|
|
|
}
|
|
|
|
|
focusStrings.push_back(newFocusString);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -377,6 +382,7 @@ DEFINE_GET_FOCUS_STRING_HANDLER(dwarfmode)
|
|
|
|
|
if (game->main_interface.unit_selector.open) {
|
|
|
|
|
newFocusString = baseFocus;
|
|
|
|
|
newFocusString += "/UnitSelector";
|
|
|
|
|
newFocusString += '/' + enum_item_key(game->main_interface.unit_selector.context);
|
|
|
|
|
focusStrings.push_back(newFocusString);
|
|
|
|
|
}
|
|
|
|
|
if (game->main_interface.announcement_alert.open) {
|
|
|
|
|