Fix another warning, test force_full_display_count

develop
Robob27 2023-02-02 01:05:56 -05:00
parent 59db67e654
commit 3da1964c53
1 changed files with 7 additions and 0 deletions

@ -319,6 +319,8 @@ public:
{ {
if (paused_focus != "" && (input->count(df::interface_key::LEAVESCREEN) || mouseExit)) { if (paused_focus != "" && (input->count(df::interface_key::LEAVESCREEN) || mouseExit)) {
conf_lua::api::unpause(NULL); conf_lua::api::unpause(NULL);
// testing
df::global::gps->force_full_display_count = 1;
} }
return false; return false;
} }
@ -373,6 +375,8 @@ public:
df::global::enabler->mouse_rbut_down = 0; df::global::enabler->mouse_rbut_down = 0;
} }
set_state(INACTIVE); set_state(INACTIVE);
// testing
df::global::gps->force_full_display_count = 1;
} else if (input->count(df::interface_key::SELECT)) } else if (input->count(df::interface_key::SELECT))
set_state(SELECTED); set_state(SELECTED);
else if (input->count(df::interface_key::CUSTOM_P)) else if (input->count(df::interface_key::CUSTOM_P))
@ -660,6 +664,8 @@ DFhackCExport command_result plugin_shutdown (color_ostream &out)
return CR_OK; return CR_OK;
} }
/* currently unused, leaving in until work is done in case it is needed again
static bool screen_found(df::viewscreen *target_screen) static bool screen_found(df::viewscreen *target_screen)
{ {
if (!&game->main_interface) if (!&game->main_interface)
@ -667,6 +673,7 @@ static bool screen_found(df::viewscreen *target_screen)
return target_screen == Gui::getCurViewscreen(); return target_screen == Gui::getCurViewscreen();
} }
*/
DFhackCExport command_result plugin_onupdate (color_ostream &out) DFhackCExport command_result plugin_onupdate (color_ostream &out)
{ {