|
|
|
@ -182,23 +182,23 @@ DEFINE_GET_FOCUS_STRING_HANDLER(dwarfmode)
|
|
|
|
|
if (game->main_interface.info.open) {
|
|
|
|
|
newFocusString = baseFocus;
|
|
|
|
|
newFocusString += "/Info";
|
|
|
|
|
newFocusString += "/" + enum_item_key(game->main_interface.info.current_mode);
|
|
|
|
|
newFocusString += '/' + enum_item_key(game->main_interface.info.current_mode);
|
|
|
|
|
|
|
|
|
|
switch(game->main_interface.info.current_mode) {
|
|
|
|
|
case df::enums::info_interface_mode_type::CREATURES:
|
|
|
|
|
newFocusString += "/" + enum_item_key(game->main_interface.info.creatures.current_mode);
|
|
|
|
|
newFocusString += '/' + enum_item_key(game->main_interface.info.creatures.current_mode);
|
|
|
|
|
break;
|
|
|
|
|
case df::enums::info_interface_mode_type::BUILDINGS:
|
|
|
|
|
newFocusString += "/" + enum_item_key(game->main_interface.info.buildings.mode);
|
|
|
|
|
newFocusString += '/' + enum_item_key(game->main_interface.info.buildings.mode);
|
|
|
|
|
break;
|
|
|
|
|
case df::enums::info_interface_mode_type::LABOR:
|
|
|
|
|
newFocusString += "/" + enum_item_key(game->main_interface.info.labor.mode);
|
|
|
|
|
newFocusString += '/' + enum_item_key(game->main_interface.info.labor.mode);
|
|
|
|
|
break;
|
|
|
|
|
case df::enums::info_interface_mode_type::ARTIFACTS:
|
|
|
|
|
newFocusString += "/" + enum_item_key(game->main_interface.info.artifacts.mode);
|
|
|
|
|
newFocusString += '/' + enum_item_key(game->main_interface.info.artifacts.mode);
|
|
|
|
|
break;
|
|
|
|
|
case df::enums::info_interface_mode_type::JUSTICE:
|
|
|
|
|
newFocusString += "/" + enum_item_key(game->main_interface.info.justice.current_mode);
|
|
|
|
|
newFocusString += '/' + enum_item_key(game->main_interface.info.justice.current_mode);
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
break;
|
|
|
|
@ -209,7 +209,7 @@ DEFINE_GET_FOCUS_STRING_HANDLER(dwarfmode)
|
|
|
|
|
if (game->main_interface.view_sheets.open) {
|
|
|
|
|
newFocusString = baseFocus;
|
|
|
|
|
newFocusString += "/ViewSheets";
|
|
|
|
|
newFocusString += "/" + enum_item_key(game->main_interface.view_sheets.active_sheet);
|
|
|
|
|
newFocusString += '/' + enum_item_key(game->main_interface.view_sheets.active_sheet);
|
|
|
|
|
focusStrings.push_back(newFocusString);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -233,7 +233,7 @@ DEFINE_GET_FOCUS_STRING_HANDLER(dwarfmode)
|
|
|
|
|
newFocusString += "/Zone";
|
|
|
|
|
if (game->main_interface.civzone.cur_bld) {
|
|
|
|
|
newFocusString += "/Some";
|
|
|
|
|
newFocusString += "/" + enum_item_key(game->main_interface.civzone.cur_bld->type);
|
|
|
|
|
newFocusString += '/' + enum_item_key(game->main_interface.civzone.cur_bld->type);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case df::enums::main_bottom_mode_type::ZONE_PAINT:
|
|
|
|
@ -499,7 +499,7 @@ DEFINE_GET_FOCUS_STRING_HANDLER(dungeonmode)
|
|
|
|
|
if (!adventure)
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
focus += "/" + enum_item_key(adventure->menu);
|
|
|
|
|
focus += '/' + enum_item_key(adventure->menu);
|
|
|
|
|
}
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
@ -1427,7 +1427,7 @@ DFHACK_EXPORT int Gui::makeAnnouncement(df::announcement_type type, df::announce
|
|
|
|
|
if (flags.bits.D_DISPLAY)
|
|
|
|
|
{
|
|
|
|
|
world->status.display_timer = ANNOUNCE_DISPLAY_TIME;
|
|
|
|
|
Gui::writeToGamelog("x" + to_string(repeat_count + 1));
|
|
|
|
|
Gui::writeToGamelog('x' + to_string(repeat_count + 1));
|
|
|
|
|
}
|
|
|
|
|
return -1;
|
|
|
|
|
}
|
|
|
|
|