add focus strings for new_region

develop
Myk Taylor 2023-05-03 15:52:01 -07:00
parent 823119694f
commit 8f5c454b39
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 14 additions and 0 deletions

@ -84,6 +84,7 @@ using namespace DFHack;
#include "df/unit.h"
#include "df/unit_inventory_item.h"
#include "df/viewscreen_dwarfmodest.h"
#include "df/viewscreen_new_regionst.h"
#include "df/viewscreen_titlest.h"
#include "df/world.h"
@ -156,6 +157,19 @@ DEFINE_GET_FOCUS_STRING_HANDLER(title)
focusStrings.push_back(baseFocus + "/Default");
}
DEFINE_GET_FOCUS_STRING_HANDLER(new_region)
{
if (screen->doing_mods)
focusStrings.push_back(baseFocus + "/Mods");
else if (screen->doing_simple_params)
focusStrings.push_back(baseFocus + "/Basic");
else if (screen->doing_params)
focusStrings.push_back(baseFocus + "/Advanced");
if (focusStrings.empty())
focusStrings.push_back(baseFocus);
}
DEFINE_GET_FOCUS_STRING_HANDLER(dwarfmode)
{
std::string newFocusString;