Overhaul of command parsing
This commit is contained in:
@@ -35,6 +35,12 @@ bool Gui::has_action(const std::string &action) const {
|
||||
return false;
|
||||
}
|
||||
|
||||
std::string Gui::get_action(int index) {
|
||||
if ((index < 0) || (index >= elts_.size())) {
|
||||
return "";
|
||||
}
|
||||
return elts_[index].action();
|
||||
}
|
||||
|
||||
LuaDefine(gui_menu_item, "c") {
|
||||
Gui *gui = Gui::fetch_global_pointer(L);
|
||||
|
||||
Reference in New Issue
Block a user