We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7544641 commit 614bc54Copy full SHA for 614bc54
1 file changed
plugins/overlay.cpp
@@ -1,3 +1,4 @@
1
+#include "df/enabler.h"
2
#include "df/viewscreen_adopt_regionst.h"
3
#include "df/viewscreen_choose_game_typest.h"
4
#include "df/viewscreen_choose_start_sitest.h"
@@ -29,6 +30,7 @@ DFHACK_PLUGIN("overlay");
29
30
DFHACK_PLUGIN_IS_ENABLED(is_enabled);
31
32
REQUIRE_GLOBAL(world);
33
+REQUIRE_GLOBAL(enabler);
34
35
namespace DFHack {
36
DBG_DECLARE(overlay, control, DebugCategory::LINFO);
@@ -82,6 +84,8 @@ struct viewscreen_overlay : T {
82
84
});
83
85
if (!input_is_handled)
86
INTERPOSE_NEXT(feed)(input);
87
+ else
88
+ enabler->last_text_input[0] = '\0';
89
}
90
DEFINE_VMETHOD_INTERPOSE(void, render, ()) {
91
INTERPOSE_NEXT(render)();
0 commit comments