cmd-prompt needs to work on ANY screen. This fixes it.

develop
Warmist 2014-05-26 18:16:32 +03:00
parent 9b1d393c1c
commit 99659e7e00
1 changed files with 5 additions and 1 deletions

@ -182,10 +182,14 @@ command_result show_prompt(color_ostream &out, std::vector <std::string> & param
Screen::show(new viewscreen_commandpromptst(params));
return CR_OK;
}
bool hotkey_allow_all(df::viewscreen *top)
{
return true;
}
DFhackCExport command_result plugin_init ( color_ostream &out, std::vector <PluginCommand> &commands)
{
commands.push_back(PluginCommand(
"command-prompt","Shows a command prompt on window.",show_prompt,false,
"command-prompt","Shows a command prompt on window.",show_prompt,hotkey_allow_all,
"command-prompt [entry] - shows a cmd prompt in df window. Entry is used for default prefix (e.g. ':lua')"
));
return CR_OK;