add focus strings for choose_start_site screen

develop
Myk Taylor 2024-01-04 08:49:39 -08:00
parent cd43f89352
commit 8f7cb40775
No known key found for this signature in database
1 changed files with 10 additions and 0 deletions

@ -84,6 +84,7 @@ using namespace DFHack;
#include "df/ui_unit_view_mode.h" #include "df/ui_unit_view_mode.h"
#include "df/unit.h" #include "df/unit.h"
#include "df/unit_inventory_item.h" #include "df/unit_inventory_item.h"
#include "df/viewscreen_choose_start_sitest.h"
#include "df/viewscreen_dwarfmodest.h" #include "df/viewscreen_dwarfmodest.h"
#include "df/viewscreen_legendsst.h" #include "df/viewscreen_legendsst.h"
#include "df/viewscreen_new_regionst.h" #include "df/viewscreen_new_regionst.h"
@ -176,6 +177,15 @@ DEFINE_GET_FOCUS_STRING_HANDLER(new_region)
focusStrings.push_back(baseFocus); focusStrings.push_back(baseFocus);
} }
DEFINE_GET_FOCUS_STRING_HANDLER(choose_start_site)
{
if (screen->doing_site_finder)
focusStrings.push_back(baseFocus + "/SiteFinder");
if (focusStrings.empty())
focusStrings.push_back(baseFocus);
}
DEFINE_GET_FOCUS_STRING_HANDLER(setupdwarfgame) DEFINE_GET_FOCUS_STRING_HANDLER(setupdwarfgame)
{ {
if (screen->doing_custom_settings) if (screen->doing_custom_settings)