Merge pull request #4138 from myk002/myk_embark

[Gui] add focus strings for choose_start_site screen
develop
Myk 2024-01-04 08:55:59 -08:00 committed by GitHub
commit be17154b97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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/unit.h"
#include "df/unit_inventory_item.h"
#include "df/viewscreen_choose_start_sitest.h"
#include "df/viewscreen_dwarfmodest.h"
#include "df/viewscreen_legendsst.h"
#include "df/viewscreen_new_regionst.h"
@ -176,6 +177,15 @@ DEFINE_GET_FOCUS_STRING_HANDLER(new_region)
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)
{
if (screen->doing_custom_settings)