From d9fa827b20d0a47c2abb748af147165e62f5b39c Mon Sep 17 00:00:00 2001 From: Myk Taylor Date: Fri, 18 Aug 2023 19:27:12 -0700 Subject: [PATCH] support overlays on the load arena screen --- plugins/lua/hotkeys.lua | 1 + plugins/overlay.cpp | 3 +++ 2 files changed, 4 insertions(+) diff --git a/plugins/lua/hotkeys.lua b/plugins/lua/hotkeys.lua index 373b2945f..629f743cc 100644 --- a/plugins/lua/hotkeys.lua +++ b/plugins/lua/hotkeys.lua @@ -37,6 +37,7 @@ HotspotMenuWidget.ATTRS{ 'initial_prep', --'legends', -- conflicts with vanilla export button and info text 'loadgame', + -- 'new_arena', -- conflicts with vanilla panel layouts -- 'new_region', -- conflicts with vanilla panel layouts 'savegame', 'setupdwarfgame', diff --git a/plugins/overlay.cpp b/plugins/overlay.cpp index 9c75e6951..3fec6091b 100644 --- a/plugins/overlay.cpp +++ b/plugins/overlay.cpp @@ -8,6 +8,7 @@ #include "df/viewscreen_initial_prepst.h" #include "df/viewscreen_legendsst.h" #include "df/viewscreen_loadgamest.h" +#include "df/viewscreen_new_arenast.h" #include "df/viewscreen_new_regionst.h" #include "df/viewscreen_savegamest.h" #include "df/viewscreen_setupdwarfgamest.h" @@ -112,6 +113,7 @@ IMPLEMENT_HOOKS(game_cleaner) IMPLEMENT_HOOKS(initial_prep) IMPLEMENT_HOOKS(legends) IMPLEMENT_HOOKS(loadgame) +IMPLEMENT_HOOKS(new_arena) IMPLEMENT_HOOKS(new_region) IMPLEMENT_HOOKS(savegame) IMPLEMENT_HOOKS(setupdwarfgame) @@ -146,6 +148,7 @@ DFhackCExport command_result plugin_enable(color_ostream &out, bool enable) { INTERPOSE_HOOKS_FAILED(initial_prep) || INTERPOSE_HOOKS_FAILED(legends) || INTERPOSE_HOOKS_FAILED(loadgame) || + INTERPOSE_HOOKS_FAILED(new_arena) || INTERPOSE_HOOKS_FAILED(new_region) || INTERPOSE_HOOKS_FAILED(savegame) || INTERPOSE_HOOKS_FAILED(setupdwarfgame) ||