use new standard "anywhere" hotkey in Gui

develop
myk002 2022-11-09 14:34:39 -08:00
parent 0344595e4e
commit 8cd9c88981
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 2 additions and 5 deletions

@ -337,17 +337,14 @@ command_result show_prompt(color_ostream &out, std::vector <std::string> & param
Screen::show(dts::make_unique<viewscreen_commandpromptst>(params), plugin_self); Screen::show(dts::make_unique<viewscreen_commandpromptst>(params), plugin_self);
return CR_OK; return CR_OK;
} }
bool hotkey_allow_all(df::viewscreen *top)
{
return true;
}
DFhackCExport command_result plugin_init(color_ostream &out, std::vector <PluginCommand> &commands) DFhackCExport command_result plugin_init(color_ostream &out, std::vector <PluginCommand> &commands)
{ {
commands.push_back(PluginCommand( commands.push_back(PluginCommand(
"command-prompt", "command-prompt",
"Allows you to run a DFHack command from in-game.", "Allows you to run a DFHack command from in-game.",
show_prompt, show_prompt,
hotkey_allow_all)); Gui::anywhere_hotkey));
return CR_OK; return CR_OK;
} }