make creating a workorder a subscreen instead of a top-level

develop
Myk Taylor 2023-08-12 22:02:17 -07:00
parent 1a630eab34
commit b787c2bb1e
No known key found for this signature in database
1 changed files with 2 additions and 5 deletions

@ -215,6 +215,8 @@ DEFINE_GET_FOCUS_STRING_HANDLER(dwarfmode)
case df::enums::info_interface_mode_type::WORK_ORDERS: case df::enums::info_interface_mode_type::WORK_ORDERS:
if (game->main_interface.info.work_orders.conditions.open) if (game->main_interface.info.work_orders.conditions.open)
newFocusString += "/Conditions"; newFocusString += "/Conditions";
else if (game->main_interface.create_work_order.open)
newFocusString += "/Create";
else else
newFocusString += "/Default"; newFocusString += "/Default";
break; break;
@ -481,11 +483,6 @@ DEFINE_GET_FOCUS_STRING_HANDLER(dwarfmode)
newFocusString += "/AssignUniform"; newFocusString += "/AssignUniform";
focusStrings.push_back(newFocusString); focusStrings.push_back(newFocusString);
} }
if (game->main_interface.create_work_order.open) {
newFocusString = baseFocus;
newFocusString += "/CreateWorkOrder";
focusStrings.push_back(newFocusString);
}
if (game->main_interface.hotkey.open) { if (game->main_interface.hotkey.open) {
newFocusString = baseFocus; newFocusString = baseFocus;
newFocusString += "/Hotkey"; newFocusString += "/Hotkey";