BeginDisabled
Definition
-- @/lua/common/extensions/ui/imgui_custom_luaintf.lua:257
function M.BeginDisabled(disable)
if disable == nil then disable = true end
imgui.BeginDisabled(disable)
end
Callers
@/lua/ge/extensions/editor/trafficManager.lua
if not isDrivable then im.BeginDisabled() end
if editor.uiIconImageButton(editor.icons.play_arrow, imSizes.medium, sessionData.aiActive and im.GetStyleColorVec4(im.Col_ButtonActive)) then
if aiData.useSpeedLimit then
im.BeginDisabled()
end
@/lua/ge/extensions/editor/rallyEditor/drivelineTab.lua
else
im.BeginDisabled()
im.Button("Load from Recording (Not Found)", im.ImVec2(-1, 30))
@/lua/ge/extensions/editor/particleEditor.lua
if currentEmitter:getName() == "DefaultEmitter" then
im.BeginDisabled()
disabled = true
local particleCount = getParticleCount(currentEmitter)
if particleCount >= 4 then im.BeginDisabled() disabled = true end
if editor.uiIconImageButton(editor.icons.add_circle, im.ImVec2(22 * im.uiscale[0], 22 * im.uiscale[0]), nil, nil, nil) then
im.SameLine()
if not currentParticle then im.BeginDisabled() disabled = true end
if editor.uiIconImageButton(editor.icons.material_save_current, im.ImVec2(22 * im.uiscale[0], 22 * im.uiscale[0]), nil, nil, nil) then
im.SameLine()
if not currentParticle or particleCount <= 1 then im.BeginDisabled() disabled = true end
if editor.uiIconImageButton(editor.icons.delete, im.ImVec2(22 * im.uiscale[0], 22 * im.uiscale[0]), nil, nil, nil) then
local disabled
if i > #particleNames + 1 then im.BeginDisabled() disabled = true end
im.PushItemWidth(im.GetContentRegionAvailWidth() - 2 * (22 * im.uiscale[0]))
@/lua/ge/extensions/editor/flowgraph/main.lua
if #recentFiles == 0 then
im.BeginDisabled()
im.Text("No Recent Files!")
else
im.BeginDisabled()
im.Text(idx.." - " .. file)
im.SameLine()
im.BeginDisabled()
im.Text(other.node.name)
@/lua/ge/extensions/util/stepHandler.lua
im.Text("Steps")
if not taskData.active then im.BeginDisabled() end
for i, step in ipairs(taskData.steps) do
@/lua/ge/extensions/editor/util/vehicleSelectUtil.lua
end
im.BeginDisabled()
end
end
im.BeginDisabled()
imDisabled = true
if not self.configs or self.customConfigPath then
im.BeginDisabled()
imDisabled = true
end
im.BeginDisabled()
imDisabled = true
if not self.paints then im.BeginDisabled() end
@/lua/ge/extensions/flowgraph/nodes/scene/storeStatics.lua
if #sortedObjectIds == 0 then
im.BeginDisabled()
end
@/lua/ge/extensions/editor/missionEditor/setupModules.lua
if isBlocked then
im.BeginDisabled()
end
if not setupModule.includePlayerVehicle then
im.BeginDisabled()
end
setupModule.enabled = false
im.BeginDisabled()
end
if not innerDisabled and setupModule.useGameOptions then innerDisabled = true end
if innerDisabled then im.BeginDisabled() end
if im.Checkbox("Use Simple Vehicles##traffic", self.trafficSimpleVehsInput) then
if not innerDisabled and setupModule.useSimpleVehs then innerDisabled = true end
if innerDisabled then im.BeginDisabled() end
if im.Checkbox("Use Custom Vehicle Group##traffic", self.trafficUseCustomGroup) then
setupModule.enabled = false
im.BeginDisabled()
end
@/lua/ge/extensions/editor/assetManagementTool.lua
if noSelection then imgui.BeginDisabled() end
@/lua/ge/extensions/editor/dynamicDecalsTool.lua
local _, __, ext = path.split(currentProjectFile or "")
if ext == "" then im.BeginDisabled() end
im.SameLine()
@/lua/ge/extensions/editor/forestEditor.lua
im.NextColumn()
if enableParallaxMapping == false then im.BeginDisabled() end
if im.InputInt("##parallaxMappingTextureSetId_input", editor.getTempInt_NumberNumber(parallaxMappingTextureSetId), 1, 2) then
if tool.disabled == true then
im.BeginDisabled()
end
if not enableSnapSinkOption then
im.BeginDisabled()
end
if not pM_textureSets.data[selectedTextureSetIdStr] or not pM_textureSets.data[selectedTextureSetIdStr][id] or pM_textureSets.data[selectedTextureSetIdStr][id] == "" then
im.BeginDisabled()
end
end
if pM_selectedTextureSetId < 1 or pM_selectedTextureSetData == nil then im.BeginDisabled() end
if im.Button("Copy##TextureSet") then
im.SameLine()
if pM_selectedTextureSetId < 1 or pM_textureSetCopy == nil then im.BeginDisabled() end
if im.Button("Paste##TextureSet") then
im.SameLine()
if pM_selectedTextureSetId < 1 or pM_selectedTextureSetData == nil then im.BeginDisabled() end
if im.Button("Clear##TextureSet") then
@/lua/ge/extensions/editor/objectToSplineEditor.lua
if not valid then
im.BeginDisabled()
end
@/lua/ge/extensions/flowgraph/nodes/input/blacklistActionFilter.lua
end
im.BeginDisabled()
im.SameLine()
@/lua/ge/extensions/editor/dynamicDecals/export.lua
end
im.BeginDisabled()
if im.InputText("##skinExport_VehicleName", editor.getTempCharPtr(skinExport_VehicleName)) then
@/lua/ge/extensions/editor/materialEditor.lua
if not residesInJson then im.BeginDisabled() end
if editor.uiButtonRightAlign("Edit name", nil, true) then
local disabled = currentMaterial.activeLayers >= maxLayers
if disabled then im.BeginDisabled() end
if im.Button("+") then
disabled = currentMaterial.activeLayers <= 1
if disabled then im.BeginDisabled() end
if im.Button("-") then
local residesInJson = (extension == "json")
if not residesInJson then im.BeginDisabled() end
if editor.uiIconImageButton(editor.icons.delete, im.ImVec2(v.inputWidgetHeight * 1.5, v.inputWidgetHeight * 1.5)) then
im.SetCursorPosX(im.GetCursorPosX() + im.GetContentRegionAvailWidth() - (v.style.ItemSpacing.x + 4 * v.style.FramePadding.x + im.CalcTextSize("Create").x + im.CalcTextSize("Cancel").x))
if createMaterialError then im.BeginDisabled() end
if im.Button("Create") then
)
if v.materialNamesPtrCount == 0 then im.BeginDisabled() end
if im.Combo1("##Materials", editor.getTempInt_NumberNumber(v.currentMaterialIndex), v.materialNamesPtr, (#v.materialNameList + 1), 20) then
@/lua/ge/extensions/editor/dynamicDecals/brushes.lua
im.SameLine()
if not brush.dirty then im.BeginDisabled() end
local saveBrushButtonPressed = im.Button("Save##BrushInspector")
@/lua/common/extensions/ui/imgui_gen_luaintf.lua
function M.GetDragDropPayload() return imgui.GetDragDropPayload() end
function M.BeginDisabled(bool_disabled)
if bool_disabled == nil then bool_disabled = true end
if bool_disabled == nil then bool_disabled = true end
imgui.BeginDisabled(bool_disabled)
end
@/lua/ge/extensions/editor/dynamicDecals/layerTypes/brushStroke.lua
im.SameLine()
if k == count then im.BeginDisabled() end
if editor.uiIconImageButton(editor.icons.content_copy, im.ImVec2(tool.getIconSize(), tool.getIconSize()), nil, nil, nil, string.format("##%s_%s_%s_%d", layer.uid, guiId, "interpolationSteps_insertdataPointsEntry", k)) then
@/lua/ge/extensions/util/screenshotCreator.lua
if isRunning then im.BeginDisabled() end
if im.BeginTabBar("main Menu##") then
if isDefaultConfig() then
im.BeginDisabled()
end
im.BeginDisabled()
if im.Button("Preview") then
@/lua/ge/extensions/flowgraph/nodes/input/blacklistAction.lua
im.SameLine()
im.BeginDisabled()
--dumpz(result, 2)
im.SameLine()
im.BeginDisabled()
self:highlightText(result.id, self.search.matchString)
im.Text(allActions[name].title)
im.BeginDisabled()
im.SameLine()
if (allActions[e] == nil) then
im.BeginDisabled()
im.Text(e .. " hasn't been found")
im.SameLine()
im.BeginDisabled()
im.Text(allActions[e].cat .. ": ")
im.SameLine()
im.BeginDisabled()
im.Text(e)
@/lua/ge/extensions/flowgraph/nodes/ui/imgui/elemental/imCheckbox.lua
if not self.pinIn.enabled.value then
im.BeginDisabled()
end
@/lua/ge/extensions/editor/crawlEditor/waypoints.lua
if not self.cfData then
im.BeginDisabled()
end
@/lua/ge/extensions/editor/dynamicDecals/loadSave.lua
local _, __, ext = path.split(lastProjectFilePath)
if ext == "" then im.BeginDisabled() end
if im.Button("Save") then
@/lua/ge/extensions/flowgraph/nodes/util/customLua.lua
if #sortedNames == 0 then
im.BeginDisabled()
im.Text("No nodes saved yet!")
@/lua/ge/extensions/editor/assetBrowser.lua
local uiScaling = editor.getPreference("ui.general.scale") or defaultUiScale;
im.BeginDisabled(var.historyIndex == 1 and true or false)
if editor.uiIconImageButton(editor.icons.arrow_back, im.ImVec2(var.inputFieldSize / uiScaling, var.inputFieldSize / uiScaling), nil, nil, nil, "historyBack") then
im.SameLine()
im.BeginDisabled(var.historyIndex >= #var.history and true or false)
if editor.uiIconImageButton(editor.icons.arrow_forward, im.ImVec2(var.inputFieldSize / uiScaling, var.inputFieldSize / uiScaling), nil, nil, nil, "historyForward") then
im.BeginDisabled()
im.TextUnformatted("%level_name%")
@/lua/ge/extensions/editor/fileDialog.lua
if not hasParentDir then
im.BeginDisabled()
disabled = true
if im.BeginPopup("FileDialog_NewFolderPopup") then
im.BeginDisabled()
im.InputText("##newfolder_currentdir", editor.getTempCharPtr(currentPath))
for _, column in ipairs(columns) do
if column.lockedVisibility and column.lockedVisibility == true then im.BeginDisabled() end
if im.Checkbox(column.name, getTempBool(column.visible)) then
@/lua/ge/extensions/editor/crawlEditor/boundaries.lua
if not self.cfData then
im.BeginDisabled()
end
@/lua/ge/extensions/editor/dynamicDecals/settings.lua
if enabled then im.BeginDisabled() end
local widgetId = "dynamicDecals_settings_cursorPosition"
@/lua/ge/extensions/editor/biomeTool.lua
if var.forestBrushTool:isBiomeProcRunning() then
imgui.BeginDisabled()
end
imgui.ImDrawList_AddRectFilled(imgui.GetWindowDrawList(), p1, p2, imgui.GetColorU322(imgui.ImVec4(1, 0, 0, 1)))
---imgui.BeginDisabled()
if area.zoneType == var.enum_lassoDrawType.inclusionZone then
if not renamingState then
imgui.BeginDisabled()
end
imgui.BeginDisabled()
editor.uiInputText("##inputTextBrushName#"..layer.layerType..layer.layerID, editor.getTempCharPtr(brushName))
imgui.SetNextItemWidth(150)
imgui.BeginDisabled()
editor.uiInputText("##inputTextDensity##"..layer.layerType..layer.layerID, editor.getTempCharPtr(string.format("%.1f", getForestDensity(layer.layerType, layer.layerID))))
imgui.SetNextItemWidth(150)
imgui.BeginDisabled()
editor.uiInputText("##inputTextDensity##"..layer.layerType..layer.layerID, editor.getTempCharPtr(tostring(getLassoAreaCount(layer.layerType, layer.layerID))))
fieldVal = getLayerTerrainMaterial(customData.layerType, customData.layerID)
imgui.BeginDisabled()
editor.uiInputText('', editor.getTempCharPtr(fieldVal))
if shouldDisableRange then
imgui.BeginDisabled()
end
@/lua/ge/extensions/editor/util/editorElementHelper.lua
if displayOpts.unit == 'velocity' then
im.BeginDisabled()
im.Text(string.format("%0.2f m/s = %0.2f %s",e.ptr[0],translateVelocity(e.ptr[0], true)))
if displayOpts.unit == 'distance' then
im.BeginDisabled()
im.Text(string.format("%0.2f m = %0.2f %s",e.ptr[0],translateDistance(e.ptr[0], true)))
if displayOpts.unit == 'time' then
im.BeginDisabled()
local t = e.ptr[0]
local isDefault = math.abs(e.ptr[0] - e.defaultValue) < 10e-6
if isDefault then im.BeginDisabled() end
if editor.uiIconImageButton(editor.icons.undo, imVec24x24) then
local isDefault = ctd[e.fieldName] == e.defaultValue
if isDefault then im.BeginDisabled() end
if editor.uiIconImageButton(editor.icons.undo, imVec24x24) then
local isDefault = e.ptr[0] == e.defaultValue
if isDefault then im.BeginDisabled() end
if editor.uiIconImageButton(editor.icons.undo, imVec24x24) then
and ctd[e.fieldNameConfigPath] == e.defaultConfigPath
if isDefault then im.BeginDisabled() end
if editor.uiIconImageButton(editor.icons.undo, imVec24x24) then
end
if not e.foundFile then im.BeginDisabled() end
if im.Selectable1("Load File into Race Editor") then
end
if not e.foundFile then im.BeginDisabled() end
if im.Selectable1("Load File into Cam Path Editor") then
if not e.foundFile then im.EndDisabled() end
if not (editor_camPathEditor and editor_camPathEditor.currentPath) then im.BeginDisabled() end
for _, fl in ipairs(e.filepathsInfolder) do
end
if not e.foundFile then im.BeginDisabled() end
if im.Selectable1("Load File into Sites Editor") then
if not e.foundFile then im.EndDisabled() end
if not (editor_sitesEditor and editor_sitesEditor.getCurrentSites()) then im.BeginDisabled() end
for _, fl in ipairs(e.filepathsInfolder) do
end
if not e.foundFile then im.BeginDisabled() end
if im.Selectable1("Spawn Prefab at Origin") then
end
if not e.foundFile then im.BeginDisabled() end
if im.Selectable1("Open Flowgraph Project in Flowgraph Editor") then
end
if not e.foundFile then im.BeginDisabled() end
if im.Selectable1("Load File into Vehicle Group Manager") then
local isDefault = ctd[e.fieldName] == e.defaultValue
if isDefault then im.BeginDisabled() end
if editor.uiIconImageButton(editor.icons.undo, imVec24x24) then
@/lua/ge/extensions/editor/dynamicDecals/layerTypes/fill.lua
if layer.colorPaletteMapId ~= 0 then im.BeginDisabled() end
if widgets.draw(layer.color:toTable(), api.propertiesMap["fill_color"], widgetId, editor.getTempBool_BoolBool(false)) then
if colorPaletteMapId ~= 0 then im.BeginDisabled() end
if widgets.draw(api.getFillLayerColor():toTable(), api.propertiesMap["fill_color"], guiId) then
@/lua/ge/extensions/gameplay/missions/missionManager.lua
im.Text("Steps")
if not taskData.active then im.BeginDisabled() end
for i, step in ipairs(taskData.steps) do
@/lua/ge/extensions/editor/dynamicDecals/vehicleColorPalette.lua
end
if #colorPaletteName == 0 then im.BeginDisabled() end
if im.Button(string.format("Save##VehicleColorPalette_SaveButton_%s", guiId)) then
@/lua/common/extensions/ui/imgui_custom_luaintf.lua
if disable == nil then disable = true end
imgui.BeginDisabled(disable)
end
@/lua/ge/extensions/editor/aiTests.lua
im.SameLine()
if options.dynamicCollisions[0] or not vehicleIds[2] then im.BeginDisabled() end
if im.Button("Merge Positions##aiParams") then
@/lua/ge/extensions/editor/multiSpawnManager.lua
imValues.shuffle[0] = true
im.BeginDisabled()
end
@/lua/ge/extensions/editor/inspector.lua
if not posFieldType then
imgui.BeginDisabled()
end
if not rotFieldType then
imgui.BeginDisabled()
end
if not scaleFieldType then
imgui.BeginDisabled()
end
if not rotFieldType or not scaleFieldType then
imgui.BeginDisabled()
end
@/lua/ge/extensions/gameplay/missions/missionTypes/editorHelper.lua
if e.displayOptions.unit == 'velocity' then
im.BeginDisabled()
im.Text(string.format("%0.2f m/s = %0.2f %s",e.ptr[0],translateVelocity(e.ptr[0], true)))
if e.displayOptions.unit == 'distance' then
im.BeginDisabled()
im.Text(string.format("%0.2f m = %0.2f %s",e.ptr[0],translateDistance(e.ptr[0], true)))
if e.displayOptions.unit == 'time' then
im.BeginDisabled()
local t = e.ptr[0]
end
if not e.foundFile then im.BeginDisabled() end
if im.Selectable1("Load File into Race Editor") then
end
if not e.foundFile then im.BeginDisabled() end
if im.Selectable1("Load File into Cam Path Editor") then
if not e.foundFile then im.EndDisabled() end
if not (editor_camPathEditor and editor_camPathEditor.currentPath) then im.BeginDisabled() end
for _, fl in ipairs(e.filepathsInMissionfolder) do
end
if not e.foundFile then im.BeginDisabled() end
if im.Selectable1("Load File into Sites Editor") then
end
if not e.foundFile then im.BeginDisabled() end
if im.Selectable1("Spawn Prefab at Origin") then
end
if not e.foundFile then im.BeginDisabled() end
if im.Selectable1("Open Flowgraph Project in Flowgraph Editor") then
end
if not e.foundFile then im.BeginDisabled() end
if im.Selectable1("Load File into Vehicle Group Manager") then
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/veJBeamBeautifier.lua
if not beautiftyEnabled then
im.BeginDisabled()
end
@/lua/ge/extensions/editor/dynamicDecals/layerTypes/decal.lua
im.BeginDisabled()
im.Separator()
if layer.colorPaletteMapId ~= 0 then im.BeginDisabled() end
if widgets.draw(layer.decalUseGradientColor, api.propertiesMap["decalUseGradientColor"], widgetId) then
if layer.decalUseGradientColor == true then im.BeginDisabled() end
if widgets.draw(layer.color:toTable(), api.propertiesMap["color"], widgetId, editor.getTempBool_BoolBool(false)) then
if layer.decalUseGradientColor == false then im.BeginDisabled() end
if widgets.draw(
if layer.sdfEnabled == false then im.BeginDisabled() end
im.TextUnformatted("SDF thickness")
im.SameLine()
if not api.getMirrored() then im.BeginDisabled() end
if widgets.draw(api.getFlipMirroredDecal(), api.propertiesMap["flipMirroredDecal"], guiId) then
-- im.BeginDisabled()
if widgets.draw(api.getDecalLayerFontPath(), api.propertiesMap["decal_fontPath"], guiId) then
if #api.getDecalLayerFontPath() <= 1 or true then -- always disabled for time being
im.BeginDisabled()
else
if colorPaletteMapId ~= 0 or api.isDecalGradientColorEnabled() then im.BeginDisabled() end
if widgets.draw(api.getDecalColor():toTable(), api.propertiesMap["color"], guiId) then
if colorPaletteMapId ~= 0 then im.BeginDisabled() end
if widgets.draw(api.isDecalGradientColorEnabled(), api.propertiesMap["decalUseGradientColor"], guiId) then
if colorPaletteMapId ~= 0 or api.isDecalGradientColorEnabled() == false then im.BeginDisabled() end
if widgets.draw(
@/lua/ge/extensions/editor/sitesEditor.lua
if not currentSites.name or not currentSites.dir then
im.BeginDisabled()
end
@/lua/ge/extensions/editor/scriptAIEditor.lua
isDisabled = numNodes > 1 and tNow > nodes[numNodes].t[0]
if isDisabled then im.BeginDisabled() end
if editor.uiIconImageButton(editor.icons.nodeAddFirst01, im.ImVec2(26, 26), nil, nil, nil, 'addCamNode') then
isDisabled = numNodes < 1
if isDisabled then im.BeginDisabled() end
if editor.uiIconImageButton(editor.icons.nodeRemove, im.ImVec2(26, 26), nil, nil, nil, 'removeCamNode') then
isDisabled = numTrajectories < 1 or trajWinData.selectedTraj == nil
if isDisabled then im.BeginDisabled() end
if editor.uiIconImageButton(editor.icons.touch_app, im.ImVec2(25, 25), nil, nil, nil, 'camAutoGenerate') then
@/lua/ge/extensions/editor/rallyEditor/pacenotes/structuredForm.lua
-- tooltipText = "Audio files cannot be deleted for this pacenote.\nOnly files for Freeform and StructuredOnline audio modes can be deleted."
im.BeginDisabled()
end
@/lua/ge/extensions/gameplay/rally/tools/rallyToolbox.lua
if shouldBeDisabled then im.BeginDisabled() end
im.Text("Race Debug (status: "..tostring(raceStatus).." | "..tostring(statusMsg)..")")
-- if shouldBeDisabled then
-- im.BeginDisabled()
-- end
@/lua/ge/extensions/editor/api/valueInspector.lua
if not destIsString and isPasteDisabled then
imgui.BeginDisabled()
end
@/lua/ge/extensions/gameplay/drift/general.lua
if not extensionData.driftDebugInfo.canBeChanged then
im.BeginDisabled()
end
@/lua/ge/extensions/career/modules/partInventory.lua
if coreSlots[part.location][part.slotType] then
imgui.BeginDisabled()
disabled = true
@/lua/ge/extensions/editor/flowgraph/variables.lua
self.targets = {{name = loc, target = self.mgr.graph.variables},{name="Project", target=self.mgr.variables}}
if not self.mgr.allowEditing then im.BeginDisabled() end
if editor.uiIconImageButton(editor.icons.add, im.ImVec2(35,35)) then
im.SetCursorPosX(totalWidth-35*im.uiscale[0])
if not self.mgr.allowEditing then im.BeginDisabled() end
if editor.uiIconImageButton(editor.icons.add, im.ImVec2(35,35)) then
@/lua/ge/extensions/editor/sitesEditor/sortedListDisplay.lua
if disabled then
im.BeginDisabled()
end
if not self.cfData then
im.BeginDisabled()
end
@/lua/ge/extensions/editor/flowgraph/properties.lua
if self:Begin('Properties') then
if not self.mgr.allowEditing then im.BeginDisabled() end
-- if im.Begin('Properties', self.windowOpen) then
@/lua/ge/extensions/gameplay/rally/tools/loopToolbox.lua
if not skipEnabled then
im.BeginDisabled()
end
if not testModeEnabled then
im.BeginDisabled()
end
@/lua/ge/extensions/editor/dynamicDecals/layerTypes/path.lua
im.PushItemWidth(im.GetContentRegionAvailWidth())
if #layer.text > 0 then im.BeginDisabled() end
if editor.uiInputInt(string.format("##%s_%s_%s", layer.uid, guiId, "inspector_interpolationSteps"), editor.getTempInt_NumberNumber(layer.interpolationSteps), 1, 2) then
if k == count then im.BeginDisabled() end
if editor.uiIconImageButton(editor.icons.content_copy, im.ImVec2(tool.getIconSize(), tool.getIconSize()), nil, nil, nil, string.format("##%s_%s_%s_%d", layer.uid, guiId, "interpolationSteps_insertDataPointsEntry", k)) then
if #pathLayerText > 0 then im.BeginDisabled() end
if widgets.draw(api.getPathLayerInterpolationSteps(), api.propertiesMap["path_interpolationSteps"], guiId) then
@/lua/ge/extensions/editor/flowgraph/search.lua
im.BeginGroup()
im.BeginDisabled()
im.Text(result.type..": ")
self:highlightText(result.name, self.matchString)
im.BeginDisabled()
if editor.getPreference("flowgraph.debug.displayIds") then
if not foundResult then
im.BeginDisabled()
im.Text("No Results!")
@/lua/ge/extensions/flowgraph/basenode.lua
if hiddenCount > 0 and editor.getPreference("flowgraph.general.showHiddenPinCount") then
im.BeginDisabled()
im.Text(string.format(" (+%d)",hiddenCount))
if hiddenCount > 0 and editor.getPreference("flowgraph.general.showHiddenPinCount") then
im.BeginDisabled()
local txt = string.format("(+%d)",hiddenCount)
@/lua/common/extensions/ui/flowgraph/editor.lua
im.SameLine()
im.BeginDisabled()
im.HighlightText(result.info.modelKey .. "/"..result.info.configKey, vehSearch.matchString)
@/lua/ge/extensions/editor/decalEditor.lua
local disabled = false
if not selectedTemplate then im.BeginDisabled() disabled = true end
if editor.uiIconImageButton(editor.icons.delete, im.ImVec2(22 * im.uiscale[0], 22 * im.uiscale[0]), nil, nil, nil) then
if not selectedTemplate or not editor.isDecalDirty(selectedTemplate) then im.BeginDisabled() disabled = true end
if editor.uiIconImageButton(editor.icons.material_save_current, im.ImVec2(22 * im.uiscale[0], 22 * im.uiscale[0]), nil, nil, nil) then
local disabled = false
if tableIsEmpty(selectedInstances) then im.BeginDisabled() disabled = true end
if editor.uiIconImageButton(editor.icons.delete, im.ImVec2(22 * im.uiscale[0], 22 * im.uiscale[0]), nil, nil, nil) then
@/lua/ge/extensions/editor/vehicleEditor/veToolbar.lua
else
im.BeginDisabled()
end
@/lua/ge/extensions/editor/mainToolbar.lua
else
im.BeginDisabled()
end
local isDefaultSet = currentSet and currentSet.name == "Default Set"
if isDefaultSet then im.BeginDisabled() end
if im.Button("Delete Set") then
if not anyModeSelected then im.BeginDisabled() end
if im.Button("Deselect All##Available", im.ImVec2(120, 25)) then
local isDefaultSet = currentSet and currentSet.name == "Default Set"
if isDefaultSet then im.BeginDisabled() end
-- Move selected to right
if not anyModeSelected then im.BeginDisabled() end
if editor.uiIconImageButton(editor.icons.arrow_forward, im.ImVec2(editor.getDefaultIconButtonSize().x, editor.getDefaultIconButtonSize().y)) then
-- Move selected to left
if not hasSelectedSelected then im.BeginDisabled() end
if editor.uiIconImageButton(editor.icons.arrow_back, im.ImVec2(editor.getDefaultIconButtonSize().x, editor.getDefaultIconButtonSize().y)) then
-- Up button
if not canMoveUpEnabled then im.BeginDisabled() end
if editor.uiIconImageButton(editor.icons.arrow_upward, im.ImVec2(editor.getDefaultIconButtonSize().x, editor.getDefaultIconButtonSize().y)) then
-- Down button
if not canMoveDownEnabled then im.BeginDisabled() end
if editor.uiIconImageButton(editor.icons.arrow_downward, im.ImVec2(editor.getDefaultIconButtonSize().x, editor.getDefaultIconButtonSize().y)) then
if not hasSelectedSelected then im.BeginDisabled() end
if im.Button("Deselect All##Selected", im.ImVec2(120, 25)) then
@/lua/ge/extensions/editor/raceEditor/pathnodes.lua
if not self.cfData then
im.BeginDisabled()
end
@/lua/ge/extensions/editor/missionEditor/genericTypeData.lua
im.Text("Project: " .. mgr.name)
if not mgr.allowEditing then im.BeginDisabled() end
if not self._sortedVars then
@/lua/ge/extensions/editor/terrainEditor.lua
if brush.disabled and brush.disabled == true then
im.BeginDisabled()
end
@/lua/ge/extensions/flowgraph/nodes/gameplay/traffic/trafficCustomGroup.lua
if self.params.auto then
im.BeginDisabled()
end
@/lua/ge/extensions/editor/flowgraphEditor.lua
if #recentFiles == 0 then
im.BeginDisabled()
im.Text("No Recent Files!")
else
im.BeginDisabled()
im.Text(idx.." - " .. file)
if #restoreFiles.names == 0 then
im.BeginDisabled()
im.Text("No Files to Restore!")
im.SameLine()
im.BeginDisabled()
local loc = mgr.states.states[id].graph:getLocation(true)
@/lua/ge/extensions/career/modules/marketplace.lua
if disabled then
im.BeginDisabled()
end
@/lua/ge/extensions/editor/flowgraph/nodelibrary.lua
im.BeginGroup()
im.BeginDisabled()
im.Text(result.type..":")
self:highlightText(result.name, self.matchString)
im.BeginDisabled()
if result.type == 'node' then
@/lua/ge/extensions/editor/driftDataEditor.lua
local canSave = currentFileDir and currentFileName and driftData
if not canSave then im.BeginDisabled() end
if im.MenuItem1("Save") then
@/lua/ge/extensions/editor/missionEditor/careerSetup.lua
if not self.copiedRewards then
im.BeginDisabled()
end
@/lua/ge/extensions/editor/missionEditor/conditions.lua
im.tooltip("This Condition is transient (generated at runtime) and can't be edited.")
im.BeginDisabled()
else
@/lua/ge/extensions/editor/techServerManager.lua
if serverRunning then im.BeginDisabled() end
if not openServerGuiData.allInterfaces[0] then
@/lua/ge/extensions/editor/dynamicDecals/layerTypes/textureFill.lua
if layer.colorPaletteMapId ~= 0 then im.BeginDisabled() end
if widgets.draw(layer.color:toTable(), api.propertiesMap["color"], widgetId, editor.getTempBool_BoolBool(false)) then
if colorPaletteMapId ~= 0 then im.BeginDisabled() end
if widgets.draw(api.getFillLayerColor():toTable(), api.propertiesMap["textureFill_color"], guiId) then
@/lua/ge/extensions/editor/missionPlaybook.lua
if not (career_career and career_career.isActive()) then
im.BeginDisabled()
end
@/lua/ge/extensions/editor/shapeEditor.lua
if not forceDetail[0] then
im.BeginDisabled()
detailLevel[0] = shapePrev.mCurrentDL
end
im.BeginDisabled()
end
@/lua/ge/extensions/editor/rallyEditor/pacenotes/pacenoteForm.lua
-- if pacenoteToolsState.snaproad and pacenoteToolsState.snaproad:isRouteSourced() then
-- im.BeginDisabled()
-- end
@/lua/ge/extensions/editor/camPathEditor.lua
if markerIsBeingCutTo(M.currentPath, currentMarkerIndex) then
im.BeginDisabled()
end
if marker.cut then
im.BeginDisabled()
end
if imVal[0] == 0 then
im.BeginDisabled()
end
if markerIsBeingCutTo(M.currentPath, currentMarkerIndex) or currentMarkerIndex == #M.currentPath.markers then
im.BeginDisabled()
end
if not (M.currentPath and M.currentPath.dirty) then
im.BeginDisabled()
disabled = true
if not M.currentPath then
im.BeginDisabled()
disabled = true
@/lua/ge/extensions/editor/createObjectTool.lua
if hiddenClasses[result.name] then
imgui.BeginDisabled()
end
@/lua/ge/extensions/editor/missionEditor/objectives.lua
for i, key in ipairs(self.starKeysSorted) do
if not self.mission.careerSetup.starsActive[key] then im.BeginDisabled() end
if im.Selectable1(key, self.mission.careerSetup.defaultStarKeys[defaultIndex] == key) then
if not self.copiedRewards then
im.BeginDisabled()
end
if not self.copiedStars[self.mission.missionType] then
im.BeginDisabled()
end
@/lua/ge/extensions/editor/missionEditor.lua
local canTeleport = (getCurrentLevelIdentifier() == shownMission.startTrigger.level) and playerVehicle and shownMission.startTrigger
if not canTeleport then im.BeginDisabled() end
if editor.uiIconImageButton(editor.icons.flag, im.ImVec2(40, 40)) then
else
im.BeginDisabled()
im.Text("(no mission selected)")
if taken then
im.BeginDisabled()
end
local saveable = lastShownMission ~= nil
if not saveable then im.BeginDisabled() end
if im.MenuItem1("Save") then
if im.BeginMenu("Delete") then
if not saveable then im.BeginDisabled() end
local files = {}
im.Separator()
if not clickedMission then im.BeginDisabled() end
if im.BeginMenu("Custom Editor Functions...") then
if clickedMission and im.BeginMenu("Generate Attempts") then
if not clickedMission then im.BeginDisabled() end
if im.MenuItem1("Generate 25 Attempts") then
if editor.getPreference('missionEditor.general.shortIds') or grouping.mode == 'level' or grouping.mode == 'type' then
im.BeginDisabled()
im.Text(" "..other)
if shownMission.procedural then
--im.BeginDisabled()
end
@/lua/ge/extensions/editor/dynamicDecals/fonts.lua
im.PushItemWidth(im.GetContentRegionAvailWidth() - (im.GetStyle().ItemSpacing.x + im.CalcTextSize("Preview").x + 2 * im.GetStyle().FramePadding.x))
if #generatedFontAtlases == 0 then im.BeginDisabled() end
if im.Combo1("##generatedFontAtlases", editor.getTempInt_NumberNumber(fontAtlasPreviewId), generatedFontAtlasesCharPtr) then
if fontPath == "" then im.BeginDisabled() end
if im.Button("Generate Font Atlas") then
@/lua/ge/extensions/editor/missionEditor/additionalAttributes.lua
im.PushItemWidth(im.GetContentRegionAvailWidth())
if isAuto then im.BeginDisabled() end
if im.BeginCombo('##'..attKey.."AdditionalData", isAuto and "(Automatic)" or val.label) then
@/lua/ge/extensions/editor/flowgraph/examples.lua
if not foundResult then
im.BeginDisabled()
im.Text("No Results!")
@/lua/ge/extensions/editor/dynamicDecals/layerStack.lua
if editor.getPreference("dynamicDecalsTool.layerStack.topToBottomLayerStructure") then
if k == #parentStack then im.BeginDisabled() end
if editor.uiIconImageButton(editor.icons.keyboard_arrow_up, im.ImVec2(tool.getIconSize(), tool.getIconSize()), nil, nil, nil, string.format("moveup##%s_%d", guiId, k)) then
im.SameLine()
if k == 1 then im.BeginDisabled() end
if editor.uiIconImageButton(editor.icons.keyboard_arrow_down, im.ImVec2(tool.getIconSize(), tool.getIconSize()), nil, nil, nil, string.format("movedown##%s_%d", guiId, k)) then
else
if k == 1 then im.BeginDisabled() end
if editor.uiIconImageButton(editor.icons.keyboard_arrow_up, im.ImVec2(tool.getIconSize(), tool.getIconSize()), nil, nil, nil, string.format("moveup##%s_%d", guiId, k)) then
im.SameLine()
if k == #parentStack then im.BeginDisabled() end
if editor.uiIconImageButton(editor.icons.keyboard_arrow_down, im.ImVec2(tool.getIconSize(), tool.getIconSize()), nil, nil, nil, string.format("movedown##%s_%d", guiId, k)) then
if im.BeginPopup(layerMaskContextMenuPopupName) then
if not layer.mask then im.BeginDisabled() end
if im.Button("Copy Layer Mask") then
if not layerMaskCopyData then im.BeginDisabled() end
if im.Button(layer.mask and "Replace Layer Mask" or "Paste Layer Mask") then
if not layerMaskCopyData then im.BeginDisabled() end
if im.Button("Append Layer Mask") then
im.Separator()
if not layer.mask then im.BeginDisabled() end
if im.Button("Export layer mask") then
@/lua/ge/extensions/editor/flowgraph/garbageDebug.lua
self:handleMeta(entry)
if not im.IsWindowFocused(im.FocusedFlags_RootAndChildWindows) then im.BeginDisabled() end
im.Text("Total")
@/lua/ge/extensions/editor/raceEditor.lua
if #issues == 0 then
im.BeginDisabled()
if im.BeginMenu("No Issues!") then im.EndMenu() end
@/lua/ge/extensions/editor/rallyEditor.lua
else
im.BeginDisabled()
if im.Button("Save") then end
@/lua/ge/extensions/editor/missionEditor/layers.lua
--im.BeginChild1("box", im.ImVec2(width, 50), true, bit.bor(im.WindowFlags_NoScrollWithMouse, im.WindowFlags_NoScrollbar))
if i == 1 then im.BeginDisabled() end
if editor.uiIconImageButton(editor.icons.arrow_upward, imVec24x24) then moveUp = i end
im.SameLine()
if i == #self.mission.layers then im.BeginDisabled() end
if editor.uiIconImageButton(editor.icons.arrow_downward, imVec24x24) then moveDown = i end
if layer.fixed then im.BeginDisabled() end
editor.uiInputText("##dir", self.inputs[i].text, 1024, nil, nil, nil, editEnded)
im.SameLine()
if layer.fixed then im.BeginDisabled() end
if editor.uiIconImageButton(editor.icons.material_pick_mapto, imVec24x24) then