Merge remote-tracking branch 'warmist/cmd-prompt' into develop

develop
Alexander Gavrilov 2014-06-03 12:10:06 +04:00
commit 89269f76fd
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)); Screen::show(new viewscreen_commandpromptst(params));
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","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')" "command-prompt [entry] - shows a cmd prompt in df window. Entry is used for default prefix (e.g. ':lua')"
)); ));
return CR_OK; return CR_OK;