Lua show_menu: allow specifying markup but not initial selection
This commit is contained in:
parent
8d74b72031
commit
709ecedad7
1 changed files with 2 additions and 0 deletions
|
@ -409,6 +409,8 @@ int show_menu(lua_State* L) {
|
|||
} else if(lua_isnumber(L, 3)) {
|
||||
initial = lua_tointeger(L, 3) - 1;
|
||||
markup = luaW_toboolean(L, 2);
|
||||
} else if(lua_isboolean(L, 2)) {
|
||||
markup = luaW_toboolean(L, 2);
|
||||
}
|
||||
|
||||
gui2::dialogs::drop_down_menu menu(pos, items, initial, markup, false);
|
||||
|
|
Loading…
Add table
Reference in a new issue