Definition
-- @/lua/common/extensions/ui/imgui_gen_luaintf.lua:853
function M.MenuItem2(string_label, string_shortcut, bool_p_selected, bool_enabled)
if bool_enabled == nil then bool_enabled = true end
if string_label == nil then log("E", "", "Parameter 'string_label' of function 'MenuItem2' cannot be nil, as the c type is 'const char *'") ; return end
if string_shortcut == nil then log("E", "", "Parameter 'string_shortcut' of function 'MenuItem2' cannot be nil, as the c type is 'const char *'") ; return end
if bool_p_selected == nil then log("E", "", "Parameter 'bool_p_selected' of function 'MenuItem2' cannot be nil, as the c type is 'bool *'") ; return end
return imgui.MenuItem2(string_label, string_shortcut, bool_p_selected, bool_enabled)
end
Callers
@/lua/common/extensions/ui/imgui_gen_luaintf.lua
if bool_p_selected == nil then log("E", "", "Parameter 'bool_p_selected' of function 'MenuItem2' cannot be nil, as the c type is 'bool *'") ; return end
return imgui.MenuItem2(string_label, string_shortcut, bool_p_selected, bool_enabled)
end
@/lua/ge/extensions/trackbuilder/trackBuilder.lua
for k,v in pairs(menuItemsSorted) do
if im.MenuItem2(menuItems[v].name, "", menuItems[v].isOpen) then
if menuItems[v].isOpen[0] and menuItems[v].onOpenFunction ~= nil then
for k,v in pairs(additionalMenuItemsSorted) do
im.MenuItem2(additionalMenuItems[v].name, "", additionalMenuItems[v].isOpen)
end
end
--im.MenuItem2("Help",nil,helpOpen)
im.EndMenu()
im.Separator()
if im.MenuItem2(translateLanguage("ui.trackbuilder.menus.onlyOnePiecesWindow","Only one Pieces Window"),"",menuSettings.hidePieces.value) then serializeSettings() end
if im.MenuItem2(translateLanguage("ui.trackbuilder.menus.onlyOneModifierWindow", "Only one Modifier Window"),"",menuSettings.hideModifiers.value) then serializeSettings() end
if im.MenuItem2(translateLanguage("ui.trackbuilder.menus.onlyOnePiecesWindow","Only one Pieces Window"),"",menuSettings.hidePieces.value) then serializeSettings() end
if im.MenuItem2(translateLanguage("ui.trackbuilder.menus.onlyOneModifierWindow", "Only one Modifier Window"),"",menuSettings.hideModifiers.value) then serializeSettings() end
if im.MenuItem2(translateLanguage("ui.trackBuilder.settings.cameraFollow", "Automatic camera follow"),"",menuSettings.camActivated.value) then
if im.MenuItem2(translateLanguage("ui.trackbuilder.menus.onlyOneModifierWindow", "Only one Modifier Window"),"",menuSettings.hideModifiers.value) then serializeSettings() end
if im.MenuItem2(translateLanguage("ui.trackBuilder.settings.cameraFollow", "Automatic camera follow"),"",menuSettings.camActivated.value) then
tb.camActivated = menuSettings.camActivated.value[0]
@/lua/ge/extensions/ui/console.lua
local changedParam = false
changedParam = changedParam or im.MenuItem2("Line background", "", tableBgLines)
im.Separator()
changedParam = changedParam or im.MenuItem2("Loop History", "", loopHistory)
changedParam = changedParam or im.MenuItem2("Sandbox GE Commands", "", sandboxCmd)
changedParam = changedParam or im.MenuItem2("Loop History", "", loopHistory)
changedParam = changedParam or im.MenuItem2("Sandbox GE Commands", "", sandboxCmd)
changedParam = changedParam or im.MenuItem2("Focus on Show", "", focusOnShow)
changedParam = changedParam or im.MenuItem2("Sandbox GE Commands", "", sandboxCmd)
changedParam = changedParam or im.MenuItem2("Focus on Show", "", focusOnShow)
changedParam = changedParam or im.MenuItem2("Tooltip on long text", "", tooltipOnLongTxt)
changedParam = changedParam or im.MenuItem2("Focus on Show", "", focusOnShow)
changedParam = changedParam or im.MenuItem2("Tooltip on long text", "", tooltipOnLongTxt)
if changedParam then