Skip to content

Commit c12d288

Browse files
Merge remote-tracking branch 'upstream/develop' into SquidHack
2 parents ce410f2 + a27ca91 commit c12d288

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

docs/changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Template for new versions:
3535
## Documentation
3636

3737
## API
38+
- Added GUI focus strings for new_arena: ``/Loading`` and ``/Mods``
3839

3940
## Lua
4041

library/modules/Gui.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ distribution.
9090
#include "df/viewscreen_dungeonmodest.h"
9191
#include "df/viewscreen_dwarfmodest.h"
9292
#include "df/viewscreen_legendsst.h"
93+
#include "df/viewscreen_new_arenast.h"
9394
#include "df/viewscreen_new_regionst.h"
9495
#include "df/viewscreen_setupdwarfgamest.h"
9596
#include "df/viewscreen_titlest.h"
@@ -188,6 +189,18 @@ DEFINE_GET_FOCUS_STRING_HANDLER(new_region)
188189
focusStrings.push_back(baseFocus);
189190
}
190191

192+
DEFINE_GET_FOCUS_STRING_HANDLER(new_arena)
193+
{
194+
if (screen->raw_load)
195+
focusStrings.push_back(baseFocus + "/Loading");
196+
else if (screen->doing_mods)
197+
focusStrings.push_back(baseFocus + "/Mods");
198+
199+
if (focusStrings.empty())
200+
focusStrings.push_back(baseFocus);
201+
202+
}
203+
191204
DEFINE_GET_FOCUS_STRING_HANDLER(choose_start_site)
192205
{
193206
if (screen->doing_site_finder)

0 commit comments

Comments
 (0)