SameLine
Definition
-- @/=[C]:-1
function SameLine(...)
Callers
@/lua/ge/extensions/gameplay/drift/quickMessages.lua
im.Text("Quick message history : ")
im.SameLine()
if im.Button("Clear") then debugHistory = {} end
@/lua/ge/extensions/ui/messagesDebugger.lua
end
im.SameLine()
if im.Button("Send Binding Example") then
im.Checkbox("Regex clear", useRegexClear)
im.SameLine()
if im.Button("Clear Category") then
end
im.SameLine()
if im.Button("Clear All") then
@/lua/ge/extensions/flowgraph/nodes/scene/storeStatics.lua
end
im.SameLine()
if im.Button("Despawn All") then
end
im.SameLine()
if im.Button("Clear Storage") then
end
im.SameLine()
if editor.uiIconImageButton(editor.icons.search,im.ImVec2(20, 20)) then
end
im.SameLine()
if editor.uiIconImageButton(editor.icons.delete_forever,im.ImVec2(20, 20)) then
@/lua/ge/extensions/editor/fileDialog.lua
editor.uiIconImage(editor.icons.folder, im.ImVec2(im.GetFontSize(), im.GetFontSize()))
im.SameLine()
im.Selectable1(file.name, file.name == fNameInput)
end
im.SameLine()
end
im.SameLine()
im.SameLine()
if editor.uiIconImageButton(editor.icons.arrow_downward, im.ImVec2(25 * im.uiscale[0], 25 * im.uiscale[0])) then
im.EndDisabled()
im.SameLine()
local createNewDir = false
end
im.SameLine()
if im.Button("Cancel") then
im.SameLine()
im.SetCursorPosX(im.GetCursorPosX() + im.GetContentRegionAvailWidth() - (25 * im.uiscale[0]))
im.Text("New folder:")
im.SameLine()
im.PushItemWidth(150)
im.PopItemWidth()
im.SameLine()
if im.Button("Create") or createNow then
im.Text("File name:")
im.SameLine()
local itemWidth = im.GetContentRegionAvailWidth() - (buttonsAreaMaxWidth + buttonsAreaMaxWidth) * im.uiscale[0]
im.PopItemWidth()
im.SameLine()
end
if not options.select_folder then
im.SameLine()
local itemWidth = (im.GetContentRegionAvailWidth() - buttonsAreaMaxWidth * im.uiscale[0])
im.PopItemWidth()
im.SameLine()
end
im.SameLine()
if im.Button('Cancel') then
end
im.SameLine()
if im.Button("NO") then
@/lua/ge/extensions/editor/raceEditor/trackLayout.lua
self:displayClassification(classification, "Reversible: ", 'reversible', "If the track can be reversed. Possible if both the Default Starting Position\nand Reverse Starting Positions are set, as well as the End Node for open tracks.")
im.SameLine() im.SetCursorPosX(180)
self:displayClassification(classification, "Rolling Start: ", 'allowRollingStart', "If the track can be started from from a distance. Possible if Rolling Start Position is set.\nIf the track is reversible, also Reverse Rolling Start has to be set.")
self:displayClassification(classification, "Closed: ", 'closed', "If the track is closed, Lap Count can be set to values higher than 1\nand End Node does not need to be set. A non-closed track is considered Open.")
im.SameLine() im.SetCursorPosX(180)
self:displayClassification(classification, "Branching: ", 'branching', "Branching tracks will not compare lap times or record final times in Time Trial Mode.")
local cpx = im.GetCursorPosX()
im.Text(name) im.SameLine() im.SetCursorPosX(cpx + 90) im.tooltip(tt or "")
if classification[field] then
@/lua/ge/extensions/editor/extensionsDebug.lua
im.Checkbox("Function", funCheck)
im.SameLine()
im.Checkbox("Number",numCheck)
im.Checkbox("Number",numCheck)
im.SameLine()
im.Checkbox("String",strCheck)
im.Checkbox("String",strCheck)
im.SameLine()
im.Checkbox("Cdata",cdataCheck)
im.Checkbox("Cdata",cdataCheck)
im.SameLine()
im.Checkbox("Boolean",boolCheck)
im.Checkbox("Boolean",boolCheck)
im.SameLine()
im.Checkbox("Table",tblCheck)
@/lua/ge/extensions/editor/assemblySpline.lua
im.tooltip('Add a new assembly spline.')
im.SameLine()
im.NextColumn()
im.tooltip(isDrawPolygon and 'Click to stop drawing a selection polygon.' or 'Click to draw a selection polygon, to convert scene objects to an Assembly Spline.')
im.SameLine()
im.NextColumn()
im.tooltip('Import assembly splines from a bitmap mask.')
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
wCtr = wCtr + 1
im.SameLine()
im.NextColumn()
wCtr = wCtr + 1
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
im.tooltip('Set the rotation to 0°.')
im.SameLine()
im.NextColumn()
im.tooltip('Set the rotation to 90°.')
im.SameLine()
im.NextColumn()
im.tooltip('Set the rotation to 180°.')
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
im.tooltip('Select The Wooden Fence Preset.')
im.SameLine()
im.NextColumn()
im.tooltip('Select The Telegraph Pole Preset.')
im.SameLine()
im.NextColumn()
im.TextColored(cols.blueB, 'Imported Kit:')
im.SameLine()
im.NextColumn()
im.Dummy(iconsSmall)
im.SameLine()
im.NextColumn()
im.tooltip('Select the Assembly Kit folder.')
im.SameLine()
im.NextColumn()
im.Text("Use")
im.SameLine()
im.NextColumn()
im.Text("Mesh")
im.SameLine()
im.NextColumn()
im.Text("Role")
im.SameLine()
im.NextColumn()
im.Text("")
im.SameLine()
im.NextColumn()
im.tooltip(mol.getRigidEnabled(selSpline, mesh.id) and 'Do not include this component in the assembly.' or 'Include this component in the assembly.')
im.SameLine()
im.NextColumn()
im.tooltip(mesh.meshPath)
im.SameLine()
im.NextColumn()
-- If disabled and not root, show nothing (blank column).
im.SameLine()
im.NextColumn()
im.tooltip(mol.getRigidEnabled(selSpline, variation.id) and 'Do not include this variation in the assembly.' or 'Include this variation in the assembly.')
im.SameLine()
im.NextColumn()
im.tooltip(variation.meshPath)
im.SameLine()
im.NextColumn()
im.Text("")
im.SameLine()
im.NextColumn()
im.Text("Use")
im.SameLine()
im.NextColumn()
im.Text("Mesh")
im.SameLine()
im.NextColumn()
im.Text("Alias")
im.SameLine()
im.NextColumn()
im.tooltip(mol.getBridgeEnabled(selSpline, mesh.id) and 'Do not include this bridge in the assembly.' or 'Include this bridge in the assembly.')
im.SameLine()
im.NextColumn()
im.tooltip(mesh.meshPath)
im.SameLine()
im.NextColumn()
im.tooltip("The alias name for this bridge instance.")
im.SameLine()
im.NextColumn()
im.tooltip(mol.getBridgeEnabled(selSpline, variation.id) and 'Do not include this variation in the assembly.' or 'Include this variation in the assembly.')
im.SameLine()
im.NextColumn()
im.tooltip(variation.meshPath)
im.SameLine()
im.NextColumn()
im.Text("")
im.SameLine()
im.NextColumn()
if isRoot then
im.SameLine()
im.TextColored(cols.redB, "[root]") -- Add indicator for root mesh.
end
im.SameLine()
im.TextColored(cols.greenB, ":")
wCtr = wCtr + 1
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
if aliasName ~= "main" then
im.SameLine()
im.TextColored(cols.redB, string.format("[%s]", aliasName)) -- Include the alias name, if this is an aliased entry.
end
im.SameLine()
im.TextColored(cols.greenB, ':')
wCtr = wCtr + 1
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/veJBeamPicker.lua
im.SameLine()
im.Text(" or ")
im.Text(" or ")
im.SameLine()
im.SameLine()
im.Text(" or ")
im.Text(" or ")
im.SameLine()
im.SameLine()
im.SameLine()
@/lua/ge/extensions/editor/mainToolbar.lua
if im.IsItemHovered() then im.BeginTooltip() im.Text("New Level") im.EndTooltip() end
im.SameLine()
if im.IsItemHovered() then im.BeginTooltip() im.Text("Open Level") im.EndTooltip() end
im.SameLine()
if im.IsItemHovered() then im.BeginTooltip() im.Text("Save Level") im.EndTooltip() end
im.SameLine()
if im.IsItemHovered() then im.BeginTooltip() im.Text("Undo") im.EndTooltip() end
im.SameLine()
if im.IsItemHovered() then im.BeginTooltip() im.Text("Redo") im.EndTooltip() end
im.SameLine()
if im.IsItemHovered() then im.BeginTooltip() im.Text("Cut") im.EndTooltip() end
im.SameLine()
if im.IsItemHovered() then im.BeginTooltip() im.Text("Copy") im.EndTooltip() end
im.SameLine()
if im.IsItemHovered() then im.BeginTooltip() im.Text("Paste") im.EndTooltip() end
im.SameLine()
if im.IsItemHovered() then im.BeginTooltip() im.Text("Editor Preferences") im.EndTooltip() end
im.SameLine()
if im.IsItemHovered() then im.BeginTooltip() im.Text("Enable driving the vehicle in editor") im.EndTooltip() end
im.SameLine()
end
if im.IsItemHovered() then im.BeginTooltip() im.Text("Translate (Key 1)") im.EndTooltip() end
im.SameLine()
if im.IsItemHovered() then im.BeginTooltip() im.Text("Rotate (Key 2)") im.EndTooltip() end
im.SameLine()
if im.IsItemHovered() then im.BeginTooltip() im.Text("Scale (Key 3)") im.EndTooltip() end
im.SameLine()
im.SameLine()
if im.IsItemHovered() then im.BeginTooltip() im.Text("Grid Snap. Right Click for options") im.EndTooltip() end
im.SameLine()
im.SameLine()
if im.IsItemHovered() then im.BeginTooltip() im.Text("Rotate Snap") im.EndTooltip() end
im.SameLine()
im.PopItemWidth()
im.SameLine()
if im.IsItemHovered() then im.SetTooltip("Toggle Terrain Snap. Right Click for options") end
im.SameLine()
end
im.SameLine()
-- Editor icons and camera settings
im.SameLine()
if terrainSnapSettingsOpen then
drawGeneralToolbarButtons()
im.SameLine() im.Spacing()
editor.uiVertSeparator(32, im.ImVec2(0,0))
editor.uiVertSeparator(32, im.ImVec2(0,0))
im.Spacing() im.SameLine()
axisGizmoButtonsGui()
axisGizmoButtonsGui()
im.SameLine() im.Spacing()
editor.uiVertSeparator(32, im.ImVec2(0,0))
extensions.hook("onEditorGuiGeneralToolbar")
im.SameLine()
local iconButtonWidth = editor.getDefaultIconButtonSize().x*im.uiscale[0] + 6 + 2*im.GetStyle().FramePadding.x + im.GetStyle().ItemSpacing.x
end
im.SameLine()
im.SameLine()
im.BeginGroup()
im.EndGroup()
im.SameLine()
im.EndGroup()
im.SameLine()
im.SameLine()
im.SameLine()
if editor.editModes then
im.SameLine()
local sortedKeys = {}
end
im.SameLine()
end
end
im.SameLine()
break
editor.uiIconImage(skippedEditMode.icon, im.ImVec2(iconButtonWidth*0.9, iconButtonWidth*0.9), bgColor)
im.SameLine()
editor.uiIconImage(val.icon, im.ImVec2(buttonWidth*uiScaling*0.9, buttonWidth*uiScaling*0.9), bgColor)
im.SameLine()
im.SetCursorPosY(im.GetCursorPosY() + 3)
im.SameLine() im.Spacing()
editor.uiVertSeparator(32, im.ImVec2(0,0))
extensions.hook("onEditorGuiEditModeToolbar")
im.SameLine()
end
@/lua/ge/extensions/editor/sitesEditor/parkingSpots.lua
im.PopItemWidth()
im.SameLine()
im.Text("Direction")
@/lua/ge/extensions/editor/flowgraph/main.lua
ui_flowgraph_editor.tooltip(self.mgr.runningState == "running" and "Project Running" or "Project Stopped")
im.SameLine()
im.PushStyleVar2(im.StyleVar_ItemSpacing, im.ImVec2(0, 0))
end
im.SameLine()
local isClicked, isHovered = im.IsItemClicked(), im.IsItemHovered()
end
im.SameLine()
if i < #lNames then
--[[
im.SameLine()
if editor.uiIconImageButton(editor.icons.gesture, im.ImVec2(20,20)) then
ui_flowgraph_editor.tooltip("Start Execution")
im.SameLine()
if editor.uiIconImageButton(editor.icons.skip_next, im.ImVec2(20, 20)) then
im.SameLine()
if editor.uiIconImageButton(editor.icons.pause, im.ImVec2(20, 20)) then
ui_flowgraph_editor.tooltip("Resume Execution")
im.SameLine()
if editor.uiIconImageButton(editor.icons.skip_next, im.ImVec2(20, 20)) then
im.SameLine()
--im.SetCursorPosX(im.GetCursorPosX()+20)
end
im.SameLine()
im.Dummy(im.ImVec2(20,5))
im.Dummy(im.ImVec2(20,5))
im.SameLine()
if editor.getPreference("flowgraph.debug.editorDebug") then
im.SameLine()
if editor.uiIconImageButton(editor.icons.fullscreen_exit, im.ImVec2(20, 20)) then
ui_flowgraph_editor.tooltip("Minimize Editor.")
im.SameLine()
local setHide = im.BoolPtr(editor.getPreference("flowgraph.general.minimizeFlowgraphWhenRunning"))
end
im.SameLine()
if #duplicateIds > 0 then
im.Text("Viewmode: ")
im.SameLine()
im.PushItemWidth(100)
if graph.type == 'instance' then
im.SameLine()
im.TextColored(im.ImVec4(1,0.25,0.25,1), "This is an Instance. Read only.")
elseif graph.type == 'macro' then
im.SameLine()
im.Text("This is a Macro.")
--im.Text("Running for " .. self.mgr.frameCount .. " frames.")
im.SameLine()
im.Text("Frame " .. self.mgr.frameCount)
im.Text("["..(self.fgEditor.isActionMapEnabled(map) and "Yes" or "No").."]".. map.." ")
im.SameLine()
end
end
im.SameLine()
end
im.SameLine()
end
entered = im.InputText("##quickAccessName", self.quickAccessTextfield,64, im.InputTextFlags_EnterReturnsTrue)
im.SameLine()
if editor.uiIconImageButton(editor.icons.check, im.ImVec2(20,20)) or entered then
editor.uiIconImage(icon, im.ImVec2(22, 22), whiteStrong)
im.SameLine()
-- ui_flowgraph_editor.tooltip("Replacing original target link.")
self.mgr:DrawTypeIcon(other.type, true, 1)
im.SameLine()
im.Text(name)
im.SameLine()
im.BeginDisabled()
im.EndDisabled()
im.SameLine()
im.Dummy(im.ImVec2(im.GetContentRegionAvailWidth()-5,1))
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/vePartTextView.lua
lineLength = lineLength + nodeWidth
im.SameLine()
nodeIdx = nodeIdx + 1
if jbeamFilename then
im.SameLine()
if im.Button('explore') then
if stat then
im.SameLine()
im.TextUnformatted('File times: ')
im.TextUnformatted('File times: ')
im.SameLine()
if stat.modtime ~= stat.createtime then
end
im.SameLine()
if im.Button("Cancel") then
@/lua/ge/extensions/tech/cameraPreview.lua
im.EndGroup()
if horizontalLayout[0] then im.SameLine() end
end
im.EndGroup()
if horizontalLayout[0] then im.SameLine() end
end
@/lua/ge/extensions/editor/rallyEditor/recceTab.lua
end
im.SameLine()
im.Text("Original size: "..self.originalDrivelineSize)
im.Text("Original size: "..self.originalDrivelineSize)
im.SameLine()
im.Text("Downsampled size: "..#self.recce.driveline.points)
im.Text("Downsampled size: "..#self.recce.driveline.points)
im.SameLine()
local pointsRemoved = self.originalDrivelineSize - #self.recce.driveline.points
im.Text("Straightness Threshold")
im.SameLine()
im.SetNextItemWidth(120)
end
im.SameLine()
im.TextDisabled("(?)")
@/lua/ge/extensions/editor/flowgraph/welcome.lua
im.Dummy(im.ImVec2(leftpadding, 0))
im.SameLine()
editor.uiIconImage(ico, im.ImVec2(32, 32), col, im.ImVec4(0,0,0,0))
editor.uiIconImage(ico, im.ImVec2(32, 32), col, im.ImVec4(0,0,0,0))
im.SameLine()
im.Dummy(im.ImVec2(leftpadding, 0))
im.Dummy(im.ImVec2(leftpadding, 0))
im.SameLine()
im.Image(self.sideImage.texId, self.sideImageSize, im.ImVec2(0, 0), im.ImVec2(1, 1), col)
im.SameLine()
end
im.Dummy(im.ImVec2(40, 0))
im.SameLine()
self:drawLeftColumn()
self:drawLeftColumn()
im.SameLine()
im.Dummy(im.ImVec2(40, 0))
im.Dummy(im.ImVec2(40, 0))
im.SameLine()
self:drawRightColumn()
self:drawRightColumn()
im.SameLine()
im.Dummy(im.ImVec2(40, 0))
@/lua/ge/extensions/editor/api/core.lua
imgui.tooltip("Save the data of all tool windows")
imgui.SameLine()
if imgui.Button("Save Selected") then
imgui.tooltip("Save the data of the selected tool windows")
imgui.SameLine()
if imgui.Button("Don't Save Any") then
imgui.tooltip("Do not save any tool data")
imgui.SameLine()
if imgui.Button("Cancel") then
@/lua/ge/extensions/editor/flowgraph/nodelibrary.lua
im.Text("Search:")
im.SameLine()
im.SameLine()
if usedForContextMenu then
im.SameLine()
if tableIsEmpty(self.fgEditor.copyData) then
im.Text(label:sub(pos1, pos2 - 1))
im.SameLine()
end
im.TextColored(matchColor, label:sub(pos2, pos3))
im.SameLine()
pos1 = pos3 + 1
im.Text(result.type..":")
im.SameLine()
im.EndDisabled()
if result.tags then
im.SameLine()
self:highlightText(result.tags, self.matchString)
end
im.SameLine()
self:highlightText(result.info.path, self.matchString)
if result.type == 'variable' then
im.SameLine()
im.Text(result.varInfo)
if result.tags then
im.SameLine()
self:highlightText(result.tags, self.matchString)
end
im.SameLine()
self:highlightText(result.info.path, self.matchString)
if debugEnabled then
im.SameLine()
im.Text(string.format(" | %d%%%% Match" ,100*result.score))
if result.frecency then
im.SameLine()
im.Text(string.format(" | %d%%%% Frecency", result.frecency *100))
@/lua/ge/extensions/editor/util/searchUtil.lua
end
im.SameLine()
if im.Button("X") then
@/lua/ge/extensions/editor/logHelper.lua
--TODO: not working anymore
--im.SameLine(windowSize.x - 110)
im.TextColored(im.ImVec4(1.0, 0.0, 0.0, 1.0), tostring(t.errors) .. 'E ')
--im.SameLine()
end
@/lua/ge/extensions/flowgraph/link.lua
self.graph.mgr:DrawTypeIcon(self.sourcePin.type, true, 1)
im.SameLine()
im.TextUnformatted(dumps(self.sourcePin.type))
@/lua/ge/extensions/flowgraph/nodes/ui/missionEndScreen.lua
end
im.SameLine()
if im.Button("rem") then
@/lua/ge/extensions/editor/renderTest.lua
if editor.beginWindow(toolWindowName, toolWindowName) then
if im.Button('left') then mode = 'left' end im.SameLine()
if im.Button('right') then mode = 'right' end im.SameLine()
if im.Button('left') then mode = 'left' end im.SameLine()
if im.Button('right') then mode = 'right' end im.SameLine()
if im.Button('front') then mode = 'front' end im.SameLine()
if im.Button('right') then mode = 'right' end im.SameLine()
if im.Button('front') then mode = 'front' end im.SameLine()
if im.Button('back') then mode = 'back' end im.SameLine()
if im.Button('front') then mode = 'front' end im.SameLine()
if im.Button('back') then mode = 'back' end im.SameLine()
if im.Button('top') then mode = 'top' end im.SameLine()
if im.Button('back') then mode = 'back' end im.SameLine()
if im.Button('top') then mode = 'top' end im.SameLine()
if im.Button('bottom') then mode = 'bottom' end im.SameLine()
if im.Button('top') then mode = 'top' end im.SameLine()
if im.Button('bottom') then mode = 'bottom' end im.SameLine()
if im.Button('3d') then mode = '3d' end im.SameLine()
if im.Button('bottom') then mode = 'bottom' end im.SameLine()
if im.Button('3d') then mode = '3d' end im.SameLine()
if im.Checkbox('Ortho', ortho) then end im.SameLine()
if im.Button('3d') then mode = '3d' end im.SameLine()
if im.Checkbox('Ortho', ortho) then end im.SameLine()
if im.Checkbox('render Main', renderMain) then
end
im.SameLine()
if im.Checkbox('attach', attachToObject) then end
if im.Checkbox('attach', attachToObject) then end
im.SameLine()
im.PushItemWidth(100)
im.SliderFloat('near clip', nearClip, 0.001, 55, "%.3f", 4) im.SameLine()
im.PushItemWidth(100)
im.PushItemWidth(100)
im.SliderFloat('far clip', farClip, 0.001, 5500, "%.3f", 4) im.SameLine()
im.PushItemWidth(100)
@/lua/ge/extensions/gameplay/drift/scoreboard.lua
im.Text(dumpsz(tiersAndScore, 3))
im.SameLine()
im.Text(dumpsz(M.getPerformanceStats(), 3))
im.Text(dumpsz(M.getPerformanceStats(), 3))
im.SameLine()
im.Text(dumpsz(quickMessages, 3))
@/lua/ge/extensions/editor/engineAudioDebug.lua
im.SameLine()
local reset = im.Button("Reset All to 0", im.ImVec2(150, 25))
@/lua/ge/extensions/editor/dynamicDecals/news.lua
end
im.SameLine()
im.SetCursorPosX(im.GetCursorPosX() + im.GetContentRegionAvailWidth() - (im.CalcTextSize("Do not show again").x + 2*im.GetStyle().ItemSpacing.x + tool.getIconSize()))
im.TextUnformatted("Do not show again")
im.SameLine()
if im.Checkbox("##dynDecals_news_doNotShowAgainCheckbox", editor.getTempBool_BoolBool(editor.getPreference("dynamicDecalsTool.news.doNotShowAgain"))) then
@/lua/ge/extensions/editor/scriptAIEditor.lua
im.tooltip('Scenario contains negative times. Please normalize before execution.')
im.SameLine()
elseif twd.tStart >= 0.0 and twd.tEnd > 0.0 then
end
im.SameLine()
end
im.SameLine()
im.Checkbox("Display", twd.isDispInExe)
im.SameLine()
im.Dummy(im.ImVec2(5, 0))
im.SameLine()
if im.BeginListBox("", im.ImVec2(103, 31), im.WindowFlags_ChildWindow) then
im.SameLine()
im.PushButtonRepeat(true)
im.SameLine()
im.PushButtonRepeat(true)
im.SameLine()
im.Checkbox("Loop", twd.isLooping)
im.SameLine()
im.Dummy(im.ImVec2(5, 0))
im.SameLine()
if editor.uiIconImageButton(editor.icons.car, im.ImVec2(29, 29), im.ImVec4(1, 1, 1, winStates.vehWin.buttonAlpha), nil, nil, 'openVehiclesWindow') then
im.SameLine()
if editor.uiIconImageButton(editor.icons.cameraFocusTopDown, im.ImVec2(27, 27), im.ImVec4(1, 1, 1, winStates.trajWin.buttonAlpha), nil, nil, 'openTrajectoriesWindow') then
im.SameLine()
if editor.uiIconImageButton(editor.icons.switch_video, im.ImVec2(29, 29), im.ImVec4(1, 1, 1, winStates.camWin.buttonAlpha), nil, nil, 'openCameraWindow') then
im.SameLine()
im.Dummy(im.ImVec2(5, 0))
im.SameLine()
if editor.uiIconImageButton(editor.icons.folder, im.ImVec2(26, 26), nil, nil, nil, 'loadSession') then
if numTrajectories > 0 and numVehicles > 0 then
im.SameLine()
if editor.uiIconImageButton(editor.icons.floppyDisk, im.ImVec2(24, 24), nil, nil, nil, 'saveSession') then
im.tooltip('Record a script with this vehicle.')
im.SameLine()
im.Dummy(im.ImVec2(5, 0))
im.Dummy(im.ImVec2(5, 0))
im.SameLine()
if vwd.recordMode[i] == nil then vwd.recordMode[i] = im.IntPtr(1) end
if im.RadioButton2("T-Based###" .. tostring(ctr), vwd.recordMode[i], im.Int(1)) then end
im.SameLine()
if im.RadioButton2("V-Based###" .. tostring(ctr + 1), vwd.recordMode[i], im.Int(2)) then end
im.tooltip('Manually draw-in a new trajectory on the map.')
im.SameLine()
if editor.uiIconImageButton(editor.icons.folder, im.ImVec2(23, 23), nil, nil, nil, 'importTrajectory') then
im.Dummy(im.ImVec2(gapA, 0))
im.SameLine()
if #polyLine > 1 then
im.tooltip('Increase the velocity at the highlighted node.')
im.SameLine()
im.Dummy(im.ImVec2(gapB, 0))
im.Dummy(im.ImVec2(gapB, 0))
im.SameLine()
im.PushButtonRepeat(true)
im.tooltip('Decrease the velocity at the highlighted node.')
im.SameLine()
im.Dummy(im.ImVec2(gapB, 0))
im.Dummy(im.ImVec2(gapB, 0))
im.SameLine()
end
im.tooltip('Add a new node directly after the highlighted node.')
im.SameLine()
im.Dummy(im.ImVec2(gapB, 0))
im.Dummy(im.ImVec2(gapB, 0))
im.SameLine()
if editor.uiIconImageButton(editor.icons.control_point_duplicate, im.ImVec2(27, 27), nil, nil, nil, 'doubleNodeResolution') then
im.tooltip('Double the node resolution for finer-grained detailing.')
im.SameLine()
end
im.Dummy(im.ImVec2(gapB, 0))
im.SameLine()
if editor.uiIconImageButton(editor.icons.nodeRemove, im.ImVec2(27, 27), nil, nil, nil, 'deleteNode') then
im.tooltip('Remove the highlighted node.')
im.SameLine()
im.Dummy(im.ImVec2(gapB, 0))
im.Dummy(im.ImVec2(gapB, 0))
im.SameLine()
pos = tr.selectedNode
end
im.SameLine()
im.Dummy(im.ImVec2(gapB, 0))
im.Dummy(im.ImVec2(gapB, 0))
im.SameLine()
if editor.uiIconImageButton(editor.icons.cameraFocusTopDown, im.ImVec2(24, 24), nil, nil, nil, 'revealTrajectory') then
im.tooltip('Reveal this trajectory on the map, from a top-down view.')
im.SameLine()
im.Dummy(im.ImVec2(gapB, 0))
im.Dummy(im.ImVec2(gapB, 0))
im.SameLine()
if editor.uiIconImageButton(editor.icons.floppyDisk, im.ImVec2(23, 23), nil, nil, nil, 'exportTrajectory') then
im.Text("Interval:")
im.SameLine()
if tr.vModeTStart == nil then tr.vModeTStart = im.FloatPtr(0.0) end
im.PopItemWidth()
im.SameLine()
im.PushItemWidth(100)
im.Text('Status: [not attached to vehicle]')
im.SameLine()
if editor.uiIconImageButton(editor.icons.jointUnlocked, im.ImVec2(26, 26), nil, nil, nil, 'attachTrajectoryToVehicle') then
im.Text('Status: [' .. tr.vehicle .. ']')
im.SameLine()
if editor.uiIconImageButton(editor.icons.jointLocked, im.ImVec2(22, 22), nil, nil, nil, 'detachTrajectoryFromVehicle') then
im.tooltip('Detach this trajectory from its linked vehicle.')
im.SameLine()
if editor.uiIconImageButton(editor.icons.car, im.ImVec2(24, 24), nil, nil, nil, 'goToLinkedVehicle') then
im.tooltip('Assign the set velocity to the trajectory.')
im.SameLine()
im.PushItemWidth(110)
if tr.isUseSpline[0] == true then
im.SameLine()
local oldVal = tr.splineSpacing[0]
im.tooltip('Toggles the camera trajectory display on the map, when editing.')
im.SameLine()
im.Checkbox("On Execute", cwd.isOnExecute)
im.RadioButton2("T-Based", dwd.mode, im.Int(1))
im.SameLine()
im.RadioButton2("V-Based", dwd.mode, im.Int(2))
im.tooltip('Create trajectory and finish drawing.')
im.SameLine()
im.AlignTextToFramePadding()
@/lua/ge/extensions/editor/dynamicDecals/meshes.lua
im.PopItemWidth()
im.SameLine()
if editor.uiIconImageButton(editor.icons.folder, im.ImVec2(tool.getIconSize(), tool.getIconSize())) then
@/lua/ge/extensions/editor/raceEditor/testing.lua
end
im.SameLine()
if im.Button("State") then
end
im.SameLine()
if im.Button("Recover") then
@/lua/ge/extensions/editor/rallyEditor/static.lua
-- im.Text('[')
-- im.SameLine()
-- if editor.uiIconImageButton(editor.icons.play_circle_filled, im.ImVec2(20, 20), voicePlayClr) then
-- im.tooltip(tooltipStr)
-- im.SameLine()
-- im.Text(codriver.name)
-- im.Text(codriver.name)
-- im.SameLine()
-- im.Text(']')
-- im.Text('[')
-- im.SameLine()
-- if editor.uiIconImageButton(editor.icons.play_circle_filled, im.ImVec2(20, 20), voicePlayClr) then
-- im.tooltip(tooltipStr)
-- im.SameLine()
-- im.Text(codriver.name)
-- im.Text(codriver.name)
-- im.SameLine()
-- im.Text(']')
-- im.Text(']')
-- im.SameLine()
-- end
@/lua/ge/extensions/editor/sitesEditor/zones.lua
if self.current.top.active then
im.SameLine()
if im.Button("Edit Top plane") then
if self.current.bot.active then
im.SameLine()
if im.Button("Edit Bot plane") then
@/lua/ge/extensions/editor/newsMessage.lua
editor.uiTextColoredWithFont(nil, "For any issues/feedback please use the support tickets at", "cairo_bold")
imgui.SameLine()
if imgui.SmallButton("https://support.beamng.com/") then openWebBrowser("https://support.beamng.com/") end
if imgui.SmallButton("https://support.beamng.com/") then openWebBrowser("https://support.beamng.com/") end
imgui.SameLine()
editor.uiTextColoredWithFont(nil, "or the forum at ", "cairo_bold")
editor.uiTextColoredWithFont(nil, "or the forum at ", "cairo_bold")
imgui.SameLine()
if imgui.SmallButton("https://www.beamng.com/forums/world-editor/") then openWebBrowser("https://www.beamng.com/forums/world-editor/") end
@/lua/ge/extensions/editor/rallyEditor/pacenotes/customForm.lua
im.SameLine()
im.SameLine()
@/lua/ge/extensions/gameplay/drift/scoring.lua
im.EndChild()
im.SameLine()
im.BeginChild1("Legend", im.ImVec2(im.GetContentRegionAvailWidth(), 300), true)
@/lua/ge/extensions/editor/flowgraph/overview.lua
im.SameLine()
local graphTypeStr = ui_flowgraph_editor.getGraphTypes()[graph.type].name
selectThisGraph = selectThisGraph or im.IsItemClicked()
--im.SameLine()
--im.TextColored(im.ImVec4(1,0.6,0,1), '[' .. tostring(tableSize(graph.nodes)) .. ']')
if im.IsItemClicked() then clicked = true end
im.SameLine()
im.TextColored(im.ImVec4(1,0.6,0,1), " [Node]")
im.ImGuiTextFilter_Draw(self.filter, "##nodeFilter" .. "self_id", 120)
im.SameLine()
if im.SmallButton('X') then
if editor.getPreference("flowgraph.debug.editorDebug") then
im.SameLine()
if im.SmallButton("Print Graphs") then
@/lua/ge/extensions/editor/flowgraph/garbageDebug.lua
editor.uiIconImage(editor.icons[icon], im.ImVec2(20,20), node.customIconColor or node.iconColor)
im.SameLine()
end
if entry.activeCount then
im.SameLine()
im.Text(string.format("[%d]", entry.activeCount))
local valueTextSize = im.CalcTextSize(valueText)
im.SameLine()
im.SetCursorPosX(winWidth - (valueTextSize.x + 16))
self:Begin(self.windowDescription)
im.SameLine()
local debugEnabled = editor.getPreference("flowgraph.debug.debugGarbage") or false
@/lua/ge/extensions/editor/aiTests.lua
if isWaypoint then
im.SameLine()
if im.Button("Remove##"..marker.objectName) then
end
im.SameLine()
if im.Button("Camera##"..marker.objectName) then
im.tooltip("Sends route data to the ground markers system.")
im.SameLine()
if im.Button("Dump Route") then
im.EndChild()
im.SameLine()
im.SameLine()
if im.Button("Remove From List##aiParams") then
im.SameLine()
if options.dynamicCollisions[0] or not vehicleIds[2] then im.BeginDisabled() end
end
im.SameLine()
else
end
im.SameLine()
end
end
im.SameLine()
if im.Button("Reload##aiParams") then
@/lua/ge/extensions/editor/autoSave.lua
end
imgui.SameLine()
if imgui.Button("Close") then
end
imgui.SameLine()
--TODO: all folder must be empty before FS:directoryRemove
end
imgui.SameLine()
if imgui.Button("Cancel") then
@/lua/ge/extensions/editor/flowgraph/references.lua
im.Text(label:sub(pos1, pos2 - 1))
im.SameLine()
end
im.TextColored(matchColor, label:sub(pos2, pos3))
im.SameLine()
pos1 = pos3 + 1
end
im.SameLine()
if editor.uiIconImageButton(editor.icons.keyboard_arrow_right, buttonSize, self.viewMode == 1 and self.inspectedNode ~= nil and enabledColor or disabledColor) then
end
im.SameLine()
im.HeaderText("\t Find:")
im.SameLine()
im.PushStyleVar2(im.StyleVar_FramePadding, im.ImVec2(6, 6.5 * editor.getPreference("ui.general.scale")))
im.PopItemWidth()
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth() - buttonSize.x * editor.getPreference("ui.general.scale") - 5)
im.PopStyleVar()
im.SameLine()
if editor.uiIconImageButton(editor.icons.refresh, buttonSize) then
im.Text("Existing Node Types: ")
im.SameLine()
im.PushStyleColor2(im.Col_Text, matchColor)
im.PopStyleColor()
im.SameLine()
im.Text("Used Node Types: ")
im.Text("Used Node Types: ")
im.SameLine()
im.PushStyleColor2(im.Col_Text, matchColor)
im.PopStyleColor()
im.SameLine()
im.Text("Node Instances: ")
im.Text("Node Instances: ")
im.SameLine()
im.PushStyleColor2(im.Col_Text, matchColor)
end
im.SameLine()
if im.Selectable1(tostring(rowCount) .. ". ", columnsBasic.selected[0] == rowCount, im.SelectableFlags_SpanAllColumns) then
end
im.SameLine()
self:highlightText(tostring(n.nodeName), string.lower(ffi.string(self.searchText)))
self.mgr:DrawTypeIcon(pin.chainFlow and 'chainFlow' or pin.impulse and 'impulse' or pin.type, true, 1, pinPreviewSize)
im.SameLine()
im.TextWrapped(pin.name)
self.mgr:DrawTypeIcon(pin.chainFlow and 'chainFlow' or pin.impulse and 'impulse' or pin.type, true, 1, pinPreviewSize)
im.SameLine()
im.TextWrapped(pin.name)
im.SameLine()
if im.Selectable1(tostring(rowCount) .. ". ", columnsBasic.selected[0] == rowCount, im.SelectableFlags_SpanAllColumns) then
end
im.SameLine()
im.TextWrapped(tostring(p.projectFile))
@/lua/ge/extensions/editor/shortcutLegend.lua
if spaceNeeded > restOfSpace then
-- Overwrite the last SameLine()
im.Dummy(im.ImVec2(0, 0))
im.Text(controlName)
im.SameLine()
im.Text(" " .. action.title)
im.Text(" " .. action.title)
im.SameLine()
im.Dummy(im.ImVec2(20, 0))
im.Dummy(im.ImVec2(20, 0))
im.SameLine()
end
@/lua/ge/extensions/editor/flowgraphEditor.lua
ui_flowgraph_editor.tooltip("Maximize Editor.")
im.SameLine()
if mgr and mgr.runningState ~= 'stopped' then
ui_flowgraph_editor.tooltip("Stop Execution")
im.SameLine()
im.Text("Project Running")
im.BulletText(mgr.states.states[id].name)
im.SameLine()
im.BeginDisabled()
end
im.SameLine()
im.Text("Project Stopped")
end
im.SameLine()
im.Text(name)
@/lua/common/extensions/ui/imguiUtils.lua
if item.tooltip and imgui.IsItemHovered() then imgui.BeginTooltip() imgui.Text(item.tooltip) imgui.EndTooltip() end
if horizontal then imgui.SameLine() end
end
editor.uiIconImage(editor.icons.done, imgui.ImVec2(14,14))
imgui.SameLine()
end
if item.tooltip and imgui.IsItemHovered() then imgui.BeginTooltip() imgui.Text(item.tooltip) imgui.EndTooltip() end
if horizontal then imgui.SameLine() end
end
if item.tooltip and imgui.IsItemHovered() then imgui.BeginTooltip() imgui.Text(item.tooltip) imgui.EndTooltip() end
if horizontal then imgui.SameLine() end
end
imgui.TextUnformatted(tostring(k) .. ' :')
imgui.SameLine()
imgui.TextUnformatted(tostring(v))
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/veAeroDebug.lua
im.Combo1("FL Wheel Name", wheelNamePtrs[1], wheelNameStringArray)
im.SameLine()
im.Combo1("FR Wheel Name", wheelNamePtrs[2], wheelNameStringArray)
im.Combo1("RL Wheel Name", wheelNamePtrs[3], wheelNameStringArray)
im.SameLine()
im.Combo1("RR Wheel Name", wheelNamePtrs[4], wheelNameStringArray)
@/lua/ge/extensions/editor/dynamicDecals/export.lua
im.TextUnformatted("Vehicle Name")
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth())
im.TextUnformatted("Skin Name")
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth())
im.PopItemWidth()
im.SameLine()
if editor.uiIconImageButton(editor.icons.folder, im.ImVec2(tool.getIconSize(), tool.getIconSize())) then
if exportPath[2] then
im.SameLine()
editor.uiIconImageButton(editor.icons.warning, tool.getIconSizeVec2(), editor.color.warning.Value)
@/lua/ge/extensions/editor/api/valueInspector.lua
end
imgui.SameLine()
if fieldValue == "" then
imgui.PopID()
imgui.SameLine()
if imgui.Button("X###" .. fieldNameId, clearButtonSize) then
end
imgui.SameLine()
if fieldValue == "" then
imgui.PopID()
imgui.SameLine()
if imgui.Button("X###" .. fieldNameId, clearButtonSize) then
end
imgui.SameLine()
imgui.PushItemWidth(imgui.GetContentRegionAvailWidth())
end
imgui.SameLine()
end
if obj then
imgui.Text("Name:") imgui.SameLine()
imgui.Text(obj.name or "")
imgui.Text(obj.name or "")
imgui.Text("InternalName:") imgui.SameLine()
imgui.Text(obj.internalName or "")
imgui.Text(obj.internalName or "")
imgui.Text("ID:") imgui.SameLine()
imgui.Text(tostring(obj:getId()))
imgui.Text(tostring(obj:getId()))
imgui.Text("PID:") imgui.SameLine()
imgui.Text(fieldValue)
editor.pickingLinkTo.selectionObjectIds = deepcopy(self.selectedIds)
end imgui.SameLine()
if imgui.Button("Select") then
end
end imgui.SameLine()
if imgui.Button("Clear") then
end
imgui.SameLine()
imgui.PushItemWidth(imgui.GetContentRegionAvailWidth())
imgui.ColorButton("Annotation color", bgColor, 0, imgui.ImVec2(25, 19))
imgui.SameLine()
imgui.PushItemWidth(imgui.GetContentRegionAvailWidth())
imgui.ColorButton(fieldNameId, bgColor, 0, imgui.ImVec2(25, 19))
imgui.SameLine()
if imgui.Selectable1(annotations[n], isSelected) then
-- imgui.Text(fieldValue)
-- imgui.SameLine()
-- if imgui.Button("Edit...") then
end
imgui.SameLine()
if fieldValue == "" then
imgui.PopID()
imgui.SameLine()
if imgui.Button("X###" .. fieldNameId, clearButtonSize) then
@/lua/ge/extensions/editor/raceEditor/startPositions.lua
im.SameLine()
im.BeginChild1("currentSP", im.ImVec2(0, 0 ), im.WindowFlags_ChildWindow)
im.Text("Current Start Position: #" .. self.index)
im.SameLine()
if im.Button("Delete") then
end
im.SameLine()
if im.Button("Move Up") then
end
im.SameLine()
if im.Button("Move Down") then
@/lua/ge/extensions/flowgraph/nodes/util/template.lua
im.Text("[")
im.SameLine()
im.Dummy(im.ImVec2(self.sliderWidth[0],0))
im.Dummy(im.ImVec2(self.sliderWidth[0],0))
im.SameLine()
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/vePartTree.lua
local open = im.TreeNodeEx1('##treeData' .. tostring(node), flags)
im.SameLine()
im.Dummy(im.ImVec2(8, 1))
im.Dummy(im.ImVec2(8, 1))
im.SameLine()
end
im.SameLine()
im.Dummy(im.ImVec2(3, 1))
im.Dummy(im.ImVec2(3, 1))
im.SameLine()
if editor.uiIconImageButton(vEditor.propertyTableEditTarget == node and editor.icons.send or editor.icons.mode_edit, im.ImVec2(16,16)) then
if node.__astNodeIdx then
im.SameLine()
im.Dummy(im.ImVec2(3, 1))
im.Dummy(im.ImVec2(3, 1))
im.SameLine()
if editor.uiIconImageButton(node.__selected and editor.icons.filter_none or editor.icons.select_all, im.ImVec2(16,16)) then
im.PushStyleColor2(im.Col_Text, colorMeta)
im.SameLine()
im.TextUnformatted(': ')
im.SameLine()
if veh and ast and ast.transient.luaData then
im.SameLine()
if im.SmallButton('Sync with AST') then
end
im.SameLine()
if im.SmallButton('Spawn') then
@/lua/ge/extensions/ui/apps/genericMissionData.lua
im.SameLine()
if im.Button("Clear All") then
@/lua/ge/extensions/util/groundModelDebug.lua
im.Checkbox("Ground", groundDebug) im.SameLine()
im.Checkbox("Depth", depthDebug) im.SameLine()
im.Checkbox("Ground", groundDebug) im.SameLine()
im.Checkbox("Depth", depthDebug) im.SameLine()
if im.Checkbox("Static", staticDebug) then
if im.TreeNode1("Options") then
im.SameLine()
im.Dummy(im.ImVec2(30,0)) im.SameLine()
im.SameLine()
im.Dummy(im.ImVec2(30,0)) im.SameLine()
if im.Checkbox("Mouse Focus", mouseFocus) then serializeSettings() end
end
im.SameLine()
if im.SliderFloat("Tile Size", tileSize, 0.5, 1, "%.2f", nil) then
end
im.SameLine()
if im.SliderFloat("Depth Scale", depthScale, 0.1, 10, "%.2f", nil) then
end
im.SameLine()
if im.SmallButton("Disable All") then
im.PopID()
im.SameLine()
im.PushID1(k..'_color')
-- im.Text(body.objName .. ' [' .. body.objId .. ']')
-- im.SameLine()
-- if ui_imgui.SmallButton("select") then
@/lua/ge/extensions/editor/driftDataEditor.lua
end
im.SameLine()
if selectedStuntZoneIndex - 1 >= 1 then
end
im.SameLine()
end
im.Text("Drift spot's path")
im.SameLine()
if im.Button("Open Race Editor") then
im.Text("Drift spot's bounds")
im.SameLine()
if im.Button("Open Sites Editor") then
end
im.SameLine()
if im.Button("Delete##" .. i .. lineName) then
im.Text("Spot Name:")
im.SameLine()
local namePtr = im.ArrayChar(128, info.name or "")
im.Text(objective.id .. " score:")
im.SameLine()
local scorePtr = im.IntPtr(objective.score)
@/lua/ge/extensions/editor/missionEditor/setupModules.lua
end
im.SameLine()
if setupModule.enabled then
im.HeaderText("Provided Vehicle #"..i)
im.SameLine()
if im.Button("Delete##vehicleSelector"..i) then
end
im.SameLine()
if setupModule.enabled then
if setupModule.amount ~= 0 and setupModule.activeAmount <= 0 then
im.SameLine()
im.TextColored(im.ImVec4(1, 1, 0, 1), " Warning: All traffic vehicles will start out as hidden.")
if setupModule.respawnRate and setupModule.respawnRate <= 0 then
im.SameLine()
im.TextColored(im.ImVec4(1, 1, 0, 1), " Warning: All traffic vehicles will not respawn during gameplay.")
end
im.SameLine()
im.PopItemWidth()
im.SameLine()
im.Text(todToTime(self.todInput[0]))
im.Text(todToTime(self.todInput[0]))
im.SameLine()
im.PopItemWidth()
im.SameLine()
im.Text("Time")
@/lua/ge/extensions/flowgraph/nodes/scene/camera/setCameraRotation.lua
local pos = im.ArrayFloat(4)
im.SameLine()
im.PushItemWidth(200)
end
im.SameLine()
if im.Button("Preview") then
@/lua/ge/extensions/editor/dynamicDecals/settings.lua
im.SameLine()
im.PushItemWidth(width)
im.TextUnformatted("UV Layer")
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth())
end
im.SameLine()
if im.Selectable1(string.format("%s##%s_material_%d_selectable", name, widgetId, id), enabled) then
end
im.SameLine()
if im.Button(string.format("Disable all##Meshes_%s", widgetId)) then
end
im.SameLine()
editor.uiInputSearchTextFilter(string.format("Meshes Filter##%s", widgetId), meshesFilter, im.GetContentRegionAvailWidth())
end
im.SameLine()
if im.Selectable1(string.format("%s##%s_shapeMesh_%d_selectable", name, widgetId, i), enabled) then
im.TextUnformatted("x")
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth())
im.TextUnformatted("y")
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth())
if textureResolution.x ~= api.textureResolutions[textureResolutionXId + 1].value or textureResolution.y ~= api.textureResolutions[textureResolutionYId + 1].value then
im.SameLine()
im.TextColored(editor.color.warning.Value , "Resolution has changed.")
@/lua/ge/extensions/gameplay/crawl/debug.lua
im.TextColored(color, nodeText)
im.SameLine()
im.TextColored(color, string.format("(%.1f, %.1f, %.1f)", pathnode.pos.x, pathnode.pos.y, pathnode.pos.z))
if isCompleted and debugData.pathnodeTimings and debugData.pathnodeTimings[i] then
im.SameLine()
im.TextColored(color, " - " .. formatTime(debugData.pathnodeTimings[i]))
@/lua/ge/extensions/editor/perfProfiler.lua
end
im.SameLine()
if im.Button("X") then
end
im.SameLine()
im.HighlightText(result.name, search.matchString)
end
im.SameLine()
im.Text(table.concat(column.keys, " / "))
for _, preset in ipairs(presets) do
im.SameLine()
if im.Button(preset.name) then
@/lua/ge/extensions/ui/messagesTasksAppContainers.lua
im.SameLine()
im.Text(isVisible and "✓" or "✗")
end
im.SameLine()
if im.Button("Show All##" .. containerId) then
@/lua/ge/extensions/c2/panelPlugins/tileManager.lua
if im.Button("Rebuild Index") then buildTileIndex(debugState.tileSize) end
im.SameLine()
if im.Button("Rebuild Map Graph") then
end
im.SameLine()
if im.Button("Clear Cache") then activeTileCache = {} end
@/lua/ge/extensions/gameplay/rally/tools/rallyToolbox.lua
-- im.SameLine()
-- if im.Button("Driveline Route Recalc##debugDrivelineRouteRecalc") then
-- end
-- im.SameLine()
end
im.SameLine()
if im.Button("RM Full Reload##debugRmVhclReload") then
end
im.SameLine()
end
im.SameLine()
end
im.SameLine()
boolPtr = im.BoolPtr(self.debug.drawRaceAiRoute)
end
im.SameLine()
boolPtr = im.BoolPtr(self.debug.drawRaceSplits)
end
im.SameLine()
boolPtr = im.BoolPtr(self.debug.drawVehicleTracker)
end
im.SameLine()
boolPtr = im.BoolPtr(self.debug.drawStopZone)
end
im.SameLine()
boolPtr = im.BoolPtr(self.debug.drawReccePacenotes)
end
im.SameLine()
boolPtr = im.BoolPtr(self.debug.drawDrivelineRouteStatic)
end
im.SameLine()
end
im.SameLine()
-- end
-- im.SameLine()
end
im.SameLine()
end
im.SameLine()
end
im.SameLine()
end
im.SameLine()
end
im.SameLine()
im.SameLine()
im.SameLine()
end
im.SameLine()
boolPtr = im.BoolPtr(self.debug.drawKdTreeNextPacenoteWp)
end
im.SameLine()
boolPtr = im.BoolPtr(self.debug.enableMouseRayCastMovement)
@/lua/ge/extensions/gameplay/rally/tools/loopToolbox.lua
im.SameLine()
if im.Button("Load") then
im.SameLine()
-- Skip button - enabled if either TC skip or countdown skip is available
im.SameLine()
local skipEnabled = manager:canSkip()
-- Time control buttons
im.SameLine()
if im.Button("-1m") then
end
im.SameLine()
if im.Button("-10s") then
end
im.SameLine()
if im.Button("+10s") then
end
im.SameLine()
if im.Button("+1m") then
end
im.SameLine()
local isPaused = manager:getClockPaused()
if not missionsMatch then
im.SameLine()
im.TextColored(colorRed, " [MISMATCH]")
end
im.SameLine()
if im.Checkbox("Labels", self.drawLabels) then
end
im.SameLine()
if im.Checkbox("Z On Top", self.drawZOnTop) then
end
im.SameLine()
if im.Checkbox("Signboards", self.drawSignboards) then
-- end
-- im.SameLine()
-- if im.Checkbox("Leading Point", self.drawLeadingPoint) then
-- end
im.SameLine()
if im.Checkbox("Stop Zones", self.drawStopZones) then
end
im.SameLine()
if im.Checkbox("Show Debug Info", self.showDebugInfo) then
-- end
-- im.SameLine()
-- im.Text("Found: " .. tostring(#self.signboards))
im.SameLine()
im.TextColored(colorLightBlue, currentTimeStr)
if not event.hideTimecardEntry then
im.SameLine()
im.TextColored(statusColor, statusText)
if event.timecardEntry and event.timecardEntry.actualTime then
im.SameLine()
if needClosingParen then
im.SameLine()
if eventColor then
if falseStartPenalty and falseStartPenalty > 0 then
im.SameLine()
im.TextColored(colorRed, string.format(" +%ds false start", falseStartPenalty))
@/lua/ge/extensions/flowgraph/nodes/ui/selectButtons.lua
end
im.SameLine()
@/lua/ge/extensions/editor/dynamicDecals/layerTypes/textureFill.lua
end
im.SameLine()
local vehicleObj = getPlayerVehicle(0)
end
im.SameLine()
local vehicleObj = getPlayerVehicle(0)
end
im.SameLine()
if im.Button("Cancel##textureFillLayer_Add_Modal") then
@/lua/ge/extensions/editor/cosimulationSignalEditor.lua
im.Dummy(im.ImVec2(15, 0))
im.SameLine()
im.Dummy(im.ImVec2(15, 0))
im.Dummy(im.ImVec2(15, 0))
im.SameLine()
if im.Checkbox("Kinematics", isKinematics) then
im.tooltip('Include the Kinematics signals group.')
im.SameLine()
im.Dummy(im.ImVec2(15, 0))
im.Dummy(im.ImVec2(15, 0))
im.SameLine()
if im.Checkbox("Driver", isDriver) then
im.tooltip('Include the Driver signals group.')
im.SameLine()
im.Dummy(im.ImVec2(15, 0))
im.Dummy(im.ImVec2(15, 0))
im.SameLine()
if im.Checkbox("Wheels", isWheels) then
im.tooltip('Include the Wheels signals group.')
im.SameLine()
im.Dummy(im.ImVec2(15, 0))
im.Dummy(im.ImVec2(15, 0))
im.SameLine()
if im.Checkbox("Electrics", isElectrics) then
im.tooltip('Include the Electrics signals group.')
im.SameLine()
im.Dummy(im.ImVec2(15, 0))
im.Dummy(im.ImVec2(15, 0))
im.SameLine()
if im.Checkbox("Powertrain", isPowertrain) then
im.tooltip('Include the Powertrain signals group.')
im.SameLine()
im.Dummy(im.ImVec2(15, 0))
im.Dummy(im.ImVec2(15, 0))
im.SameLine()
if im.Checkbox("Sensors", isSensors) then
if im.Selectable1("", false, bit.bor(im.SelectableFlags_SpanAllColumns, im.SelectableFlags_AllowItemOverlap)) then end
im.SameLine()
end
im.SameLine()
im.NextColumn()
im.TextColored(ctrCol, posStr)
im.SameLine()
im.NextColumn()
im.TextColored(blueB, signal.groupName)
im.SameLine()
im.NextColumn()
im.TextColored(greenB, signal.description)
im.SameLine()
im.NextColumn()
im.TextColored(typeCol, type)
im.SameLine()
im.NextColumn()
im.tooltip("Reload available signals.")
im.SameLine()
im.tooltip("Unlink all selected signals (reset configuration).")
im.SameLine()
im.Dummy(im.ImVec2(15, 0))
im.SameLine()
im.Dummy(im.ImVec2(5, 0))
im.SameLine()
local fromKb, toKb, fromWarn, toWarn = fromCtr * 0.008, toCtr * 0.008, '', ''
im.TextColored(fromCol, ' From: ' .. fromKb .. '/1.5kb' .. fromWarn)
im.SameLine()
im.TextColored(toCol, ' To: ' .. toKb .. '/1.5kb' .. toWarn)
im.tooltip('Toggle whether to store the vehicle pose (position and rotation) with configuration file.')
im.SameLine()
im.Dummy(im.ImVec2(15, 0))
im.SameLine()
im.PopItemWidth()
im.SameLine()
im.Dummy(im.ImVec2(15, 0))
im.SameLine()
im.Dummy(im.ImVec2(15, 0))
im.Dummy(im.ImVec2(15, 0))
im.SameLine()
im.Text('3rd Party IP/port:')
im.SameLine()
im.PushItemWidth(80)
im.PopItemWidth()
im.SameLine()
im.PushItemWidth(120)
sPort = im.IntPtr(max(1025, min(65536, sPort[0])))
im.SameLine()
im.Dummy(im.ImVec2(15, 0))
im.SameLine()
im.Text('BeamNG IP/port:')
im.SameLine()
im.PushItemWidth(80)
im.PopItemWidth()
im.SameLine()
im.PushItemWidth(120)
-- im.Text("Logging frequency (sec):")
-- im.SameLine() -- Place the input box right after the label
-- im.InputInt("", loggingFrequency, 1, 10) -- Leave the label in InputInt blank to avoid duplicate text
@/lua/ge/extensions/editor/sceneTree.lua
editor.uiIconImage(icon, iconSize, iconColor)
imgui.SameLine()
imgui.PushStyleColor2(imgui.Col_Header, selectionColor)
imgui.SameLine()
hideButtonRendered = true
imgui.SameLine()
if imgui.IsItemHovered() then flagsHovered = true end
editor.uiIconImageButton(editor.icons.visibility_off, smallIconSize, iconColor, "", nil, nil, iconColor, nil, nil)
imgui.SameLine()
end
imgui.PopStyleColor()
imgui.SameLine()
imgui.PopStyleColor()
imgui.SameLine()
imgui.Spacing()
imgui.SameLine()
imgui.PopStyleColor()
imgui.SameLine()
end
editor.uiIconImageButton(icon, smallIconSize, imgui.GetStyleColorVec4(imgui.Col_Text))
imgui.SameLine()
if node.setFocus then
if imgui.IsItemHovered() then imgui.SetTooltip("New subgroup (folder) in the selected group") end
imgui.SameLine()
imgui.PushID1("SceneSearchFilter")
if imgui.IsItemHovered() then imgui.SetTooltip("Search text") end
imgui.SameLine()
imgui.PushItemWidth(filterTypeComboWidth)
imgui.SameLine()
imgui.SameLine()
end
if i > 1 then imgui.SameLine() imgui.Text(">") imgui.SameLine() end
end
end
if i > 1 then imgui.SameLine() imgui.Text(">") imgui.SameLine() end
end
editor.uiIconImage(editor.icons.find_in_page, imVec24x24)
imgui.SameLine()
--imgui.Dummy(imgui.ImVec2(5, imgui.GetStyle().ItemSpacing.y))
@/lua/ge/extensions/editor/rallyEditor/pacenotes/structuredForm.lua
if i < #fnames then
im.SameLine()
end
im.SameLine()
im.SameLine()
end
im.SameLine()
if im.Button("Cancel", im.ImVec2(120,0)) then
end
im.SameLine()
im.Text("severity")
end
im.SameLine()
if im.RadioButton2(mapping.cornerDirection[0], directionPtr, im.Int(1)) then
end
im.SameLine()
if im.RadioButton2(mapping.cornerDirection[1], directionPtr, im.Int(2)) then
end
im.SameLine()
im.Text("length")
end
im.SameLine()
im.Text("radius change")
end
im.SameLine()
im.Text("caution")
im.Text("caution")
im.SameLine()
im.TextColored(im.ImVec4(0, 1, 1, 1), "(?)")
@/lua/ge/extensions/flowgraph/builder.lua
--im.BeginHorizontal3(pinId)
--im.SameLine()
end
--im.BeginHorizontal3(pinId)
--im.SameLine()
end
im.PopID()
im.SameLine()
local itemRect = GetItemRect()
im.PopID()
im.SameLine()
local itemRect = GetItemRect()
--im.Dummy(im.ImVec2(4,0))
--im.SameLine()
--local tempRect = GetItemRect()
--im.Dummy(im.ImVec2(4,0))
--im.SameLine()
--local tempRect = GetItemRect()
if paddingRequired >= 0 then
--im.SameLine()
im.Dummy(im.ImVec2(paddingRequired,2))
im.Dummy(im.ImVec2(paddingRequired,2))
im.SameLine()
end
@/lua/ge/extensions/editor/objectToSplineEditor.lua
end
im.SameLine()
str = tostring(scenetree.findObjectById(objId):getName()).." ["..objId.."]"
im.TextUnformatted(str)
im.SameLine()
if im.Button("Get From Selection##objectMode") then
end
im.SameLine()
str = tostring(scenetree.findObjectById(guideId):getName()).." ["..guideId.."]"
im.TextUnformatted(str)
im.SameLine()
if im.Button("Get From Selection##splineMode") then
if guideErrorTxt then
im.SameLine()
im.TextColored(im.ImVec4(1, 1, 0, 1), guideErrorTxt)
im.tooltip("Uses the longest side: X or Y")
im.SameLine()
if im.RadioButton2("X ##objectSpline", objAxis, im.Int(2)) then _changed = true end
if im.RadioButton2("X ##objectSpline", objAxis, im.Int(2)) then _changed = true end
im.SameLine()
if im.RadioButton2("Y ##objectSpline", objAxis, im.Int(3)) then _changed = true end
if im.RadioButton2("Y ##objectSpline", objAxis, im.Int(3)) then _changed = true end
im.SameLine()
if im.RadioButton2("-X ##objectSpline", objAxis, im.Int(4)) then _changed = true end
if im.RadioButton2("-X ##objectSpline", objAxis, im.Int(4)) then _changed = true end
im.SameLine()
if im.RadioButton2("-Y ##objectSpline", objAxis, im.Int(5)) then _changed = true end
if im.RadioButton2("-Y ##objectSpline", objAxis, im.Int(5)) then _changed = true end
im.SameLine()
im.TextUnformatted("Object Axis")
im.SameLine()
if im.Checkbox("Do Random Height", useRandomPosZ) then _changed = true end
im.SameLine()
if im.Checkbox("Do Random Tilt", useRandomRotXY) then _changed = true end
end
im.SameLine()
if im.Button("Create") then
@/lua/ge/extensions/editor/dynamicDecals/loadSave.lua
end
im.SameLine()
if loadingModeNamesCharPtr then
im.SameLine()
im.PushItemWidth(120)
@/lua/ge/extensions/editor/camPathEditor.lua
im.Text('FOV:')
im.SameLine()
local imVal = im.FloatPtr(core_camera.getFovDeg())
im.PopItemWidth()
im.SameLine()
if im.Button('Reset##fov') then
end
im.SameLine()
if im.Button('Reset##trackingOffset') then
im.SameLine()
im.SameLine()
end
im.SameLine()
if im.Button('Cancel', im.ImVec2(80 * im.uiscale[0], 0)) then
local marker = M.currentPath.markers[currentMarkerIndex]
im.SameLine()
im.BeginChild1('currentMarkerInner', im.ImVec2(detailsWidth, listHeight), im.WindowFlags_ChildWindow)
im.SameLine()
im.SameLine()
end
im.PopItemWidth()
im.SameLine()
if im.Button('Set for all##fov', im.ImVec2(buttonWidth, 0)) then
im.PopItemWidth()
im.SameLine()
if im.Button('Set for all##pos', im.ImVec2(buttonWidth, 0)) then
end
im.SameLine()
if im.Button('Set following', im.ImVec2(buttonWidth, 0)) then
end
im.SameLine()
if im.Button('Set for all##trackPos', im.ImVec2(buttonWidth, 0)) then
end
im.SameLine()
if im.Button('Set for all##startMove', im.ImVec2(buttonWidth, 0)) then
end
im.SameLine()
if im.Button('Set for all##endMove', im.ImVec2(buttonWidth, 0)) then
if overlayEnabled[0] then
im.SameLine()
im.PushItemWidth(120 * im.uiscale[0])
im.Text('Selected Path: ')
im.SameLine()
im.Text('Replay File:')
im.SameLine()
im.PushItemWidth(-1) -- Use remaining width
end
im.SameLine()
if im.Button('No') then
end
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth())
end
im.SameLine()
if im.Button('-2', im.ImVec2(seekButtonWidth, 0)) then
end
im.SameLine()
if im.Button('-1', im.ImVec2(seekButtonWidth, 0)) then
end
im.SameLine()
if im.Button('+1', im.ImVec2(seekButtonWidth, 0)) then
end
im.SameLine()
if im.Button('+2', im.ImVec2(seekButtonWidth, 0)) then
end
im.SameLine()
if im.Button('+10', im.ImVec2(seekButtonWidth, 0)) then
im.tooltip('Allow the user to override the fov while the path camera is running')
im.SameLine()
local looped = im.BoolPtr(M.currentPath.looped or false)
im.SameLine()
im.PushStyleColor2(im.Col_Button, im.ImVec4(0, 0.3, 0, 0.5))
@/lua/ge/extensions/editor/sitesEditor/tags.lua
im.SameLine()
im.BeginChild1("currentElement", im.ImVec2(0, 0 ), im.WindowFlags_ChildWindow)
@/lua/ge/extensions/editor/util/transformUtil.lua
im.Text(self.objectName)
im.SameLine()
im.SetCursorPosX(prePos.x + width - 23*scale)
local endPos = im.GetCursorPos()
im.SameLine()
local btnX = im.GetCursorPosX()
im.tooltip(btn.label)
im.SameLine()
prePos.x = math.max(prePos.x, im.GetCursorPosX())
im.SameLine()
im.Text("Pos")
im.SameLine()
im.SetCursorPosX(prePos.x + 35 * scale)
im.Text("Rot")
im.SameLine()
im.SetCursorPosX(prePos.x + 35 * scale)
im.Text("Scl")
im.SameLine()
im.SetCursorPosX(prePos.x + 35 * scale)
end
im.SameLine()
if im.Button("...") then
@/lua/ge/extensions/gameplay/drift/stuntZones.lua
im.Text(stuntZone.data.zoneData.type .. " id : " .. stuntZone.data.id)
im.SameLine()
if im.Button("Score ##"..stuntZone.data.id) then
@/lua/ge/extensions/editor/dragRaceEditor/waypoints.lua
end
im.SameLine()
if im.Button("Add Stage") then
end
im.SameLine()
if im.Button("Add End Line") then
im.SameLine()
if im.Button("Save") then
im.Text("Type: ")
im.SameLine()
im.PushItemWidth(100)
@/lua/ge/extensions/editor/rendererComponents.lua
im.tooltip("Open file dialog")
im.SameLine()
im.TextUnformatted("Tone Mapping Contrast")
im.SameLine()
if im.SliderFloat("##lightingToneMappingBrightness", getTempFloat(0), rangeMin, rangeMax, "%.3f") then
im.TextUnformatted("Key Value")
im.SameLine()
if im.SliderFloat("##lightingKeyValue", getTempFloat(0), rangeMin, rangeMax, "%.3f") then
im.TextUnformatted("Minimum Luminance")
im.SameLine()
if im.SliderFloat("##lightingMinLuminance", getTempFloat(0), rangeMin, rangeMax, "%.3f") then
im.TextUnformatted("White Cutoff")
im.SameLine()
if im.SliderFloat("##lightingWhiteCutoff", getTempFloat(0), rangeMin, rangeMax, "%.3f") then
im.TextUnformatted("Brightness Adapted Rate")
im.SameLine()
if im.SliderFloat("##lightingBrightnessAdaptedRate", getTempFloat(0), rangeMin, rangeMax, "%.3f") then
im.TextUnformatted("Bright Pass Threshold")
im.SameLine()
if im.SliderFloat("##lightingBrightPassThreshold", getTempFloat(0), rangeMin, rangeMax, "%.3f") then
im.TextUnformatted("Blur Multiplier")
im.SameLine()
if im.SliderFloat("##lightingBlurMultiplier", getTempFloat(0), rangeMin, rangeMax, "%.3f") then
im.TextUnformatted("Blur 'Mean' value")
im.SameLine()
if im.SliderFloat("##lightingBlurMeanvalue", getTempFloat(0), rangeMin, rangeMax, "%.3f") then
im.TextUnformatted("Blur 'Std Mean' value")
im.SameLine()
if im.SliderFloat("##lightingBlurStdMeanvalue", getTempFloat(0), rangeMin, rangeMax, "%.3f") then
end
im.SameLine()
tempBoolPtr[0] = DOFSettings['enableDebugMode'].value
im.TextUnformatted("Focus Blur (Near)")
im.SameLine()
local blurMin = DOFSettings['focusSettings'].blurMin
im.TextUnformatted("Focus Blur (Far)")
im.SameLine()
local blurMax = DOFSettings['focusSettings'].blurMax
im.TextUnformatted("Aperture (Focus Width)")
im.SameLine()
local blurCurveFar = DOFSettings['focusSettings'].blurCurveFar
im.TextUnformatted("Falloff Sharpness")
im.SameLine()
local focusRangeMin = DOFSettings['focusSettings'].focusRangeMin
im.TextUnformatted("Focus Distance (meters)")
im.SameLine()
local focusRangeMax = DOFSettings['focusSettings'].focusRangeMax
im.TextUnformatted("Brightness")
im.SameLine()
if im.SliderFloat("##lightraysBrightness", tempFloatPtr, rangeMin, rangeMax, "%.3f") then
@/lua/ge/extensions/editor/missionEditor/progressSetup.lua
im.HeaderText("Progress - "..translateLanguage(self.mission.name, self.mission.name, true))
im.SameLine()
self.rawCheckbox[0] = self.rawEditPerMission[self.mission.id] or false
end
im.SameLine()
if im.Button("Cancel") then
@/lua/ge/extensions/editor/forestEditor.lua
im.TextUnformatted(tostring(item:getUid()))
im.SameLine()
if im.Button("Copy") then
im.TextUnformatted(text)
im.SameLine()
local res = editor.uiSliderFloat(id, val, vmin, vmax, format, power, editEnded)
im.tooltip(tool.tooltip)
im.SameLine()
if tool.disabled == true then
im.Text("Sink Value:")
im.SameLine()
editor.uiInputFloat("##snapSink", snapSinkPtr, 0.1, 1.0, nil, nil, editEnded)
im.TextUnformatted("Brush Settings: \t")
im.SameLine()
local brushSizeEditEnded = im.BoolPtr(false)
end
im.SameLine()
if sliderFloat("Density", "##BrushPressure", brushPressure, 1, 100, "%.0f%", nil, brushPressureEditEnded, setBrushPressure, "Brush Density") then
editor.uiVertSeparator(32)
im.SameLine()
if im.SmallButton("ForestBrushes") then
im.SameLine()
if im.SmallButton("ForestBrushes Map") then
im.SameLine()
if im.SmallButton("Brush Properties") then
im.SameLine()
if im.SmallButton("Test") then
im.SameLine()
if im.SmallButton("Forest Brush Group") then
im.SameLine()
if im.SmallButton("Save") then
end
im.SameLine()
editor.uiIconImage(editor.icons.forest_brushgroup, im.ImVec2(var.fontSize, var.fontSize))
editor.uiIconImage(editor.icons.forest_brushgroup, im.ImVec2(var.fontSize, var.fontSize))
im.SameLine()
editor.uiIconImage(editor.icons.forest_brushelement, im.ImVec2(var.fontSize, var.fontSize))
im.SameLine()
forestBrushItemButton(element)
editor.uiIconImage(editor.icons.forest_brushelement, im.ImVec2(var.fontSize, var.fontSize))
im.SameLine()
forestBrushItemButton(forestBrush)
editor.uiIconImage(editor.icons.forest_brushelement, im.ImVec2(var.fontSize, var.fontSize))
im.SameLine()
local cPos = im.GetCursorPos()
im.TextUnformatted(string.format("Selected texture set: %d", pM_selectedTextureSetId))
im.SameLine()
end
im.SameLine()
if pM_selectedTextureSetId < 1 or pM_textureSetCopy == nil then im.BeginDisabled() end
im.SameLine()
if pM_selectedTextureSetId < 1 or pM_selectedTextureSetData == nil then im.BeginDisabled() end
textureSetImageButton(imgSize, 2, "Left")
im.SameLine()
textureSetImageButton(imgSize, 3, "Back")
im.SameLine()
textureSetImageButton(imgSize, 4, "Right")
im.SameLine()
if pM_textureSetDirty then
im.SameLine(nil, im.GetStyle().ItemSpacing.x * 4)
if im.Button("Revert changes##TextureSetEditor") then
im.tooltip("Revert changes")
im.SameLine()
im.TextColored(editor.color.warning.Value, "TextureSet has been modified. Hit the save button to write the changes to disk.")
im.tooltip("Add New Brush Group")
im.SameLine()
im.tooltip("Add New Brush Element")
im.SameLine()
im.tooltip("Add New Mesh")
im.SameLine()
if not forest then
im.SameLine()
im.TextColored(yellow, "No forest object present. Please create one.")
if not var.forestEditorWindowMinWidth then
im.SameLine()
var.forestEditorWindowMinWidth = im.GetCursorPosX()
end
im.SameLine()
if im.Button("No") then
end
im.SameLine()
if im.Button("No") then
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth())
end
im.SameLine()
if fieldValue == "" then
im.PopID()
im.SameLine()
if im.Button("X###" .. fieldName, clearButtonSize) then
@/lua/ge/extensions/editor/dragRaceEditor/dragSettings.lua
im.Text("Drag Settings:")
im.SameLine()
if im.Button("Add##settings_add") then
end
im.SameLine()
if im.Button("Remove##settings_remove") then
end
im.SameLine()
if im.Button("Save##settings_save") then
end
im.SameLine()
if im.Button("Refresh##settings_refresh") then
im.Text("Can Be Reset: ")
im.SameLine()
local canBeReseted = im.BoolPtr(dragSettings.canBeReseted or false)
im.Text("Can Be Teleported: ")
im.SameLine()
local canBeTeleported = im.BoolPtr(dragSettings.canBeTeleported or false)
im.Text("Context: ")
im.SameLine()
local context = im.ArrayChar(256, dragSettings.context or "")
im.Text("Drag Type: ")
im.SameLine()
im.PushItemWidth(100)
im.Text("Strip ID: ")
im.SameLine()
local stripId = im.ArrayChar(256, dragSettings.stripId or "")
im.Text("Facility ID: ")
im.SameLine()
local facilityId = im.ArrayChar(256, dragSettings.facilityId or "")
im.SameLine()
if im.Button("Remove Selected Phase") then
im.Text("Name:")
im.SameLine()
local phaseName = im.ArrayChar(256, phase.name or "")
im.Text("Started Offset:")
im.SameLine()
local offset = im.IntPtr(phase.startedOffset or 0)
im.Text("Christmas Tree:")
im.SameLine()
local christmasTreeUsed = im.BoolPtr(dragSettings.prefabs.christmasTree.isUsed or false)
if dragSettings.prefabs.christmasTree.isUsed then
im.SameLine()
im.Text("Type:")
im.Text("Type:")
im.SameLine()
im.PushItemWidth(100)
im.Text("Prefab Path:")
im.SameLine()
local christmasTreePath = im.ArrayChar(512, dragSettings.prefabs.christmasTree.prefabPath or "")
end
im.SameLine()
if im.Button("Browse##christmasTree") then
im.Text("Display Sign:")
im.SameLine()
local displaySignUsed = im.BoolPtr(dragSettings.prefabs.displaySign.isUsed or false)
im.Text("Prefab Path:")
im.SameLine()
local displaySignPath = im.ArrayChar(512, dragSettings.prefabs.displaySign.prefabPath or "")
end
im.SameLine()
if im.Button("Browse##displaySign") then
im.Text("Paths:")
im.SameLine()
local pathsUsed = im.BoolPtr(dragSettings.prefabs.paths.isUsed or false)
im.Text("Prefab Path:")
im.SameLine()
local pathsPath = im.ArrayChar(512, dragSettings.prefabs.paths.prefabPath or "")
end
im.SameLine()
if im.Button("Browse##paths") then
im.Text("Decorations:")
im.SameLine()
local decorationsUsed = im.BoolPtr(dragSettings.prefabs.decorations.isUsed or false)
im.Text("Prefab Path:")
im.SameLine()
local decorationsPath = im.ArrayChar(512, dragSettings.prefabs.decorations.prefabPath or "")
end
im.SameLine()
if im.Button("Browse##decorations") then
im.Text("Can Be Reset: ")
im.SameLine()
local canBeReseted = im.BoolPtr(dragSettings.canBeReseted or false)
im.Text("Can Be Teleported: ")
im.SameLine()
local canBeTeleported = im.BoolPtr(dragSettings.canBeTeleported or false)
im.Text("Context: ")
im.SameLine()
local context = im.ArrayChar(256, dragSettings.context or "")
im.Text("Drag Type: ")
im.SameLine()
im.PushItemWidth(100)
im.Text("Facility ID: ")
im.SameLine()
local facilityId = im.ArrayChar(256, dragSettings.facilityId or "")
im.Text("Strip ID: ")
im.SameLine()
local stripId = im.ArrayChar(256, dragSettings.stripId or "")
im.Text(label)
im.SameLine()
local boolptr = im.BoolPtr(dragSettings.prefabs[prefabType].isUsed or false)
im.SameLine()
if im.Button("Load...##" .. label) then
if dragSettings.prefabs[prefabType].path then
im.SameLine()
im.TextColored(constants.CONSTANTS.COLORS.SUCCESS, "Loaded!")
im.TextColored(constants.CONSTANTS.COLORS.SUCCESS, "Loaded!")
im.SameLine()
if im.Button("Clear##" .. label) then
elseif dragSettings.prefabs[prefabType].isUsed then
im.SameLine()
im.TextColored(constants.CONSTANTS.COLORS.WARNING, "No prefab loaded")
im.Text("Tree Type: ")
im.SameLine()
local search = state.getSearch()
im.Text(i .. ". " .. p.name)
im.SameLine()
if im.Button("Remove##phase" .. i) then
if i > 1 then
im.SameLine()
if im.Button("↑##up" .. i) then
if i < #dragSettings.phases then
im.SameLine()
if im.Button("↓##down" .. i) then
im.SameLine()
local dependency = im.BoolPtr(p.dependency)
@/lua/ge/extensions/editor/slotTrafficEditor.lua
im.Text("Filter roads:")
im.SameLine()
local roadFilterChanged = im.InputText("##RoadFilter", im.ArrayChar(128, roadFilterText), filterFlags)
end
im.SameLine()
im.PushStyleColor2(im.Col_Button, im.ImVec4(0.7, 0.2, 0.2, 0.7))
@/lua/ge/extensions/editor/crawlEditor/paths.lua
im.Text("File Name")
im.SameLine()
if im.Button("Rename") then
@/lua/ge/extensions/editor/createObjectTool.lua
imgui.SameLine()
if editor.uiIconImageButton(editor.icons.close, imgui.ImVec2(22, 22)) then
if not editor.getPreference("createObjectTool.general.verticalToolbar") then
imgui.SameLine()
end
editor.uiVertSeparator(editor.getPreference("ui.general.iconButtonSize"), imgui.ImVec2(0, 0))
imgui.SameLine()
else
if not editor.getPreference("createObjectTool.general.verticalToolbar") then
imgui.SameLine()
end
end
imgui.SameLine()
if imgui.BeginPopup("CreateSimObjectPopup") then
imgui.EndPopup()
imgui.SameLine()
end
if not editor.getPreference("createObjectTool.general.verticalToolbar") then
imgui.SameLine()
end
@/lua/ge/extensions/editor/missionEditor/careerSetup.lua
editor.uiInputText("##AI", getBuffer(idx.."--"..key, re.attributeKey), 512, nil, nil, nil, editEnded)
im.SameLine()
local att = self:attributeDropdown()
im.PopItemWidth()
im.SameLine()
local att = self:attributeDropdown()
local att = self:attributeDropdown()
im.SameLine()
local changed = false
im.SameLine()
if editor.uiIconImageButton(editor.icons.content_copy, im.ImVec2(22, 22)) then
im.tooltip("Copy Rewards")
im.SameLine()
if not self.copiedRewards then
self:drawAttributeInput(re, i, key)
im.SameLine()
self:drawRewardAmount(re, i, key)
self:drawRewardAmount(re, i, key)
im.SameLine()
if im.SmallButton("Rem") then
end
im.SameLine()
if im.Checkbox("Career##ShowInCareer", self.showInCareerCheckbox) then
@/lua/ge/extensions/editor/sidewalkSpline.lua
im.tooltip('Add a new sidewalk spline.')
im.SameLine()
im.NextColumn()
im.tooltip(isDrawPolygon and 'Click to stop drawing a selection polygon.' or 'Click to draw a selection polygon, to convert scene objects to a Sidewalk Spline.')
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
wCtr = wCtr + 1
im.SameLine()
im.NextColumn()
wCtr = wCtr + 1
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
im.tooltip('Select the Sidewalk Kit folder.')
im.SameLine()
im.NextColumn()
im.Text("Use")
im.SameLine()
im.NextColumn()
im.Text("Mesh")
im.SameLine()
im.NextColumn()
im.Text("Role")
im.SameLine()
im.NextColumn()
im.tooltip(isEnabled and 'Do not include this component in the sidewalk.' or 'Include this component in the sidewalk.')
im.SameLine()
im.NextColumn()
im.tooltip(piece.baseMesh and piece.baseMesh.meshPath or "Unknown mesh path")
im.SameLine()
im.NextColumn()
im.tooltip("The base mesh of this component.")
im.SameLine()
im.NextColumn()
im.tooltip(varEnabled and 'Do not include this variation in the sidewalk.' or 'Include this variation in the sidewalk.')
im.SameLine()
im.NextColumn()
im.tooltip(variation.meshPath or "Unknown mesh path")
im.SameLine()
im.NextColumn()
im.Text("")
im.SameLine()
im.NextColumn()
im.TextColored(cols.greenB, baseMeshName:gsub("%.dae$", ""))
im.SameLine()
im.TextColored(cols.greenB, ":")
im.tooltip('Use round robin pattern for this component set.')
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
@/lua/ge/extensions/editor/gen/exp_meshexplorer.lua
-- im.Text('C')
-- im.SameLine()
--[[
if k==1 and env.ui['model_on'] then
im.SameLine()
-- column width returns remaining space in column
im.Dummy(im.ImVec2(w-40,0))
im.SameLine()
UI.buttonImg('joints_up', 'link', {30,20}, color)
UI.buttonImg('joints_up', 'link', {30,20}, color)
im.SameLine()
im.tooltip((injoints and 'Skip' or 'Find')..' joint parts')
im.Dummy(im.ImVec2(w-40,0))
im.SameLine()
UI.buttonImg('joints_up', 'link', {30,20}, color)
UI.buttonImg('joints_up', 'link', {30,20}, color)
im.SameLine()
im.tooltip('Show'..' links'..'>'..tostring(env.ui['geo_up'])..'<')
if j == 4 then
im.SameLine()
-- im.SetCursorPosY(im.GetCursorPosY()-100)
if indae and env.ui['model_on'] then
-- im.SameLine()
-- im.Dummy(im.ImVec2(0,0))
im.NextColumn()
-- im.SameLine()
if #ageopin>0 and indae and tableSize(daedata.dgeo)>0 then
im.SameLine()
if (not env.ui['model_on'] and env.ui['file_up']) or (env.ui['model_up'] and env.ui['model_on']) then
-- PATH PANEL
im.SameLine()
im.NextColumn()
if j == #fsnode.astep then
-- im.SameLine()
-- im.Indent(-40)
if not indae then
im.SameLine()
avail = im.GetContentRegionAvail()
for i,list in pairs(bag4surf) do
im.SameLine()
im.Text(''..i)
@/lua/ge/extensions/editor/rallyEditor.lua
end
im.SameLine()
if im.Button("Cancel", im.ImVec2(120,0)) then
im.PopStyleColor(1)
im.SameLine()
if currentPath then
-- im.SameLine()
-- if im.Button("Refresh") then
if not editor.editMode or editor.editMode.displayName ~= editModeName then
im.SameLine()
im.PushStyleColor2(im.Col_Button, im.ImColorByRGB(255,0,0,255).Value)
im.tooltip(tostring(currentPath.fname))
-- im.SameLine()
-- im.Text(""..tostring(currentPath.fname))
-- im.Text("Mission: "..tostring(currentPath:getMissionId()))
-- im.SameLine()
-- if im.Button("Open Mission Editor") then
@/lua/ge/extensions/flowgraph/nodes/vehicle/beamstate/couple.lua
self.data.mode == 'toggle') then
im.SameLine()
im.Text("(!)")
@/lua/ge/extensions/editor/missionEditor/progressSingle.lua
im.Text(star.isDefaultStar and "(Default Star)" or "(Bonus Star)")
im.SameLine()
im.Checkbox(dumps(star.label.txt), im.BoolPtr(star.unlocked))
im.HeaderText("Progress - "..translateLanguage(self.mission.name, self.mission.name, true))
im.SameLine()
self.rawCheckbox[0] = self.rawEditPerMission[self.mission.id] or false
end
im.SameLine()
if im.Button("Cancel") then
@/lua/ge/extensions/flowgraph/basenode.lua
im.Dummy(im.ImVec2(1, 1))
im.SameLine()
if icon and editor.icons[icon] then
editor.uiIconImage(editor.icons[icon], vec20x20, self.customIconColor or self.iconColor)
im.SameLine()
end
im.TextUnformatted(displayedName)
im.SameLine()
im.Dummy(im.ImVec2(0, 28))
editor.uiIconImage(editor.icons.timer, vec20x20)
im.SameLine()
if self._frameLastUsed ~= -1 then
editor.uiIconImage(editor.icons[icon], im.ImVec2(22, 22))
im.SameLine()
end
editor.uiIconImage(editor.icons[ui_flowgraph_editor.getBehaviourIcon(b)], im.ImVec2(22, 22))
im.SameLine()
im.Text(ui_flowgraph_editor.getBehaviourDescription(b))
im.Dummy(im.ImVec2(math.max(1,builder.expectedHeaderWidth/2-64),0))
im.SameLine()
editor.uiIconImage(editor.icons[icon], im.ImVec2(64,64), fgClr)
local xOff = outPinWidth - im.CalcTextSize(txt).x - 3
im.Dummy(im.ImVec2(xOff, 1)) im.SameLine()
im.Text(txt)
if i < 10 then
im.SameLine()
end
@/lua/ge/extensions/editor/rallyEditor/pacenotes/pacenoteForm.lua
-- im.PopFont()
im.SameLine()
im.Text('(distance before, var='..rallyUtil.var_db..')')
end
im.SameLine()
im.Text('Pacenote text')
end
im.SameLine()
im.Text('(distance after, var='..rallyUtil.var_da..')')
-- end
-- im.SameLine()
if im.Button("Place Vehicle") then
end
im.SameLine()
-- end
-- im.SameLine()
end
im.SameLine()
if im.Button("Done") then
end
im.SameLine()
end
im.SameLine()
if not pacenote:useStructured() then
im.SameLine()
if im.Button("Merge with Prev") then
end
im.SameLine()
if im.Button("Merge with Next") then
end
im.SameLine()
im.TextColored(im.ImVec4(0, 1, 1, 1), "(?)")
end
im.SameLine()
im.TextColored(im.ImVec4(0, 1, 1, 1), "(?)")
end
im.SameLine()
im.TextColored(im.ImVec4(0, 1, 1, 1), "(?)")
end
im.SameLine()
if im.Button("Cancel", im.ImVec2(120, 0)) then
@/lua/ge/extensions/flowgraph/nodes/gameplay/countdown.lua
im.Dummy(im.ImVec2((avail.x-tWidth.x)/2 -10,0))
im.SameLine()
end
@/lua/ge/extensions/editor/gen/ui.lua
for i,v in pairs(list) do
im.SameLine()
-- ifroof = W.ifRoof('pyramid')
end
im.SameLine()
local cur = im.GetCursorPos()
im.Text(lbl)
im.SameLine()
im.Indent(conf.inputMargin)
-- if true then return end
im.SameLine()
local ptr = im[tp..'Ptr'](env and env.ui[key] or 0)
im.Text(lbl)
im.SameLine()
im.Indent(conf.inputMargin)
-- labelHide(nil, lbl)
-- im.SameLine()
-- im.Indent(140)
-- im.SameLine()
if not nolabel then
im.Text(lbl)
im.SameLine()
im.Indent(conf.inputMargin)
-- overlay text
im.SameLine()
-- center = nil
end
im.SameLine()
im.Indent(-30)
-- dim = im.ImVec2(64,64)
im.SameLine()
im.Indent()
im.Text(lbl)
im.SameLine()
im.Indent(conf.inputMargin)
im.Dummy(im.ImVec2(0, 0))
im.SameLine()
----------------------------------------------
-- local bgcolor = W.ui.building_shape == ashape[k] and bgActive or nil
im.SameLine()
local dim = im.ImVec2(37,37)
-- im.SameLine()
buttonT('Save', 'session_save', ctxt, im.ImVec4(0.47, 0.45, 0.45, opacity), nil, true)
im.SameLine()
ctxt = (scope == 'building') and im.ImVec4(0.9, 0.9, 0.9, 1) or colorOff
buttonC(s, 'building_shape', c) -- 'tetromino') -- 't_shape')
im.SameLine()
end
-- im.SameLine()
im.Dummy(im.ImVec2(4, 0))
im.Dummy(im.ImVec2(4, 0))
im.SameLine()
if W.out.inseed == true then
-- button('Seed building', 'building_seed', 'add_location', nil, W.out.inseed == true)
-- im.SameLine()
-- im.Dummy(im.ImVec2(8, 0))
im.Separator()
-- im.SameLine()
-- im.TextColored(colorNav, 'Scope:')
im.Unindent(8)
-- im.SameLine()
im.Indent(6)
if i > 1 then
im.SameLine()
end
im.SameLine()
end
im.SameLine()
im.Indent(-30)
-- im.Indent(8)
-- im.SameLine()
-- im.SameLine()
-- im.Dummy(im.ImVec2(6, 0))
im.Indent(34)
-- im.SameLine()
-- im.Dummy(im.ImVec2(6, 0))
im.SameLine()
im.Dummy(im.ImVec2(0, 0))
if U._PRD == 0 then
im.SameLine()
if editor.uiIconImageButton(editor.icons.backspace,
im.SameLine()
-- im.TextColored(im.ImVec4(0.5, 0.5, 0.7, 1), tostring(s))
-- im.SameLine()
local selected = (o == W.out.curselect)
-- im.Dummy(im.ImVec2(0, -10))
im.SameLine()
im.SetCursorPosY(im.GetCursorPos().y-2)
-- im.Dummy(im.ImVec2(0, 0))
-- im.SameLine()
if W.out.inedge then
im.SameLine()
color = colorOff
-- W.ifTopRect()
im.SameLine()
buttonC('roof_ridge', 'roof_ridge', color, im.ImVec2(30, 30))
im.SameLine()
color = (desc and cij and desc.afloor[cij[1]].top.shape == 'flat' and not desc.afloor[cij[1]].top.cchild and colorOn)
if U._PRD == 0 then
im.SameLine()
color = (scope == 'top' and desc.afloor[#desc.afloor].awall[1].roofborder) and colorOn or colorOff
if U._PRD == 0 then
im.SameLine()
buttonC('roof_chimney', 'roof_chimney', colorOff, im.ImVec2(30, 30))
im.tooltip(s)
im.SameLine()
end
-- im.SameLine()
im.BeginGroup()
end
im.SameLine()
im.Indent(-30)
im.SameLine()
im.BeginGroup()
end
im.SameLine()
im.Indent(-30)
color = W.ifRoof(s) and colorOn or colorOff -- im.ImVec4(0.5, 0.7, 0.5, 0.5)
im.SameLine()
buttonC('roof_'..s, 'roof_'..s, color, im.ImVec2(30, 30))
im.SameLine()
local ifroof = W.ifRoof('pyramid')
im.SameLine()
ifroof = W.ifRoof('shed')
im.SameLine()
ifroof = W.ifRoof('gable')
local color, bgcolor = nil, nil -- scope == 'wall' and im.ImVec4(0.5, 0.7, 0.5, 1) or im.ImVec4(0.5, 0.7, 0.5, 0.5)
-- im.SameLine()
-- im.Dummy(im.ImVec2(0, 0))
-- im.Dummy(im.ImVec2(0, 60))
-- im.SameLine()
-- im.Separator()
if U._HERE then
im.SameLine()
im.NextColumn()
-- windows
im.SameLine()
color = (not scope) and colorOff or colorOn
-- door
im.SameLine()
color = (not scope or scope == 'building') and colorOff or colorOn
-- storefront
im.SameLine()
color = (cij and cij[1] == 1) and colorOn or colorOff
im.SameLine()
color = (not scope) and colorOff or colorOn
im.SameLine()
color = (not scope or scope == 'wall') and colorOff or colorOn
if true or U._PRD == 0 then
im.SameLine()
color = scope and colorOn or colorOff --(not scope or scope == 'wall') and colorOff or colorOn
im.tooltip('String course toggle')
im.SameLine()
color = (scope == 'floor' and cij[1] == 1) and colorOn or colorOff --(not scope or scope == 'wall') and colorOff or colorOn
im.SameLine()
color = ({wall=1,floor=1})[W.forScope()] ~= nil and colorOn or colorOff
-- pilaster
im.SameLine()
color = W.ifValid('pilaster') and colorOn or colorOff
-- stairs
im.SameLine()
color = W.ifForest({'door','stairs'}) and colorOn or colorOff
if U._PRD == 0 then
im.SameLine()
color = scope == 'side' and colorOn or colorOff
-- balcony
im.SameLine()
color = not scope and colorOff or colorOn -- (not scope or scope == 'wall') and colorOff or colorOn
-- corners
im.SameLine()
color = (not scope or scope == 'wall') and colorOff or colorOn
-- pillars
im.SameLine()
color = ({wall=1,floor=1})[W.forScope()] ~= nil and im.ImVec4(0.5, 0.7, 0.5, 1) or colorOff
if false then
im.SameLine()
-- im.NextColumn()
-- im.SameLine()
-- im.Dummy(im.ImVec2(142, 0))
-- im.Dummy(im.ImVec2(142, 0))
-- im.SameLine()
if false and U._PRD == 0 then
button('JAT', 'junction', 'twoRoadsCrossAdd', color)
im.SameLine()
im.tooltip('Roads')
im.SameLine()
end
im.tooltip(title)
im.SameLine()
im.NextColumn()
-- im.SameLine()
-- button('Spline', 'wall_spline', 'bSpline', color)
-- CONFORM
-- im.SameLine()
end
-- balconies
im.SameLine()
color = im.ImVec4(0.5, 0.7, 0.5, 1)
-- cornice
im.SameLine()
bgcolor = W.ifForest({'roofborder'}) and bgActive or nil
im.Dummy(im.ImVec2(2, 0))
im.SameLine()
local v_spacing = im.FloatPtr(R.ui.spacing)
-- lo('?? mat:'..tostring(croad:getField("material", "")))
-- im.SameLine()
im.Dummy(im.ImVec2(2, 0))
im.SameLine()
im.BeginGroup()
end
-- im.SameLine()
im.NextColumn()
-- local oldVal = roadMgr.middleYellow[0]
im.SameLine()
im.Dummy(im.ImVec2(12, 0))
im.Dummy(im.ImVec2(12, 0))
im.SameLine()
if im.Checkbox("Yellow", middleYellow) then
end
im.SameLine()
im.Dummy(im.ImVec2(12, 0))
im.Dummy(im.ImVec2(12, 0))
im.SameLine()
if not D.ui.middleYellow and im.Checkbox("Dashed", middleDashed) then
if im.TreeNodeEx1('Shape type', im.TreeNodeFlags_DefaultClosed) then
im.SameLine()
im.Text('CONT')
buttonC(s, 'building_shape', c) -- 'tetromino') -- 't_shape')
im.SameLine()
end
-- im.SameLine()
-- im.Dummy(im.ImVec2(12, 10))
-- im.Dummy(im.ImVec2(12, 10))
-- im.SameLine()
if tableSize(row) > 0 then
-- im.SameLine()
if i == 1 then
if _ == 1 then
-- im.SameLine()
-- im.Dummy(im.ImVec2(0, 30))
-- im.Dummy(im.ImVec2(0, 30))
-- im.SameLine()
end
if not nextline then
im.SameLine()
else
-- im.Dummy(im.ImVec2(0, 4))
-- im.SameLine()
local sz = im.CalcTextSize(k)
im.Text(k)
im.SameLine()
im.Text(v)
if not nextline then
im.SameLine()
else
im.SameLine()
im.Dummy(im.ImVec2(4, 0))
im.Dummy(im.ImVec2(4, 0))
im.SameLine()
else
-- im.SameLine()
-- im.SameLine()
-- im.Dummy(im.ImVec2(0, 0))
-- im.Dummy(im.ImVec2(0, 0))
-- im.SameLine()
end
end
-- im.SameLine()
-- im.Dummy(im.ImVec2(0, 0))
-- im.Dummy(im.ImVec2(0, 10))
-- im.SameLine()
im.Dummy(im.ImVec2(2, 0))
im.SameLine()
im.TextColored(colorNav, 'Hint:')
im.TextColored(colorNav, 'Hint:')
im.SameLine()
im.Dummy(im.ImVec2(3, 0))
im.Dummy(im.ImVec2(3, 0))
im.SameLine()
-- im.TextColored(colorHelp, 'ALT-TAP: new TAP: select')
-- im.TextColored(colorHelp, 'ALT-TAP: new TAP: select SHIFT-DRAG: turn CTRL-DRAG: around')
-- im.SameLine()
-- im.TextColored(colorHelp, 'Alt-Click: new')
im.TextColored(colorHelp, ' ')
im.SameLine()
if D.forRoad() then
im.Dummy(im.ImVec2(3, 0))
im.SameLine()
im.TextColored(colorHelp, 'Z: spot select, Z+WHEEL: spot resize')
if tableSize(row) > 0 then
-- im.SameLine()
if i == 1 then
if _ == 1 then
-- im.SameLine()
-- im.Dummy(im.ImVec2(0, 30))
-- im.Dummy(im.ImVec2(0, 30))
-- im.SameLine()
end
if not nextline then
im.SameLine()
else
-- im.Dummy(im.ImVec2(0, 4))
-- im.SameLine()
local sz = im.CalcTextSize(k)
im.Text(k)
im.SameLine()
im.Text(v)
if not nextline then
im.SameLine()
else
im.SameLine()
im.Dummy(im.ImVec2(4, 0))
im.Dummy(im.ImVec2(4, 0))
im.SameLine()
else
-- im.SameLine()
-- im.SameLine()
-- im.Dummy(im.ImVec2(0, 0))
-- im.Dummy(im.ImVec2(0, 0))
-- im.SameLine()
end
end
-- im.SameLine()
-- im.Dummy(im.ImVec2(0, 0))
-- im.Dummy(im.ImVec2(0, 10))
-- im.SameLine()
end
im.SameLine()
im.Indent(-30)
end
im.SameLine()
im.Indent(-10)
-- im.Dummy(im.ImVec2(10, 0))
-- im.SameLine()
im.EndGroup()
@/lua/ge/extensions/editor/dynamicDecals/debugSection.lua
end
im.SameLine()
if im.Button(string.format("%s##%s", "set false##api.setProjectDynamicDecalsState(false)", guiId), im.ImVec2(buttonWidth, 0)) then
@/lua/ge/extensions/editor/vehicleDetailViewer.lua
im.TextUnformatted("Save Layout")
im.SameLine()
im.SetCursorPosX(200)
im.InputText("##saveLayoutfilename", saveFilenameFFI)
im.SameLine()
end
im.SameLine()
im.SetCursorPosX(200)
end
im.SameLine()
if im.SmallButton('overwrite##overwriteLayouy_'..tostring(lidx)) then
end
im.SameLine()
if im.SmallButton('delete##deleteLayouy_'..tostring(lidx)) then
im.TextUnformatted('Image resolution multiplier: ')
im.SameLine()
im.SetNextItemWidth(100)
@/lua/ge/extensions/ui/apps/minimap/minimap.lua
end
im.SameLine()
if im.Button("Reset Stats") then
end
im.SameLine()
if im.Button("Load Topo Map") then
im.Text(key)
im.SameLine()
if im.BeginCombo(key, debugSettingsData[key][debugSettings[key]].name) then
@/lua/ge/extensions/editor/rallyEditor/pacenotes.lua
im.SameLine()
if im.Button("Select Closest to Vehicle") then
im.SameLine()
if im.Button("Delete All") then
end
im.SameLine()
if im.Button("Cancel", im.ImVec2(120,0)) then
im.SameLine()
end
im.SameLine()
if im.Button("Mark Rest TODO") then
end
im.SameLine()
if im.Button("Mark All Done") then
-- end
-- im.SameLine()
-- if im.Button("X") then
-- end
-- im.SameLine()
-- if im.Button("Next") then
im.EndChild() -- pacenotes child window
im.SameLine()
@/lua/ge/extensions/gameplay/missions/missionTypes/editorHelper.lua
if e.displayOptions.associatedStars then
im.SameLine()
editor.uiIconImage(editor.icons.star, imVec16x16 ,imVec4TransparentWhite)
if hasTranslate then
im.SameLine()
if not e._translated then
if hasDropdown then
im.SameLine()
local ret = nil
e.foundFile = nil
end im.SameLine()
if im.Button(" ... ##file"..e.label.."...") then
end, e.allowedExtensions, false, mission.missionFolder)
end im.SameLine()
local file = ffi.string(e.ac)
end
im.SameLine()
im.tooltip(e.foundFile)
im.SameLine()
im.Text(e.foundFile)
im.tooltip("This file is optional: "..files)
im.SameLine()
im.Text("Optional: ".. files)
im.tooltip("Requiring one of these files: " .. files)
im.SameLine()
im.Text("Required: ".. files)
@/lua/ge/extensions/editor/flowgraph/search.lua
im.Text("Find: ")
im.SameLine()
if self.focusSearch and self.focusSearch > 0 then
end
im.SameLine()
if im.Button("X") then
end
im.SameLine()
editor.uiIconImage(editor.icons.help, im.ImVec2(20,20))
im.Text(label:sub(pos1, pos2 - 1))
im.SameLine()
end
im.TextColored(matchColor, label:sub(pos2, pos3))
im.SameLine()
pos1 = pos3 + 1
im.EndDisabled()
im.SameLine()
local x = im.GetCursorPosX()
if editor.getPreference("flowgraph.debug.displayIds") then
im.SameLine()
im.Text("["..result.id.."]")
if debugEnabled then
im.SameLine()
im.Text(string.format(" | %d%%%% Match" ,100*result.score))
if result.frecency and result.frecency > 0 then
im.SameLine()
im.Text(string.format(" | %d%%%% Frecency", result.frecency *100))
im.Text("In: "..result.location)
im.SameLine()
end
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/veJBeamModifierLeakVis.lua
end
im.SameLine()
if im.Checkbox("Ignore Default Values (EXPERIMENTAL! Not all default values accounted for)", useDefaultValuesForLeaking) then end
if i ~= sectionNamesLen then
im.SameLine()
end
@/lua/ge/extensions/ui/gameplayAppContainers.lua
-- Show current state
im.SameLine()
im.Text(isVisible and "✓" or "✗")
end
im.SameLine()
if im.Button("Show All##" .. containerId) then
im.SameLine()
if im.Button("Test Drag Message (5s)##" .. containerId) then
im.SameLine()
if im.Button("Long Message (8s)##" .. containerId) then
im.SameLine()
if im.Button("Clear Drag Messages##" .. containerId) then
@/lua/ge/extensions/editor/crawlEditor/startingPositions.lua
im.Text("File Name")
im.SameLine()
if im.Button("Rename") then
@/lua/ge/extensions/editor/forestView.lua
editor.uiIconImage(editor.icons.forest_brushelement, imgui.ImVec2(fontSize, fontSize))
imgui.SameLine()
local cPos = imgui.GetCursorPos()
@/lua/ge/extensions/editor/multiSpawnManager.lua
im.tooltip("User defined vehicle selections.")
im.SameLine()
im.Dummy(dummy)
im.Dummy(dummy)
im.SameLine()
im.Dummy(dummy)
im.SameLine()
im.EndChild()
im.SameLine()
im.TextUnformatted("Group Type")
im.TextUnformatted(v)
im.SameLine()
if editor.uiIconImageButton(editor.icons.close, im.ImVec2(16, 16)) then
im.tooltip("Remove Tag")
im.SameLine()
im.Dummy(dummy)
if i % 4 ~= 0 then
im.SameLine()
end
im.PopItemWidth()
im.SameLine()
if im.Button("Add Tag##editGroup") then
im.SameLine()
im.TextUnformatted("Group Tags")
end
im.SameLine()
end
im.SameLine()
if i < groupSize and (i * 36 * im.uiscale[0]) % width >= 36 * im.uiscale[0] then -- ensures that buttons wrap downwards
im.SameLine()
end
end
im.SameLine()
if im.Button("Remove##vehicleSlot") then
end
im.SameLine()
if im.Button("No##overwriteGroup") then
end
im.SameLine()
if spawnState > 0 then
im.SameLine()
im.TextColored(colorWarning, "Please wait...") -- while loading vehicles
if timedTexts.save then
im.SameLine()
im.TextColored(colorWarning, timedTexts.save[1])
im.TextUnformatted("Current Vehicle Group: ")
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth())
@/lua/ge/extensions/editor/dynamicDecals/colorPresets.lua
im.PushItemWidth(im.GetContentRegionAvailWidth() - (4 * uiIconSize + 5 * im.GetStyle().ItemSpacing.x * im.uiscale[0]) - uiIconSize/2) -- nice hack so buttons are visible when uiscale is above 1.2
im.SameLine()
if editor.uiInputText(string.format("##colorPresetColorNameWidget_%s_%d", guiId, k), editor.getTempCharPtr(color.name or ""), nil, nil, nil, nil, editor.getTempBool_BoolBool(false)) then
im.SameLine()
if editor.uiIconImageButton(editor.icons.delete, im.ImVec2(uiIconSize, uiIconSize), nil, nil, nil, string.format("remove##ColorPreset_%s_%d", guiId, k)) then
im.SameLine()
if editor.uiIconImageButton(editor.icons.border_color, im.ImVec2(uiIconSize, uiIconSize), nil, nil, nil, string.format("setAsDecalColorIconButton##ColorPreset_%s_%d", guiId, k)) then
im.SameLine()
if editor.uiIconImageButton(editor.icons.format_color_fill, im.ImVec2(uiIconSize, uiIconSize), nil, nil, nil, string.format("setAsFillColorIconButton##ColorPreset_%s_%d", guiId, k)) then
@/lua/ge/extensions/editor/levelValidator.lua
if checkFinished then
im.SameLine()
im.TextColored(im.ImVec4(0, 1, 0, 1.0), foundText)
im.SameLine()
if im.Button("Delete all duplicates (WARNING: This cannot be undone with ctrl+z)") then
filterButton('E', "Errors")
im.SameLine()
filterButton('W', "Warnings")
filterButton('W', "Warnings")
im.SameLine()
filterButton('I', "Info")
filterButton('I', "Info")
im.SameLine()
filterButton('D', "Debug")
if getIgnoredCount() > 0 then
im.SameLine()
im.Text("|")
im.Text("|")
im.SameLine()
local buttonActive = false
im.SameLine()
if (logItem.forestItem or object) and logItem.onCheck and not logItem.prefabChildId then
if logItem.type == "floating" and logItem.objectId then
im.SameLine()
if isIgnored then
if logItem.prefabChildId and object then
im.SameLine()
if isIgnored then
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/vePartList.lua
end
im.SameLine()
im.PushItemWidth(15)
end
im.SameLine()
if im.Checkbox('Active', checkboxActivePartsOnly) then
end
im.SameLine()
if vEditor.selectedPart then
im.SameLine()
if im.Button('unselect') then
@/lua/ge/extensions/editor/flowgraph/examples.lua
im.Text("Find: ")
im.SameLine()
if self.focusSearch and self.focusSearch > 0 then
end
im.SameLine()
if im.Button("X") then
end
im.SameLine()
editor.uiIconImage(editor.icons.help, im.ImVec2(20,20))
im.Text(label:sub(pos1, pos2 - 1))
im.SameLine()
end
im.TextColored(matchColor, label:sub(pos2, pos3))
im.SameLine()
pos1 = pos3 + 1
@/lua/ge/extensions/editor/missionEditor/previewChecker.lua
im.tooltip(self.previewFile)
im.SameLine()
if self.previewImage.size.x == 1920 and self.previewImage.size.y == 1080 then
im.SameLine()
end
im.SameLine()
im.Text("Required: preview.png, preview.jpg or preview.jpeg")
im.tooltip(self.thumbFile)
im.SameLine()
if self.thumbImage.size.y == 200 and self.thumbImage.size.y == 200 then
end
im.SameLine()
im.Button("Thumbnail")
end
im.SameLine()
im.Text("Required: thumbnail.png, thumbnail.jpg or thumbnail.jpeg, otherwise using Preview.")
@/lua/ge/extensions/editor/dynamicDecals/layerTypes/decal.lua
im.TextUnformatted("Flip")
im.SameLine()
widgets.defaultButton(string.format("%s_flipDecal", widgetId),
im.PopStyleColor()
im.SameLine()
im.PushStyleColor2(im.Col_Button, layer.decalUv.y == -1 and editor.color.beamng.Value or btnCol)
end
im.SameLine()
local paletteColor = {1, 1, 1, 0}
end
im.SameLine()
if im.SmallButton("disable all") then
end
im.SameLine()
editor.uiInputSearchTextFilter("##InspectorMeshesFilter", meshesFilter, im.GetContentRegionAvailWidth())
end
im.SameLine()
if im.Selectable1(string.format("%s##%s_shapeMesh_%d_selectable", name, widgetId, i), enabled) then
im.PopItemWidth()
im.SameLine()
if editor.uiIconImageButton(editor.icons.folder, im.ImVec2(tool.getIconSize(), tool.getIconSize()), nil, nil, nil, name .. "_Button") then
im.tooltip("Change Decal " .. name .. " Texture Path")
im.SameLine()
if editor.uiIconImageButton(editor.icons.delete, im.ImVec2(tool.getIconSize(), tool.getIconSize()), nil, nil, nil, name .. "_RemoveButton") then
end
im.SameLine()
im.SetCursorPosX(im.GetCursorPosX() + im.GetContentRegionAvailWidth() - (im.CalcTextSize("Do not show again").x + 2*im.GetStyle().ItemSpacing.x + tool.getIconSize()))
im.TextUnformatted("Do not show again")
im.SameLine()
if im.Checkbox("##dynDecals_decal_doNotShowSdfIntroAgainCheckbox", editor.getTempBool_BoolBool(editor.getPreference("dynamicDecalsTool.decalProperties.doNotShowSdfIntroAgain"))) then
end
im.SameLine()
if im.Button("Save") then
end
im.SameLine()
if im.Button(string.format("Inv##InverseDecalRotation_%s", guiId)) then
im.TextUnformatted("Flip")
im.SameLine()
local buttonColor = im.GetStyleColorVec4(im.Col_Button)
im.PopStyleColor()
im.SameLine()
end
im.SameLine()
im.Dummy(im.ImVec2(im.GetStyle().ItemSpacing.x, 0))
im.Dummy(im.ImVec2(im.GetStyle().ItemSpacing.x, 0))
im.SameLine()
if not api.getMirrored() then im.BeginDisabled() end
end
im.SameLine()
-- DEBUG MIRROR
im.TextUnformatted("Character")
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth() - (im.CalcTextSize("Select").x + 3 * im.GetStyle().ItemSpacing.x))
im.PopItemWidth()
im.SameLine()
if #api.getDecalLayerFontPath() <= 1 or true then -- always disabled for time being
im.TextUnformatted("Wrap Texture")
im.SameLine()
if editor.uiIconImageButton(editor.icons.refresh, tool.getIconSizeVec2(), nil, nil, nil, string.format("%s_resetButton", "wrapColorTextureX")) then
im.tooltip(string.format("Reset to default: %s", dumps({horizontally = true, vertically = true})))
im.SameLine()
im.TextUnformatted("Horizontally")
im.TextUnformatted("Horizontally")
im.SameLine()
local enabled = api.isWrapColorTextureXEnabled()
im.SameLine()
im.TextUnformatted("Vertically")
im.TextUnformatted("Vertically")
im.SameLine()
enabled = api.isWrapColorTextureYEnabled()
end
im.SameLine()
local vehicleObj = getPlayerVehicle(0)
@/lua/ge/extensions/editor/flowgraph/properties.lua
end
im.SameLine()
if editor.uiIconImageButton(editor.icons.format_line_spacing, im.ImVec2(22,22)) then
im.Dummy(im.ImVec2(0,24))
im.SameLine()
local changed = false
end
im.SameLine()
end
reason = self:customPropertyColor(item, "customIconColor", self._editCustomProperties.iconColor) or reason
im.SameLine()
if item.customIconColor then
end
im.SameLine()
end
if item.customIcon then
im.SameLine()
if editor.uiIconImageButton(editor.icons.undo, im.ImVec2(22,22)) then
end
im.SameLine()
im.SameLine()
im.Dummy(im.ImVec2(20,1))
im.Dummy(im.ImVec2(20,1))
im.SameLine()
reason = self:customPropertyColor(item, "customColor", self._editCustomProperties.color) or reason
if item.customColor then
im.SameLine()
if editor.uiIconImageButton(editor.icons.undo, im.ImVec2(22,22)) then
end
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth()-64)
if item.customName then
im.SameLine()
if editor.uiIconImageButton(editor.icons.undo, im.ImVec2(22,22)) then
end
im.SameLine()
if editor.uiIconImageButton(editor.icons.check or editor.icons.add, im.ImVec2(22, 22)) then
editor.uiIconImage(editor.icons[icon], im.ImVec2(22, 22), item.customIconColor or item.iconColor)
im.SameLine()
end
if editor.getPreference("flowgraph.debug.displayIds") then
im.SameLine()
im.TextUnformatted('[' .. tostring(item.id) .. ']: ')
if item.category and item.tmpSecondPassFlag and ui_flowgraph_editor.isDynamicNode(item.category) then
im.SameLine()
if item.dynamicMode and item.dynamicMode == 'repeat' then
im.TextUnformatted('( Repeat )')
im.SameLine(im.GetWindowWidth() - 110)
if im.Button("Set Once", im.ImVec2(90, 22)) then
im.TextUnformatted('( Once )')
im.SameLine(im.GetWindowWidth() - 110)
if im.Button("Set Repeat", im.ImVec2(90, 22)) then
if item.type and item.type ~= 'node' then
im.SameLine()
im.TextUnformatted('(' .. tostring(item.type or '') .. ')')
end
im.SameLine()
self.mgr:DrawTypeIcon(typename, true, 1)
im.SameLine()
if im.Selectable1(typename, typename==pin.type) then
if hasHardTemplates then
im.SameLine()
self:drawHardTemplates(pin, item)
self.mgr:DrawTypeIcon(typename, true, 1)
im.SameLine()
if im.Selectable1(typename) then
end
im.SameLine()
end
end
im.SameLine()
if im.SmallButton("Down##"..pin.id) then
if item._pinTemplates then
im.SameLine()
if im.BeginCombo("##pinTemplateAdder", "From Template...") then
self.mgr:DrawTypeIcon(p.getTypeWithImpulseAndChain and p:getTypeWithImpulseAndChain() or p.type, true, 1)
im.SameLine()
if im.Selectable1(p.name, false) then
end
im.SameLine()
self.mgr:DrawTypeIcon(pin:getTypeWithImpulseAndChain(), pin:getFirstConnectedLink() ~= nil, 1)
self.mgr:DrawTypeIcon(typename, true, 1)
im.SameLine()
if im.Selectable1(typename, typename==pin.type) then
im.tooltip("Delete this pin.")
im.SameLine()
end
end
im.SameLine()
if im.SmallButton("Down##"..pin.id) then
if item._pinTemplates then
im.SameLine()
if im.BeginCombo("##pinTemplateAdder", "From Template...") then
self.mgr:DrawTypeIcon(p.type, true, 1)
im.SameLine()
if im.Selectable1(p.name, false) then
function C:drawHardTemplates(pin, item)
--im.SameLine()
im.PushItemWidth(50)
end
im.SameLine()
-- name
im.SameLine()
im.TextUnformatted(pin.name)
if hasHardTemplates then
im.SameLine()
self:drawHardTemplates(pin, item)
self.mgr:DrawTypeIcon(typename, true, 1)
im.SameLine()
if im.Selectable1(typename) then
end
im.SameLine()
self.mgr:DrawTypeIcon(pin:getTypeWithImpulseAndChain(), pin:getFirstConnectedLink() ~= nil, 1)
self.mgr:DrawTypeIcon(pin:getTypeWithImpulseAndChain(), pin:getFirstConnectedLink() ~= nil, 1)
im.SameLine()
im.TextUnformatted(pin.name)
end
im.SameLine()
im.PopItemWidth()
if graph.isStateGraph then
im.SameLine()
im.Text(" (State Graph)")
@/lua/ge/extensions/editor/dynamicDecals/widgets.lua
im.tooltip("Lock ratio")
im.SameLine()
end
im.tooltip(string.format("Reset to default: %s", dumps(baseProp.default)))
im.SameLine()
end
end
im.SameLine()
end
end
im.SameLine()
end
end
im.SameLine()
end
end
im.SameLine()
end
end
im.SameLine()
end
im.tooltip(string.format("Reset to default: %s", dumps(baseProp.default)))
im.SameLine()
end
im.tooltip(string.format("Reset to default: %s", dumps(baseProp.default)))
im.SameLine()
end
im.tooltip(string.format("Reset to default: %s", dumps(baseProp.default)))
im.SameLine()
end
im.tooltip(string.format("Reset to default: %s", dumps(baseProp.default)))
im.SameLine()
end
im.SameLine()
im.PushItemWidth(width)
im.tooltip(string.format("Reset to default: %s", dumps(baseProp.default)))
im.SameLine()
end
im.SameLine()
im.PushItemWidth(width)
im.tooltip(string.format("Reset to default: %s", dumps(baseProp.default)))
im.SameLine()
end
im.SameLine()
im.PushItemWidth(width)
im.tooltip(string.format("Reset to default: %s", dumps(baseProp.default)))
im.SameLine()
end
im.SameLine()
im.PushItemWidth(width)
im.SameLine()
im.PushItemWidth(width)
im.tooltip(string.format("Reset to default: %s", dumps(baseProp.default)))
im.SameLine()
end
im.tooltip(string.format("Reset to default: %s", dumps(baseProp.default)))
im.SameLine()
end
im.SameLine()
im.PushItemWidth(width)
im.SameLine()
im.PushItemWidth(width)
im.SameLine()
im.PushItemWidth(width)
im.tooltip(string.format("Reset to default: %s", dumps(baseProp.default)))
im.SameLine()
end
im.tooltip(string.format("Reset to default: %s", dumps(baseProp.default)))
im.SameLine()
end
end
im.SameLine()
if i >= numOfPresetsInOneRow then
im.tooltip(string.format("Reset to default: %s", dumps(baseProp.default)))
im.SameLine()
end
im.tooltip(string.format("Reset to default: %s", dumps(baseProp.default)))
im.SameLine()
end
im.tooltip(string.format("Reset to default: %s", dumps(baseProp.default)))
im.SameLine()
end
im.SameLine()
if editor.uiIconImageButton(editor.icons.folder, tool.getIconSizeVec2(), nil, nil, nil, string.format("%s_openFileDialogButton", widgetId)) then
im.tooltip(string.format("Reset to default: %s", dumps(baseProp.default)))
im.SameLine()
end
im.tooltip(string.format("Reset to default: %s", dumps(baseProp.default)))
im.SameLine()
end
im.SameLine()
if editor.uiIconImageButton(editor.icons.folder, tool.getIconSizeVec2(), nil, nil, nil, string.format("%s_openFileDialogButton", widgetId)) then
im.tooltip(string.format("Reset to default: %s", dumps(baseProp.default)))
im.SameLine()
end
im.SameLine()
im.tooltip(string.format("Reset to default: %s", dumps(baseProp.default)))
im.SameLine()
end
end
im.SameLine()
local windowPos = im.GetWindowPos()
im.InvisibleButton("GradientButton", im.ImVec2(size, size))
im.SameLine()
end
im.SameLine()
im.SameLine()
end
@/lua/ge/extensions/flowgraph/nodes/input/blacklistAction.lua
end
im.SameLine()
if im.Button("X") then
im.Text(label:sub(pos1, pos2 - 1))
im.SameLine()
end
im.TextColored(matchColor, label:sub(pos2, pos3))
im.SameLine()
pos1 = pos3 + 1
im.tooltip("(" .. #preset.list .. " Actions) " .. preset.desc)
im.SameLine()
if im.Button("Set##setact" .. self.id) then
im.tooltip("Sets the list to exactly this preset.")
im.SameLine()
if im.Button("Add##addact" .. self.id) then
im.tooltip("Adds all actions from this preset to the nodes list.")
im.SameLine()
if im.Button("Remove##rmact" .. self.id) then
im.Checkbox("##cba" .. result.id, im.BoolPtr(listKeys[result.id] or false))
im.SameLine()
im.BeginDisabled()
im.EndDisabled()
im.SameLine()
self:highlightText(result.info.title, self.search.matchString)
self:highlightText(result.info.title, self.search.matchString)
im.SameLine()
im.BeginDisabled()
local clk = im.Checkbox("##cba" .. name .. "-" .. cat .. "-" .. self.id, im.BoolPtr(listKeys[name] or false))
im.SameLine()
im.Text(allActions[name].title)
im.BeginDisabled()
im.SameLine()
im.Text(name)
end
im.SameLine()
im.BeginDisabled()
im.EndDisabled()
im.SameLine()
im.Text(allActions[e].title)
im.Text(allActions[e].title)
im.SameLine()
im.BeginDisabled()
@/lua/ge/extensions/editor/resourceChecker.lua
im.Dummy(im.ImVec2(im.GetContentRegionAvailWidth()-220* im.uiscale[0], 0))
im.SameLine()
if im.Button("Save changes and close window", im.ImVec2(220* im.uiscale[0],0)) then
im.ProgressBar(getProgress()/100, im.ImVec2(300* im.uiscale[0], 0))
im.SameLine()
if im.Button("Cancel") then
end
im.SameLine()
if im.Button("Cancel") then
im.Dummy(im.ImVec2(5* im.uiscale[0], 0))
im.SameLine()
drawRectBg("LMB", im.ImVec4(0, 0, 0, 0.3), 0, 1)
im.Text("LMB")
im.SameLine()
im.Text(" Select row")
im.Text(" Select row")
im.SameLine()
im.Dummy(im.ImVec2(50* im.uiscale[0], 0))
im.Dummy(im.ImVec2(50* im.uiscale[0], 0))
im.SameLine()
drawRectBg("RMB", im.ImVec4(0, 0, 0, 0.3), 0, 1)
im.Text("RMB")
im.SameLine()
im.Text(" Context Menu")
warning("Remove all unused files", level, itms, unusType)
im.SameLine()
local buttonWidth = 160* im.uiscale[0]
end
im.SameLine()
local removeButtonCol = im.ImVec4(1, 0, 0, 0.7)
if not tableIsEmpty(isSelected) then
im.SameLine()
if im.Button("Invert selection" , im.ImVec2(buttonWidth,0)) then
end
im.SameLine()
if im.Button("Remove all unused files", im.ImVec2(buttonWidth,0)) then
im.Dummy(im.ImVec2(im.GetContentRegionAvailWidth()-200* im.uiscale[0], 0))
im.SameLine()
if im.Button("Save output to user folder", im.ImVec2(200* im.uiscale[0],0)) then
im.Text("Checking: "..matdata)
im.SameLine()
im.Dummy(im.ImVec2(im.GetContentRegionAvailWidth()-180* im.uiscale[0], 0))
im.Dummy(im.ImVec2(im.GetContentRegionAvailWidth()-180* im.uiscale[0], 0))
im.SameLine()
local skipCommonEnabled = im.BoolPtr(skipCommon)
end
im.SameLine()
if im.Button("Verify duplicates", im.ImVec2(120* im.uiscale[0],0)) then
end
im.SameLine()
if im.Button("Remove pid", im.ImVec2(121* im.uiscale[0],0)) then
end
im.SameLine()
if im.Button("Convert to PNG", im.ImVec2(121* im.uiscale[0],0)) then
end
im.SameLine()
if im.Button("Check texture files", im.ImVec2(131* im.uiscale[0],0)) then
end
im.SameLine()
if im.Button("Check missing mats", im.ImVec2(131* im.uiscale[0],0)) then
if useVeh == true then
im.SameLine()
if im.Button("Remove dummy mats", im.ImVec2(140* im.uiscale[0],0)) then
end
im.SameLine()
if im.Button("Available ForestItems", im.ImVec2(buttonSize,0)) then
end
im.SameLine()
if im.Button("Loaded Terrains", im.ImVec2(buttonSize,0)) then
end
im.SameLine()
if im.Button("Used Materials", im.ImVec2(buttonSize,0)) then
end
im.SameLine()
if im.Button("Unused Meshes", im.ImVec2(buttonSize,0)) then
end
im.SameLine()
if im.Button("Unused Textures", im.ImVec2(buttonSize,0)) then
end
im.SameLine()
if im.Button("Collision Data", im.ImVec2(buttonSize,0)) then
@/lua/ge/extensions/editor/flowgraph/events.lua
end
im.SameLine()
im.PushItemWidth(100)
im.PopItemWidth()
im.SameLine()
local autoScroll = editor.getPreference("flowgraph.general.eventAutoScroll")
@/lua/ge/extensions/editor/missionEditor/startTrigger.lua
end
im.SameLine()
im.PushItemWidth(20)
end
im.SameLine()
im.PushItemWidth(20)
@/lua/ge/extensions/editor/audioRibbonEditor.lua
im.tooltip('Add a new ribbon (allows user to draw left/right edge node pairs with mouse).')
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
im.tooltip('Conform the ribbon to the surface below.')
im.SameLine()
im.NextColumn()
im.tooltip(selRibbon.isAmbient and 'Use 4 emitters on a (+) grid.' or 'Use single emitter (for ambient sources).')
im.SameLine()
im.NextColumn()
im.tooltip(selRibbon.isUpRibbon and 'Make ribbon point upwards.' or 'Make ribbon point downwards.')
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
im.TextColored(cols.greenB, 'Type:')
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
local btnCol, btnIcon = cols.blueB, icons.volume_up
end
im.SameLine()
im.NextColumn()
im.Text('Rear:')
im.SameLine()
local btnCol, btnIcon = cols.blueB, icons.volume_up
end
im.SameLine()
im.NextColumn()
im.Text('Left:')
im.SameLine()
local btnCol, btnIcon = cols.blueB, icons.volume_up
end
im.SameLine()
im.NextColumn()
im.Text('Right:')
im.SameLine()
local btnCol, btnIcon = cols.blueB, icons.volume_up
end
im.SameLine()
im.NextColumn()
im.Text('Rear:')
im.SameLine()
im.NextColumn()
im.Text('Left:')
im.SameLine()
im.NextColumn()
im.Text('Right:')
im.SameLine()
im.NextColumn()
@/lua/ge/extensions/editor/roadRiverGui.lua
if im.IsItemHovered() then im.BeginTooltip() im.Text("Add " .. class .. "/Nodes") im.EndTooltip() end
im.SameLine()
M.createMode = createButtonPressed or editor.keyModifiers.alt
@/lua/common/extensions/ui/flowgraph/editor.lua
editor.uiIconImageButton(editor.icons.stop, im.ImVec2(20, 20), clr, nil, clr)
im.SameLine()
end
editor.uiIconImageButton(editor.icons.stop, im.ImVec2(20, 20), clr, nil, clr)
im.SameLine()
end
end
im.SameLine()
local textSize = im.GetCursorPosX() - textSize
end
im.SameLine()
im.SetCursorPosX(totalWidth - 22 * im.uiscale[0])
im.Text("Type")
im.SameLine()
if im.BeginCombo("##type" .. variable.index .. name, variable.type) then
source.mgr:DrawTypeIcon(type.name, true, 1)
im.SameLine()
if im.Selectable1(type.name, type.name == variable.type) then
ui_flowgraph_editor.tooltip("Type Locked (viewmode to debug to change)")
im.SameLine()
im.Text(tostring(variable.type))
ui_flowgraph_editor.tooltip("Dictates what happens when multiple values will be set in the same frame.")
im.SameLine()
-- merge strategies
im.Text("Monitor")
im.SameLine()
local monitor = im.BoolPtr(variable.monitored or false)
im.Text("KeepAfterStop")
im.SameLine()
local stop = im.BoolPtr(variable.keepAfterStop or false)
end
im.SameLine()
if editor.uiIconImageButton(editor.icons.search, im.ImVec2(22, 22)) then
im.HighlightText(result.name, vehSearch.matchString)
im.SameLine()
im.BeginDisabled()
im.EndDisabled()
im.SameLine()
im.EndChild()
@/lua/ge/extensions/editor/terrainMaterialsEditor.lua
im.TextUnformatted(label)
im.SameLine()
end
inputText("Path", propertyName, -(2 * inputWidgetHeight * im.uiscale[0] + 2 * im.GetStyle().ItemSpacing.x))
im.SameLine()
if editor.uiIconImageButton(
im.tooltip("Browse for new texture")
im.SameLine()
deleteMapButton(widgetName, propertyName)
im.TextUnformatted(widgetName)
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth())
im.TextUnformatted(widgetName)
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth())
im.TextUnformatted(widgetName)
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth())
im.TextUnformatted(widgetName)
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth())
local posX = im.GetCursorPosX()
im.SameLine()
im.SetCursorPosX(posX + 90)
im.TextUnformatted("Near")
im.SameLine()
im.SetCursorPosX(posX + 90)
im.TextUnformatted("Far")
im.SameLine()
im.SetCursorPosX(posX + 90)
im.TextUnformatted("End Fade Out")
im.SameLine()
im.SetCursorPosX(posX + 90)
im.TextUnformatted("Name")
im.SameLine()
im.PushItemWidth(im.GetWindowContentRegionWidth() - (widthMod or 0))
im.Text("Ground Model:")
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth())
editor_terrainEditor.dragDropTarget(terrainMtlCopyProxy, "diffuse")
im.SameLine()
im.BeginGroup()
im.TextUnformatted("Diffuse")
im.SameLine()
local removeMapButtonCursorX = childWidth - editor_terrainEditor.getVars().style.ItemInnerSpacing.x - fontSize - editor_terrainEditor.getVars().style.ScrollbarSize
editor_terrainEditor.dragDropTarget(terrainMtlCopyProxy, "macro")
im.SameLine()
im.BeginGroup()
im.TextUnformatted("Macro")
im.SameLine()
im.SetCursorPosX(removeMapButtonCursorX)
editor_terrainEditor.dragDropTarget(terrainMtlCopyProxy, "detail")
im.SameLine()
im.BeginGroup()
im.TextUnformatted("Detail")
im.SameLine()
im.SetCursorPosX(removeMapButtonCursorX)
editor_terrainEditor.dragDropTarget(terrainMtlCopyProxy, "normal")
im.SameLine()
im.BeginGroup()
im.TextUnformatted("Normal")
im.SameLine()
im.SetCursorPosX(removeMapButtonCursorX)
end
im.SameLine()
if im.Button("Bulk Change") then
im.Text("Ground Model:")
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth())
end
im.SameLine()
if im.Button("Upgrade##upgradeFileFormat") then
end
im.SameLine()
if im.Button("Upgrade##upgradeTerrainMaterials") then
im.TextUnformatted("Material Library")
im.SameLine()
-- Add new material
im.SameLine()
-- Delete selected material
im.SameLine()
local posX = im.GetCursorPosX()
im.TextUnformatted("Annotation:")
im.SameLine()
im.ColorButton("Annotation color", bgColor, 0, im.ImVec2(25, 19))
im.ColorButton("Annotation color", bgColor, 0, im.ImVec2(25, 19))
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth())
im.ColorButton("annotationColorButton", bgColor, 0, im.ImVec2(25, 19))
im.SameLine()
if im.Selectable1(annotations[n], isSelected) then
end
im.SameLine()
if im.SmallButton("Cancel") then
@/lua/ge/extensions/editor/dragRaceEditor/facilities.lua
im.Text("Facilities:")
im.SameLine()
if im.Button("Add##facilities_add") then
end
im.SameLine()
if im.Button("Remove##facilities_remove") then
end
im.SameLine()
if im.Button("Save##facilities_save") then
end
im.SameLine()
if im.Button("Refresh##facilities_refresh") then
im.Text("ID: ")
im.SameLine()
local id = im.ArrayChar(256, facility.id or "")
im.Text("Name: ")
im.SameLine()
local name = im.ArrayChar(256, facility.name or "")
im.Text("Description: ")
im.SameLine()
local description = im.ArrayChar(512, facility.description or "")
@/lua/ge/extensions/editor/missionEditor/prefabs.lua
end
im.SameLine()
im.PushItemWidth(200)
end
im.SameLine()
if im.Button(" ... ##prefab"..i) then
end
im.SameLine()
local file = self.mission.prefabs[i]
im.tooltip("Found file at " .. file)
im.SameLine()
if im.Button("Spawn##prefab"..i) then
@/lua/ge/extensions/editor/audioEventsList.lua
editor.uiIconImage(editor.icons.music_note, im.ImVec2(24,24), im.ImVec4(1,1,1,1))
im.SameLine()
editor.uiIconImage(editor.icons.folder, im.ImVec2(24,24), im.ImVec4(1,1,1,1))
im.SameLine()
if im.Selectable1("..", nil, im.SelectableFlags_SpanAllColumns) then
editor.uiIconImage(editor.icons.folder, im.ImVec2(24,24), im.ImVec4(1,1,1,1))
im.SameLine()
if im.Selectable1(v.name, nil, im.SelectableFlags_SpanAllColumns) then
@/lua/ge/extensions/core/vehicleMirrors.lua
end
im.SameLine()
if im.Button(">") then
end
im.SameLine()
if im.Button("/\\") then
end
im.SameLine()
if im.Button("V") then
end
im.SameLine()
if im.Button("reset") then
end
im.SameLine()
if im.Button("unload") then
end
im.SameLine()
im.SliderFloat("updateRate", updateTime, 0, 1)
@/lua/ge/extensions/editor/vizHelper.lua
im.Text(tostring(#savedDecals) .. " decals saved")
im.SameLine()
if im.SmallButton("clear") then
@/lua/ge/extensions/editor/dynamicDecals/brushes.lua
im.ColorButton("##colorTL", editor.getTempImVec4_TableImVec4(gradientColorTopLeft), im.ColorEditFlags_AlphaPreview)
im.SameLine()
local windowPos = im.GetWindowPos()
im.InvisibleButton("GradientButton", im.ImVec2(size, size))
im.SameLine()
end
im.SameLine()
if im.Button("Delete") then
end
im.SameLine()
if not brush.dirty then im.BeginDisabled() end
if editor.getPreference("dynamicDecalsTool.general.debug") then
im.SameLine()
if im.Button("dump") then
im.TextUnformatted("texture path:")
im.SameLine()
im.TextUnformatted(brush.decalColorTexturePath)
im.TextUnformatted("texture path:")
im.SameLine()
im.TextUnformatted(brush.decalNormalTexturePath)
im.TextUnformatted("texture path:")
im.SameLine()
im.TextUnformatted(brush.decalMetallicTexturePath)
im.TextUnformatted("texture path:")
im.SameLine()
im.TextUnformatted(brush.decalRoughnessTexturePath)
im.TextUnformatted("texture path:")
im.SameLine()
im.TextUnformatted(brush.decalAlphaTexturePath)
im.tooltip(brush.name or "")
im.SameLine()
if im.GetContentRegionAvailWidth() < thumbnailSize then
@/lua/ge/extensions/editor/dynamicDecals/helper.lua
if inline then
im.SameLine()
end
@/lua/ge/extensions/flowgraph/nodes/ui/updatedUI/endScreenBegin.lua
end
im.SameLine()
if im.Button("rem") then
@/lua/ge/extensions/flowgraph/nodes/logic/booleanExpression.lua
ui_flowgraph_editor.tooltip(dumps(pin.type))
im.SameLine()
im.Text(pin.pin .. " - " .. pin.description)
@/lua/ge/extensions/ui/console.lua
im.TextColored(im.ImVec4(1.0, 0.0, 0.0, 1.0), tostring(t.errors) .. 'E ')
--im.SameLine()
end
im.tooltip("Error")
im.SameLine()
im.tooltip("Warning")
im.SameLine()
im.tooltip("Info")
im.SameLine()
im.tooltip("Debug")
im.SameLine()
im.tooltip("Other")
im.SameLine()
im.Spacing()
im.SameLine()
im.tooltip("Enable Vehicle control while Console window is open")
im.SameLine()
im.tooltip("Force scroll bar down")
im.SameLine()
im.Spacing()
im.SameLine()
im.TextUnformatted("Filter(s):")
im.SameLine()
im.ShowHelpMarker(helpstr, false) --broken, goes billow text
im.ShowHelpMarker(helpstr, false) --broken, goes billow text
im.SameLine()
-- im.TextUnformatted("(?)")
im.TextUnformatted("Origin")
im.SameLine()
if invalidOriginFilter then
if invalidOriginFilter then
im.SameLine()
im.TextColored(im.ImVec4(1.0, 0.0, 0.0, 1.0), tostring(filterErr) )
end
im.SameLine()
im.SameLine()
im.PushItemWidth(40 * uiScale)
-- -- im.tooltip("Error")
-- -- im.SameLine()
@/lua/ge/extensions/editor/crawlEditor.lua
im.TextColored(im.ImVec4(0.8, 0.6, 0.2, 1.0), "Trails")
im.SameLine()
if im.Button("Add Trail") then
im.TextColored(im.ImVec4(0.8, 0.6, 0.2, 1.0), "Paths")
im.SameLine()
if im.Button("Add Path") then
im.TextColored(im.ImVec4(0.8, 0.6, 0.2, 1.0), "Boundaries")
im.SameLine()
if im.Button("Add Boundary") then
im.TextColored(im.ImVec4(0.8, 0.6, 0.2, 1.0), "Starting Positions")
im.SameLine()
if im.Button("Add Starting Position") then
im.SameLine()
im.Text("Details")
im.SameLine()
if im.Button("Save") then
if currentTab == "trails" and selectedTrailIndex > 0 then
im.SameLine()
im.PushStyleColor2(im.Col_Button, im.ImVec4(0.8, 0.2, 0.2, 1.0))
elseif currentTab == "paths" and selectedPathIndex > 0 then
im.SameLine()
im.PushStyleColor2(im.Col_Button, im.ImVec4(0.8, 0.2, 0.2, 1.0))
elseif currentTab == "boundaries" and selectedBoundaryIndex > 0 then
im.SameLine()
im.PushStyleColor2(im.Col_Button, im.ImVec4(0.8, 0.2, 0.2, 1.0))
elseif currentTab == "startingPositions" and selectedStartingPositionIndex > 0 then
im.SameLine()
im.PushStyleColor2(im.Col_Button, im.ImVec4(0.8, 0.2, 0.2, 1.0))
@/lua/ge/extensions/editor/trafficManager.lua
end
im.SameLine()
im.Dummy(imSizes.dummy)
im.Dummy(imSizes.dummy)
im.SameLine()
if im.RadioButton2("Simple Vehicles##trafficManager", options.vehicleType, im.Int(2)) then
end
im.SameLine()
im.Dummy(imSizes.dummy)
im.Dummy(imSizes.dummy)
im.SameLine()
if im.RadioButton2("Parked Vehicles##trafficManager", options.vehicleType, im.Int(3)) then
if availWidth >= 560 then
im.SameLine()
im.Dummy(imSizes.dummy)
im.Dummy(imSizes.dummy)
im.SameLine()
end
end
im.SameLine()
im.Dummy(imSizes.dummy)
im.Dummy(imSizes.dummy)
im.SameLine()
if im.RadioButton2("Any##trafficManager", options.vehicleType, im.Int(5)) then
end
im.SameLine()
im.Dummy(imSizes.dummy)
im.Dummy(imSizes.dummy)
im.SameLine()
if im.RadioButton2("Vehicle Group##trafficManager", options.vehicleGroupMode, im.Int(2)) then
im.SameLine()
if spawnDelayFrames >= 0 then
im.SameLine()
im.TextColored(imColors.warning, "Please wait...")
im.SameLine()
im.tooltip("Start AI")
im.SameLine()
if editor.uiIconImageButton(editor.icons.stop, imSizes.medium) then
if not isDrivable then im.EndDisabled() end
im.SameLine()
if editor.uiIconImageButton(editor.icons.refresh, imSizes.medium) then
im.tooltip("Reset")
im.SameLine()
if editor.uiIconImageButton(editor.icons.delete_forever, imSizes.medium) then
im.tooltip("Save Home Position")
im.SameLine()
if editor.uiIconImageButton(editor.icons.cars, imSizes.medium) then
if spawnDelayFrames >= 0 then
im.SameLine()
im.TextColored(imColors.warning, "Please wait...")
if sessionData._tempData.varCurrentId ~= nil then
im.SameLine()
editor.uiIconImage(sessionData._tempData.varCurrentId and editor.icons.check or editor.icons.close, imSizes.small)
im.tooltip("Variable: currentId")
im.SameLine()
editor.uiIconImage(sessionData._tempData.varPlayerId and editor.icons.check or editor.icons.close, imSizes.small)
im.TextColored(imColors.inactive, string.format("%0.2f %s", convertSpeed(aiData.speed, speedUnits[1]), speedUnits[1]))
im.SameLine()
im.Dummy(imSizes.dummy)
im.Dummy(imSizes.dummy)
im.SameLine()
im.TextColored(imColors.inactive, string.format("%0.2f %s", convertSpeed(aiData.speed, speedUnits[2]), speedUnits[2]))
im.tooltip("Set Transform from Camera")
im.SameLine()
if editor.uiIconImageButton(editor.icons.mouse, imSizes.medium, mouseMode == "move" and im.GetStyleColorVec4(im.Col_ButtonActive)) then
im.TextUnformatted(string.format("%0.2f", convertSpeed(speed, speedUnits[options.speedUnits[0]])))
im.SameLine()
if im.Button(speedUnits[options.speedUnits[0]]) then
im.TextUnformatted(string.format("%0.2f", convertDistance(sessionData.stats.distance, distanceUnits[options.distanceUnits[0]])))
im.SameLine()
if im.Button(distanceUnits[options.distanceUnits[0]]) then
im.tooltip("Start AI")
im.SameLine()
if editor.uiIconImageButton(editor.icons.stop, imSizes.medium) then
im.tooltip("Stop AI")
im.SameLine()
if editor.uiIconImageButton(editor.icons.refresh, imSizes.medium) then
im.tooltip("Reset Objects")
im.SameLine()
if editor.uiIconImageButton(editor.icons.delete_forever, imSizes.medium) then
im.SameLine()
im.tooltip("Set Transform from Camera")
im.SameLine()
if editor.uiIconImageButton(editor.icons.mouse, imSizes.medium, mouseMode == "move" and im.GetStyleColorVec4(im.Col_ButtonActive)) then
im.tooltip("Set Transform with Mouse (Shift key also works)")
im.SameLine()
if editor.uiIconImageButton(editor.icons.delete_forever, imSizes.medium) then
if not scenetree.objectExistsById(currInstance.spawnedObjectId or 0) then
im.SameLine()
if im.Button("Use Default") then -- NOTE: only works for right side of road
im.SameLine()
if editor.uiIconImageButton(editor.icons.remove_circle, imSizes.medium) then
if tempEditMode == "objectSelect" then
im.SameLine()
im.TextColored(imColors.warning, "Object selection mode active.")
im.tooltip("Play")
im.SameLine()
if editor.uiIconImageButton(editor.icons.stop, imSizes.medium) then
im.tooltip("Stop")
im.SameLine()
if editor.uiIconImageButton(editor.icons.delete_forever, imSizes.medium) then
im.SameLine()
im.tooltip(windows[key].name)
im.SameLine()
im.Dummy(imSizes.dummy)
im.Dummy(imSizes.dummy)
im.SameLine()
end
im.tooltip("Save Session")
im.SameLine()
im.Dummy(imSizes.dummy)
im.Dummy(imSizes.dummy)
im.SameLine()
if editor.uiIconImageButton(editor.icons.folder, imSizes.large) then
end
im.SameLine()
if im.Button("NO", im.ImVec2(inputWidth, 20 * im.uiscale[0])) then
@/lua/ge/extensions/editor/headlessEditorTest.lua
if imgui.IsItemHovered() then imgui.BeginTooltip() imgui.Text("Button1") imgui.EndTooltip() end
imgui.SameLine()
if imgui.IsItemHovered() then imgui.BeginTooltip() imgui.Text("Button2") imgui.EndTooltip() end
imgui.SameLine()
@/lua/ge/extensions/gameplay/drift/general.lua
im.PopStyleColor()
im.SameLine()
if im.Button("Reset drift") then reset() end
@/lua/ge/extensions/flowgraph/nodes/vehicle/customPartsConfigProvider.lua
end
im.SameLine()
if editor.uiIconImageButton(editor.icons.delete_forever,im.ImVec2(20, 20)) then
im.InputText("##AddValPart", self._valText)
im.SameLine()
if editor.uiIconImageButton(editor.icons.add,im.ImVec2(20, 20)) then
im.InputFloat("##AddValPart", self._valNum)
im.SameLine()
if editor.uiIconImageButton(editor.icons.add,im.ImVec2(20, 20)) then
@/lua/ge/extensions/editor/dynamicDecals/camera.lua
end
im.SameLine()
@/lua/ge/extensions/flowgraph/nodes/gameplay/sites/parkingspot.lua
end
im.SameLine()
if im.Button("rem") then
@/lua/ge/extensions/editor/dynamicDecals/inspector.lua
if editor.getPreference("dynamicDecalsTool.general.debug") then
im.SameLine()
if im.Button(string.format("Dumpz 3##%s_%s", layer.uid, guiId)) then dumpz(layer, 3) end
im.TextUnformatted("uid")
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth())
im.TextUnformatted("Type")
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth())
@/lua/ge/extensions/flowgraph/nodes/ui/contextTranslation.lua
im.Text("Translation String:")
im.SameLine()
im.SameLine()
if im.Button("Load Variables", im.ImVec2(im.GetContentRegionAvailWidth(), 0)) then
@/lua/ge/extensions/gameplay/rally/tools/devTools.lua
im.Text("Text Compositor")
im.SameLine()
end
im.SameLine()
if im.Button("Enumerate") then
im.SameLine()
end
im.SameLine()
if im.Button("Cancel", im.ImVec2(120,0)) then
@/lua/ge/extensions/editor/mapSensorEditor.lua
end
im.SameLine()
im.NextColumn()
im.tooltip('Remove this sensor from the configuration.')
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
im.tooltip('Add a Camera Sensor to the configuration.')
im.SameLine()
im.tooltip('Add a LiDAR Sensor to the configuration.')
im.SameLine()
im.tooltip('Add an Ultrasonic Sensor to the configuration.')
im.SameLine()
im.tooltip('Add a RADAR Sensor to the configuration.')
im.SameLine()
im.tooltip('Save the current sensor configuration, for this vehicle, to disk.')
im.SameLine()
end
im.SameLine()
end
im.SameLine()
if im.Button("Close popup") then
im.tooltip("Set the LiDAR to operate in 'Full 360 Degrees' mode.")
im.SameLine()
local btnCol = blueB
im.tooltip("Set the LiDAR to operate in 'LFO' (low-frequency rotation) mode.")
im.SameLine()
local btnCol = blueB
im.tooltip("Set the LiDAR to operate in 'Static' (no rotation) mode.")
im.SameLine()
im.tooltip('Set preset beam shape: Triangular, 7m range.')
im.SameLine()
if editor.uiIconImageButton(editor.icons.thinBulbBeam, sensorIcon, blueB, nil, nil, 'usPreset2') then
im.tooltip('Set preset beam shape: Thin bulb, 8m range.')
im.SameLine()
if editor.uiIconImageButton(editor.icons.thinnerBulbBeam, sensorIcon, blueB, nil, nil, 'usPreset3') then
im.tooltip('Set preset beam shape: Ultra thin bulb, 8m range.')
im.SameLine()
if editor.uiIconImageButton(editor.icons.sphericalBeam, sensorIcon, blueB, nil, nil, 'usPreset4') then
im.tooltip('Set preset beam shape: Spherical, 5m range.')
im.SameLine()
if editor.uiIconImageButton(editor.icons.flatBulbBeam, sensorIcon, blueB, nil, nil, 'usPreset5') then
im.tooltip('Set preset beam shape: Flat head bulb, 5m range.')
im.SameLine()
if editor.uiIconImageButton(editor.icons.tulipBeam, sensorIcon, blueB, nil, nil, 'usPreset6') then
im.tooltip('Set preset beam shape: Short Range (0.5m - 30m).')
im.SameLine()
if editor.uiIconImageButton(editor.icons.midRangeBeam1, sensorIcon, blueB, nil, nil, 'usPreset2') then
im.tooltip('Set preset beam shape: Medium Range (1m - 70m).')
im.SameLine()
if editor.uiIconImageButton(editor.icons.longRangeBeam1, sensorIcon, blueB, nil, nil, 'usPreset3') then
@/lua/ge/extensions/editor/rallyEditor/drivelineTab.lua
-- Reload button
im.SameLine()
if im.SmallButton("Change Source") then
im.HeaderText("Spline")
im.SameLine()
im.TextColored(im.ImVec4(0, 1, 1, 1), "(help)")
@/lua/ge/extensions/core/quickAccess.lua
im.Text(title)
im.SameLine()
if im.Button("Add ##" .. currentPath) then
@/lua/ge/extensions/flowgraph/nodes/gameplay/sites/location.lua
end
im.SameLine()
if im.Button("rem") then
@/lua/ge/extensions/editor/dynamicDecalsTool.lua
end
im.SameLine()
if im.Button("Ok", im.ImVec2((space - style.ItemSpacing.x) / 2, 0)) then
end
im.SameLine()
if im.Checkbox("Do api.onUpdate_", editor.getTempBool_BoolBool(M.doApiUpdate)) then
end
im.SameLine()
if im.Button("Pop action map") then
im.tooltip("About")
im.SameLine()
im.tooltip("Documentation")
im.SameLine()
im.tooltip("Preferences")
im.SameLine()
im.tooltip("Load")
im.SameLine()
if ext == "" then im.BeginDisabled() end
im.SameLine()
if editor.uiIconImageButton(editor.icons.save, nil, nil, nil, nil, "SaveProjectToolbarButton") then
im.tooltip("Toggle 'Use Surface Normal' setting\nIf enabled the tool calculates a normal based on the vehicle mesh.")
im.SameLine()
im.SameLine()
if editor.uiIconImageButton(editor.icons.palette, nil, M.toolMode == M.toolModes.brushStroke and editor.color.beamng.Value or nil, nil, nil, "BrushStrokeToolToolbarButton") then
im.SameLine()
if editor.uiIconImageButton(editor.icons.tb_left_curve_longer, nil, api.getEnablePathLayer() and editor.color.beamng.Value or nil, nil, nil, "PathToolToolbarButton") then
item.guiFn()
im.SameLine()
end
item.guiFn()
im.SameLine()
end
if deps.gizmo.rotateFn then
im.SameLine()
if editor.uiIconImageButton(editor.icons.rotate, nil, deps.gizmo.getTransformMode() == deps.gizmo.transformModes.rotate and editor.color.beamng.Value or nil, nil, nil, "Rotate tool") then
if deps.gizmo.scaleFn then
im.SameLine()
if editor.uiIconImageButton(editor.icons.scale, nil, deps.gizmo.getTransformMode() == deps.gizmo.transformModes.scale and editor.color.beamng.Value or nil, nil, nil, "Scale tool") then
im.SameLine()
im.Dummy(im.ImVec2(im.GetStyle().ItemSpacing.x, 0))
if api.getLockDepth() then
im.SameLine()
im.TextColored(editor.color.warning.Value, "DEPTH BUFFER LOCKED")
if api.getLockSurfaceNormal() then
im.SameLine()
im.TextColored(editor.color.warning.Value, "SURFACE NORMAL LOCKED")
if currentMaskEditingLayerUid then
im.SameLine()
im.TextColored(editor.color.warning.Value, "LAYER MASKING ENABLED")
im.PopItemWidth()
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth())
@/lua/ge/extensions/editor/raceEditor/segments.lua
im.SameLine()
im.BeginChild1("currentSegment", im.ImVec2(0, 0), im.WindowFlags_ChildWindow)
im.Text("Current Segment: #" .. self.index)
im.SameLine()
if im.Button("Delete") then
end
im.SameLine()
if im.Button("Move Up") then
end
im.SameLine()
if im.Button("Move Down") then
im.EndChild()
im.SameLine()
im.BeginChild1("currentCapsule", im.ImVec2(0, 0), im.WindowFlags_ChildWindow)
end
im.SameLine()
if im.Button("Add After") then
end
im.SameLine()
if im.Button("Remove") then
@/lua/ge/extensions/editor/terrainAndRoadImporter.lua
im.tooltip('Terraforms the terrain to some given peaks (from a .json file).')
im.SameLine()
im.tooltip('Import a terrain (from 16-bit greyscale .png file).')
im.SameLine()
im.tooltip('Import roads (from .json file).')
im.SameLine()
@/lua/ge/extensions/editor/rallyEditor/pacenotes/measurementsForm.lua
im.Text("Corner Intensity Variation Point")
im.SameLine()
im.TextColored(im.ImVec4(0, 1, 1, 1), "(?)")
end
im.SameLine()
im.tooltip("Automatically select the best intensity variation option based on circle fit quality")
if autoEnabledForDisplay and pacenote.autoSelectedFitValue then
im.SameLine()
im.TextColored(im.ImVec4(0.5, 1, 0.5, 1), string.format("(fit: %.3f)", pacenote.autoSelectedFitValue))
end
im.SameLine()
if im.Button("Apply") then
@/lua/ge/extensions/editor/assetDeduplicator.lua
end
im.SameLine()
if im.Button("Clear All") then
end
im.SameLine()
im.Text(("Selected: %d"):format(countSelected()))
end
im.SameLine()
if im.SmallButton("Preview##" .. i) then
end
im.SameLine()
if im.SmallButton("Preview##" .. i) then
if im.Button("Abort") then im.CloseCurrentPopup() end
im.SameLine()
if im.Button("Accept") then
im.Text("To check current asset file size usage open ")
im.SameLine()
if im.Button("Resource Checker") then editor.showWindow("resourceChecker") end
end
im.SameLine()
local modLinkEnabled = im.BoolPtr(modLink)
end
im.SameLine()
if im.Button("Deep clean asset cache") then
@/lua/ge/extensions/editor/sensorDebugger.lua
end
im.SameLine()
if im.Button("Hide all cameras") then
@/lua/ge/extensions/editor/dynamicDecals/layerTypes/path.lua
end
im.SameLine()
im.ColorButton(string.format("##%s_%s_%s", layer.uid, guiId, "inspector_colorpalettemapidbutton"), editor.getTempImVec4_TableTable(col))
im.PopItemWidth()
im.SameLine()
if editor.uiIconImageButton(editor.icons.folder, im.ImVec2(tool.getIconSize(), tool.getIconSize()), nil, nil, nil, string.format("##%s_%s_%s", layer.uid, guiId, "pathLayerFontPath_fileDialog")) then
end
im.SameLine()
if editor.uiIconImageButton(editor.icons.delete, im.ImVec2(tool.getIconSize(), tool.getIconSize()), nil, nil, nil, string.format("##%s_%s_%s", layer.uid, guiId, "pathLayerFontPath_removeButton")) then
im.PopStyleColor()
im.SameLine()
enabled = layer.decalUv.y < 0 and true or false
im.TextUnformatted(string.sub(layer.text, k, k))
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth() - (tool.getIconSize() + im.GetStyle().ItemSpacing.x))
im.PopItemWidth()
im.SameLine()
if editor.uiIconImageButton(editor.icons.replay, im.ImVec2(tool.getIconSize(), tool.getIconSize()), nil, nil, nil, string.format("##%s_%s_%s_%d", layer.uid, guiId, "textCharacterPositions_resetValue", k)) then
im.TextUnformatted(tostring(k))
im.SameLine()
im.tooltip("Remove entry")
im.SameLine()
if k == count then im.EndDisabled() end
im.SameLine()
im.tooltip("Move path point")
im.SameLine()
if (api.getEnablePathLayer() and api.hasActivePathLayer()) then
-- im.SameLine()
local vertSeparatorHeight = im.GetContentRegionAvail().y
im.SameLine()
if editor.uiIconImageButton(editor.icons.keyboard_return, nil, nil, nil, nil, "Remove last path layer data point") then
@/lua/ge/extensions/flowgraph/nodes/types/transform.lua
im.TextUnformatted("Mode:")
im.SameLine()
if im.BeginCombo("##transformMode" .. self.id, self.mode) then
@/lua/ge/extensions/editor/gen/lib/ui.lua
end
im.SameLine()
local cur = im.GetCursorPos()
-- overlay text
im.SameLine()
if center then
end
im.SameLine()
im.Indent()
im.Text(lbl)
im.SameLine()
-- im.Indent(0)
im.Text(lbl)
im.SameLine()
-- im.Indent(conf.inputMargin)
im.Text(lbl)
im.SameLine()
-- im.Indent(conf.inputMargin)
im.Text(lbl)
im.SameLine()
-- im.Indent(conf.inputMargin)
im.Text(lbl)
im.SameLine()
-- im.Indent(conf.inputMargin)
if #htree == 1 then
im.SameLine()
im.Dummy(im.ImVec2(4, 0))
im.Dummy(im.ImVec2(4, 0))
im.SameLine()
for _,c in pairs(row) do
im.Text(k)
im.SameLine()
im.Text(v)
im.Text(v)
im.SameLine()
im.Dummy(im.ImVec2(4, 0))
im.Dummy(im.ImVec2(4, 0))
im.SameLine()
end
if tableSize(row) > 0 then
-- im.SameLine()
if i == 1 then
-- im.Separator()
im.SameLine()
-- im.Dummy(im.ImVec2(0, 0))
if _ == 1 then
-- im.SameLine()
-- im.Dummy(im.ImVec2(0, 30))
-- im.Dummy(im.ImVec2(0, 30))
-- im.SameLine()
end
if not nextline then
im.SameLine()
else
-- im.Dummy(im.ImVec2(0, 4))
-- im.SameLine()
local sz = im.CalcTextSize(k)
im.Text(k)
im.SameLine()
im.Text(v)
if not nextline then
im.SameLine()
else
im.SameLine()
im.Dummy(im.ImVec2(4, 0))
im.Dummy(im.ImVec2(4, 0))
im.SameLine()
else
end
-- im.SameLine()
-- im.Dummy(im.ImVec2(0, 0))
@/lua/ge/extensions/editor/drivePathEditor.lua
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
wCtr = wCtr + 1
im.SameLine()
im.NextColumn()
wCtr = wCtr + 1
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
wCtr = wCtr + 1
im.SameLine()
im.NextColumn()
im.PopItemWidth()
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
im.TextColored(cols.redB, 'Linked To Drive Path Spline: ')
im.SameLine()
im.Text(string.format('[%s]', linkedSpline.name))
im.TextColored(cols.redB, 'Not Linked: ')
im.SameLine()
im.Text('[select a drive path spline then click link icon]')
im.TextColored(cols.redB, 'Recording In Progress... ')
im.SameLine()
im.Text(string.format('[time: %.2fs]', record.getRecordingTime()))
im.TextColored(cols.redB, 'Playback In Progress... ')
im.SameLine()
im.Text(string.format('[time: %.2fs]', playback.getPlaybackTime()))
im.tooltip('m/s.')
im.SameLine()
im.NextColumn()
im.tooltip('mph.')
im.SameLine()
im.NextColumn()
im.tooltip('NavGraph Mode: create waypoint-to-waypoint paths on the navigation graph.')
im.SameLine()
im.NextColumn()
im.tooltip('Set: set the route speed for the drive path spline.')
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
im.tooltip('Sets the driveInLane flag for the drive path spline.')
im.SameLine()
im.NextColumn()
@/lua/ge/extensions/career/modules/partInventory.lua
imgui.EndChild()
imgui.SameLine()
imgui.BeginChild1("inventoryPartsOuter", imgui.ImVec2(0, 0), imgui.WindowFlags_ChildWindow)
@/lua/ge/extensions/editor/gen/exp_solidflex.lua
--[[
im.SameLine()
im.SetCursorPosY(im.GetCursorPos().y-2)
@/lua/ge/extensions/editor/dynamicDecals/inspector/utils.lua
im.PopItemWidth()
im.SameLine()
if editor.uiIconImageButton(editor.icons.folder, im.ImVec2(tool.getIconSize(), tool.getIconSize()), nil, nil, nil, string.format("##%s_%s_%s_%s", layer.uid, guiId, propert, "button")) then
end
im.SameLine()
if editor.uiIconImageButton(editor.icons.delete, im.ImVec2(tool.getIconSize(), tool.getIconSize()), nil, nil, nil, string.format("##%s_%s_%s_%s", layer.uid, guiId, propert, "removeButton")) then
end
im.SameLine()
local windowPos = im.GetWindowPos()
im.InvisibleButton("GradientButton", im.ImVec2(size, size))
im.SameLine()
@/lua/ge/extensions/editor/inspector.lua
end
imgui.SameLine(imgui.GetWindowWidth() - 40 * editor.getPreference("ui.general.scale"));
imgui.SetItemAllowOverlap()
local textColor = imgui.GetStyleColorVec4(imgui.Col_Text)
imgui.TextUnformatted("Class:") imgui.SameLine() imgui.TextColored(textColor, valueInspector.selectionClassName)
if #valueInspector.selectedIds == 1 then
imgui.SameLine()
imgui.Text(" ")
imgui.Text(" ")
imgui.SameLine()
imgui.TextUnformatted("ID:") imgui.SameLine() imgui.TextColored(textColor, tostring(obj:getId()))
imgui.SameLine()
imgui.TextUnformatted("ID:") imgui.SameLine() imgui.TextColored(textColor, tostring(obj:getId()))
imgui.SameLine()
imgui.TextUnformatted("ID:") imgui.SameLine() imgui.TextColored(textColor, tostring(obj:getId()))
imgui.SameLine()
if imgui.Button("Copy ID") then
end
imgui.SameLine()
if grp then
imgui.TextUnformatted("Parent:") imgui.SameLine() imgui.TextColored(textColor, tostring(grp:getName()))
end
end
imgui.SameLine()
imgui.PushID4(i)
end
imgui.SameLine()
if imgui.Button("Add") then
imgui.TextUnformatted("0.0")
imgui.SameLine()
imgui.TextUnformatted("U")
imgui.SameLine()
imgui.TextUnformatted("U: ")
imgui.SameLine()
imgui.SetCursorPosX(cursorPos.x + uvValueWidgetWidth + 2*imgui.GetStyle().FramePadding.x)
imgui.TextUnformatted("V: ")
imgui.SameLine()
imgui.SetCursorPosX(cursorPos.x + uvValueWidgetWidth + 2*imgui.GetStyle().FramePadding.x)
imgui.TextUnformatted("Width: ")
imgui.SameLine()
imgui.SetCursorPosX(cursorPos.x + uvValueWidgetWidth + 2*imgui.GetStyle().FramePadding.x)
imgui.TextUnformatted("Height: ")
imgui.SameLine()
imgui.SetCursorPosX(cursorPos.x + uvValueWidgetWidth + 2*imgui.GetStyle().FramePadding.x)
imgui.TextUnformatted("Handle Color: ")
imgui.SameLine()
imgui.SameLine()
imgui.SetCursorPosX(imgui.GetCursorPos().x + fontSize)
imgui.TextUnformatted("Background Color: ")
imgui.SameLine()
imgui.PopItemWidth()
imgui.SameLine()
imgui.SetCursorPosX(availableSize.x * 0.75 + 2*imgui.GetStyle().FramePadding.x)
imgui.SameLine()
if imgui.Button("Cancel") then
imgui.tooltip("Lock this Inspector to the currently selected object(s)")
imgui.SameLine()
local numKeys = 0
if inspectorInfo.selection then
imgui.SameLine()
imgui.PushStyleColor2(imgui.Col_Text, lockedInspectorColor)
end
imgui.SameLine()
editor.uiHelpButton("Inspector", "world_editor/windows/inspector/")
imgui.PopItemWidth()
imgui.SameLine()
local prevCursorPos = imgui.ImVec2(imgui.GetCursorPos().x - imgui.GetStyle().FramePadding.x / 2, imgui.GetCursorPos().y)
@/lua/ge/extensions/flowgraph/nodes/ui/imgui/imDialogue.lua
end
im.SameLine()
if im.Button("rem##" .. self.id) then
@/lua/ge/extensions/editor/toolUtilities/materialSelectionMgr.lua
end
im.SameLine()
end
@/lua/ge/extensions/editor/missionEditor/additionalAttributes.lua
editor.uiInputInt("##date", self.dateInput, 60*60*24, 60*60*24*7, nil, editEnded)
im.SameLine()
if im.Button("Now") then
end
im.SameLine()
if editEnded[0] then
self:updateDateHumanReadable()
im.SameLine()
im.Text(self.dateHumanReadable)
end
im.SameLine()
if not self._groupLabelTranslated then
im.Text("After: ")
im.SameLine() im.PushItemWidth(200)
editor.uiInputInt("##dateAfter", self._timeUpdaterData.after, 60*60*24, 60*60*24*7, nil, editEnded)
editor.uiInputInt("##dateAfter", self._timeUpdaterData.after, 60*60*24, 60*60*24*7, nil, editEnded)
im.SameLine()
if im.Button("Now##after") then
end
im.SameLine()
im.Text(os.date('%Y-%m-%d %H:%M:%S', self._timeUpdaterData.after[0]))
im.Text("Set To: ")
im.SameLine() im.PushItemWidth(200)
editor.uiInputInt("##datesetTo", self._timeUpdaterData.setTo, 60*60*24, 60*60*24*7)
editor.uiInputInt("##datesetTo", self._timeUpdaterData.setTo, 60*60*24, 60*60*24*7)
im.SameLine()
if im.Button("Now##setTo") then
end
im.SameLine()
im.Text(os.date('%Y-%m-%d %H:%M:%S', self._timeUpdaterData.setTo[0]))
@/lua/ge/extensions/editor/decalSpline.lua
im.tooltip('Add a new decal spline.')
im.SameLine()
im.NextColumn()
im.tooltip('Import decal splines from a bitmap mask.')
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
wCtr = wCtr + 1
im.SameLine()
im.NextColumn()
wCtr = wCtr + 1
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
im.Dummy(iconsSmall)
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
im.Text('Comp 1:')
im.SameLine()
im.NextColumn()
im.tooltip('Select a new material for Component 1.')
im.SameLine()
im.NextColumn()
im.tooltip('Enable/Disable Component 2.')
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
im.Text('Comp 2:')
im.SameLine()
im.NextColumn()
im.tooltip('Select a new material for Component 2.')
im.SameLine()
im.NextColumn()
im.tooltip('Enable/Disable Component 3.')
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
im.Text('Comp 3:')
im.SameLine()
im.NextColumn()
im.tooltip('Select a new material for Component 3.')
im.SameLine()
im.NextColumn()
im.tooltip('Enable/Disable Component 4.')
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
im.Text('Comp 4:')
im.SameLine()
im.NextColumn()
im.tooltip('Select a new material for Component 4.')
im.SameLine()
im.NextColumn()
im.tooltip('Use a round robin pattern for the decal components.')
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
im.tooltip('Set the rotation to 0°.')
im.SameLine()
im.NextColumn()
im.tooltip('Set the rotation to 90°.')
im.SameLine()
im.NextColumn()
im.tooltip('Set the rotation to 180°.')
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
im.tooltip('Set the rotation to 0°.')
im.SameLine()
im.NextColumn()
im.tooltip('Set the rotation to 90°.')
im.SameLine()
im.NextColumn()
im.tooltip('Set the rotation to 180°.')
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
im.tooltip('Set the rotation to 0°.')
im.SameLine()
im.NextColumn()
im.tooltip('Set the rotation to 90°.')
im.SameLine()
im.NextColumn()
im.tooltip('Set the rotation to 180°.')
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
im.tooltip('Set the rotation to 0°.')
im.SameLine()
im.NextColumn()
im.tooltip('Set the rotation to 90°.')
im.SameLine()
im.NextColumn()
im.tooltip('Set the rotation to 180°.')
im.SameLine()
im.NextColumn()
@/lua/ge/extensions/editor/vehicleEditor/veToolbar.lua
end
im.SameLine()
end
im.SameLine()
if im.Button("Cancel") then
im.SameLine()
im.SetCursorPosX(im.GetCursorPosX() + im.GetContentRegionAvailWidth() - getCameraTodSlidersSize())
--im.SameLine()
im.PopStyleColor()
im.SameLine()
im.PushStyleColor2(im.Col_Text, vEditor.mode == vEditor.MODE_PICKING_BEAM and selectedColor or regularColor)
im.PopStyleColor()
im.SameLine()
]]--
@/lua/ge/extensions/editor/missionEditor/objectives.lua
editor.uiInputText("##AI", getBuffer(idx.."--"..key, re.attributeKey), 512, nil, nil, nil, editEnded)
im.SameLine()
local att = self:attributeDropdown()
im.PopItemWidth()
im.SameLine()
local att = self:attributeDropdown()
local att = self:attributeDropdown()
im.SameLine()
local changed = false
im.SameLine()
if editor.uiIconImageButton(editor.icons.content_copy, im.ImVec2(22, 22)) then
im.tooltip("Copy Rewards")
im.SameLine()
if not self.copiedRewards then
self:drawAttributeInput(re, i, key)
im.SameLine()
self:drawRewardAmount(re, i, key)
self:drawRewardAmount(re, i, key)
im.SameLine()
if im.SmallButton("Rem##"..i) then
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth() -35)
im.SameLine()
if not self._translatedTexts[key] then
end
im.SameLine()
im.HeaderText("Career Setup")
im.SameLine()
self.rawCheckbox[0] = self.rawEditPerMission[self.mission.id] or false
im.SameLine()
if editor.uiIconImageButton(editor.icons.content_copy, im.ImVec2(22, 22)) then
im.tooltip("Copy Career Setup and Rewards")
im.SameLine()
if not self.copiedStars[self.mission.missionType] then
end
im.SameLine()
if im.Button("Cancel") then
@/lua/ge/extensions/editor/roadArchitect.lua
end
im.SameLine()
im.NextColumn()
im.tooltip('Toggles the road guidelines/measurements (extends from road start and end).')
im.SameLine()
im.NextColumn()
im.tooltip('Toggles the translational gimbal on/off.')
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
im.tooltip('Save As (saves a new Road Architect session).')
im.SameLine()
im.NextColumn()
im.tooltip('Loads a Road Architect session.')
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
im.tooltip('Show all roads (master switch).')
im.SameLine()
im.NextColumn()
im.tooltip('Show all bridges (master switch).')
im.SameLine()
im.NextColumn()
wCtr = wCtr + 1
im.SameLine()
im.NextColumn()
wCtr = wCtr + 1
im.SameLine()
im.NextColumn()
im.tooltip('Remove this road from the session.')
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
wCtr = wCtr + 1
im.SameLine()
im.NextColumn()
im.tooltip('Add a new spline road.')
im.SameLine()
im.NextColumn()
im.tooltip('Add a new arc road.')
im.SameLine()
im.NextColumn()
im.tooltip('Add a new overlay (for tire tread markings only).')
im.SameLine()
im.NextColumn()
im.tooltip('Add a new bridge.')
im.SameLine()
im.NextColumn()
im.tooltip('Reloads the collision mesh (allows nodes to be placed on bridges after creating/moving bridge).')
im.SameLine()
im.NextColumn()
im.tooltip('The node Id (ordered from start of road to end of road).')
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
im.tooltip('Select a new material for this overlay (choose an edge material)')
im.SameLine()
im.NextColumn()
im.tooltip('Terraform the terrain to this single road (warning: ignores other roads).')
im.SameLine()
im.NextColumn()
im.tooltip('Terraform the terrain to all roads together.')
im.SameLine()
im.NextColumn()
im.tooltip('Show the proposed terraforming range on the map, for the selected road.')
im.SameLine()
im.Dummy(vec36)
im.tooltip('Use auto banking on this road (applied on corners only).')
im.SameLine()
im.NextColumn()
wCtr = wCtr + 1
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
wCtr = wCtr + 1
im.SameLine()
im.NextColumn()
im.tooltip('Remove this layer from the session.')
im.SameLine()
im.NextColumn()
im.tooltip('Add a new layer above this layer.')
im.SameLine()
im.NextColumn()
im.tooltip('Add a new layer below this layer.')
im.SameLine()
im.NextColumn()
wCtr = wCtr + 1
im.SameLine()
im.NextColumn()
wCtr = wCtr + 1
im.SameLine()
im.NextColumn()
wCtr = wCtr + 1
im.SameLine()
im.NextColumn()
wCtr = wCtr + 1
im.SameLine()
im.NextColumn()
im.tooltip('Select a new material for layer ' .. tostring(selLayerIdx))
im.SameLine()
im.NextColumn()
wCtr = wCtr + 1
im.SameLine()
im.NextColumn()
wCtr = wCtr + 1
im.SameLine()
im.NextColumn()
wCtr = wCtr + 1
im.SameLine()
im.NextColumn()
im.tooltip('Layer will span the entire longitudinal road length (checked), or be limited to a node-to-node interval (unchecked).')
im.SameLine()
im.NextColumn()
im.tooltip('Select a static mesh unit for this layer.')
im.SameLine()
im.NextColumn()
im.tooltip('Layer will span the entire longitudinal road length (checked), or be limited to a node-to-node interval (unchecked).')
im.SameLine()
im.NextColumn()
wCtr = wCtr + 1
im.SameLine()
im.NextColumn()
wCtr = wCtr + 1
im.SameLine()
im.NextColumn()
wCtr = wCtr + 1
im.SameLine()
im.NextColumn()
im.tooltip('Select a static mesh unit.')
im.SameLine()
im.NextColumn()
wCtr = wCtr + 1
im.SameLine()
im.NextColumn()
wCtr = wCtr + 1
im.SameLine()
im.NextColumn()
wCtr = wCtr + 1
im.SameLine()
im.NextColumn()
wCtr = wCtr + 1
im.SameLine()
im.NextColumn()
wCtr = wCtr + 1
im.SameLine()
im.NextColumn()
wCtr = wCtr + 1
im.SameLine()
im.NextColumn()
wCtr = wCtr + 1
im.SameLine()
im.NextColumn()
im.tooltip('Urban class (for street-based roads, eg with sidewalks, lamp posts, etc).')
im.SameLine()
im.NextColumn()
im.tooltip('Highway class (for highways and intersections, eg with hard shoulders, crash barriers, etc).')
im.SameLine()
im.NextColumn()
im.Text("Dirt Material")
im.SameLine()
im.NextColumn()
im.tooltip('Select a new material for the dirt track.')
im.SameLine()
im.NextColumn()
im.tooltip('Toggles the road surface mesh.')
im.SameLine()
im.NextColumn()
im.tooltip('Toggles the road outline mesh (shows render granularity/quadrilaterals).')
im.SameLine()
im.NextColumn()
im.tooltip('Toggles the road reference line (center line of road).')
im.SameLine()
im.NextColumn()
im.Dummy(vec36)
im.SameLine()
im.NextColumn()
im.tooltip('Toggles the node spheres.')
im.SameLine()
im.NextColumn()
im.tooltip('Toggles the node numbering.')
im.SameLine()
im.NextColumn()
im.Dummy(vec36)
im.SameLine()
im.NextColumn()
im.Dummy(vec36)
im.SameLine()
im.NextColumn()
wCtr = wCtr + 1
im.SameLine()
im.NextColumn()
wCtr = wCtr + 1
im.SameLine()
im.NextColumn()
im.tooltip('Remove this junction from the session (removes all roads).')
im.SameLine()
im.NextColumn()
im.tooltip('Finalize this junction (will export the junction roads to the Roads List, and will become connectable. However, the junction will no longer be editable in the junction designer).')
im.SameLine()
im.NextColumn()
im.tooltip('Save this junction to disk.')
im.SameLine()
im.NextColumn()
im.tooltip('Add a 2-way simple crossing junction.')
im.SameLine()
im.NextColumn()
im.tooltip('Add a 4-way crossroads style junction.')
im.SameLine()
im.NextColumn()
im.tooltip('Add a 3-way T-style junction.')
im.SameLine()
im.NextColumn()
im.tooltip('Add a 3-way Y-style junction (with angular control).')
im.SameLine()
im.NextColumn()
im.tooltip('Add a 4-way roundabout junction.')
im.SameLine()
im.NextColumn()
im.tooltip('Add a sidewalk transition junction (joins an urban road with sidewalk to an urban/rural road without sidewalk).')
im.SameLine()
im.NextColumn()
im.tooltip('Add an urban merge junction (eg 2 lanes -> 1 lane, 3 lanes -> 2 lanes).')
im.SameLine()
im.NextColumn()
im.tooltip('Add a highway merge junction (eg 2 lanes -> 1 lane, 3 lanes -> 2 lanes).')
im.SameLine()
im.NextColumn()
im.tooltip('Add a highway <-> urban transition junction (tapers the central reservation down to a centerline).')
im.SameLine()
im.NextColumn()
im.tooltip('Add a highway separator junction (splits a two-way highway into two one-way sections, to make linking separable).')
im.SameLine()
im.NextColumn()
im.tooltip('Add a shoulder fade junction (tapers out the hard shoulder lane, to connect Highway to Urban types).')
im.SameLine()
im.NextColumn()
im.tooltip('Add a highway slip junction.')
im.SameLine()
im.NextColumn()
im.Dummy(vec36)
im.SameLine()
im.NextColumn()
im.tooltip('Create an auto-junction by grouping road ends with a polygon. Toggles mode on/off.')
im.SameLine()
im.NextColumn()
im.tooltip('Include sidewalks.')
im.SameLine()
im.NextColumn()
im.Text("Edge Blending")
im.SameLine()
im.NextColumn()
im.tooltip('Select a new material for the edge blending.')
im.SameLine()
im.NextColumn()
im.tooltip('The Y1-Exit will be outwards-pointing (checked), or inwards-pointing (unchecked).')
im.SameLine()
im.NextColumn()
im.tooltip('Include sidewalks.')
im.SameLine()
im.NextColumn()
im.tooltip('Include a pedestrian cross on road 1.')
im.SameLine()
im.NextColumn()
im.tooltip('Include a pedestrian cross on road 2.')
im.SameLine()
im.NextColumn()
im.tooltip('Include a pedestrian cross on road 3.')
im.SameLine()
im.NextColumn()
im.tooltip('Include arrow decals on all roads approaching the junction.')
im.SameLine()
im.NextColumn()
im.Text('Material')
im.SameLine()
im.NextColumn()
im.tooltip('Select a new material for the arrows.')
im.SameLine()
im.NextColumn()
im.Text("Edge Blending")
im.SameLine()
im.NextColumn()
im.tooltip('Select a new material for the edge blending.')
im.SameLine()
im.NextColumn()
im.tooltip('Include sidewalks.')
im.SameLine()
im.NextColumn()
im.tooltip('Include a pedestrian cross on road 1.')
im.SameLine()
im.NextColumn()
im.tooltip('Include a pedestrian cross on road 2.')
im.SameLine()
im.NextColumn()
im.tooltip('Include arrow decals on all roads approaching the junction.')
im.SameLine()
im.NextColumn()
im.Text('Material')
im.SameLine()
im.NextColumn()
im.tooltip('Select a new material for the arrows.')
im.SameLine()
im.NextColumn()
im.Text("Edge Blending")
im.SameLine()
im.NextColumn()
im.tooltip('Select a new material for the edge blending.')
im.SameLine()
im.NextColumn()
im.tooltip('Include a pedestrian cross on road 1.')
im.SameLine()
im.NextColumn()
im.tooltip('Include a pedestrian cross on road 2.')
im.SameLine()
im.NextColumn()
im.tooltip('Include arrow decals on all roads approaching the junction.')
im.SameLine()
im.NextColumn()
im.Text('Material')
im.SameLine()
im.NextColumn()
im.tooltip('Select a new material for the arrows.')
im.SameLine()
im.NextColumn()
im.Text("Edge Blending")
im.SameLine()
im.NextColumn()
im.tooltip('Select a new material for the edge blending.')
im.SameLine()
im.NextColumn()
im.tooltip('Include sidewalks.')
im.SameLine()
im.NextColumn()
im.tooltip('Include a pedestrian cross on road 1.')
im.SameLine()
im.NextColumn()
im.tooltip('Include a pedestrian cross on road 2.')
im.SameLine()
im.NextColumn()
im.tooltip('Include a pedestrian cross on road 3.')
im.SameLine()
im.NextColumn()
im.tooltip('Include arrow decals on all roads approaching the junction.')
im.SameLine()
im.NextColumn()
im.Text('Material')
im.SameLine()
im.NextColumn()
im.tooltip('Select a new material for the arrows.')
im.SameLine()
im.NextColumn()
im.Text("Edge Blending")
im.SameLine()
im.NextColumn()
im.tooltip('Select a new material for the edge blending.')
im.SameLine()
im.NextColumn()
im.tooltip('Use a one-way road for the Y direction roads.')
im.SameLine()
im.NextColumn()
im.Text("Edge Blending")
im.SameLine()
im.NextColumn()
im.tooltip('Select a new material for the edge blending.')
im.SameLine()
im.NextColumn()
im.Text("Edge Blending")
im.SameLine()
im.NextColumn()
im.tooltip('Select a new material for the edge blending.')
im.SameLine()
im.NextColumn()
im.tooltip('Include inner crash barriers.')
im.SameLine()
im.NextColumn()
im.Text("Edge Blending")
im.SameLine()
im.NextColumn()
im.tooltip('Select a new material for the edge blending.')
im.SameLine()
im.NextColumn()
im.tooltip('Include inner crash barriers.')
im.SameLine()
im.NextColumn()
im.Text("Edge Blending")
im.SameLine()
im.NextColumn()
im.tooltip('Select a new material for the edge blending.')
im.SameLine()
im.NextColumn()
im.tooltip('Include inner crash barriers.')
im.SameLine()
im.NextColumn()
im.Text("Edge Blending")
im.SameLine()
im.NextColumn()
im.tooltip('Select a new material for the edge blending.')
im.SameLine()
im.NextColumn()
im.Text("Edge Blending")
im.SameLine()
im.NextColumn()
im.tooltip('Select a new material for the edge blending.')
im.SameLine()
im.NextColumn()
im.Text("Edge Blending")
im.SameLine()
im.NextColumn()
im.tooltip('Select a new material for the edge blending.')
im.SameLine()
im.NextColumn()
wCtr = wCtr + 1
im.SameLine()
im.NextColumn()
wCtr = wCtr + 1
im.SameLine()
im.NextColumn()
im.tooltip('Soft delete - removes this group from the session, but NOT the roads inside the group.')
im.SameLine()
im.NextColumn()
im.tooltip('Hard delete - removes this group from the session, AND the roads inside it.')
im.SameLine()
im.NextColumn()
im.tooltip('Create a new template profile from the current profile of this road (will appear in templates list, and can be saved from there).')
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
im.Dummy(vec36)
im.SameLine()
im.NextColumn()
im.Dummy(vec36)
im.SameLine()
im.NextColumn()
im.tooltip('Terraform the terrain to the selected group.')
im.SameLine()
im.NextColumn()
im.tooltip('Show the proposed terraforming range on the map, for the selected group.')
im.SameLine()
im.Dummy(vec36)
end
im.SameLine()
im.NextColumn()
im.Text(laneType)
im.SameLine()
im.NextColumn()
im.tooltip('Sets the width of this lane.')
im.SameLine()
im.NextColumn()
im.tooltip('Sets the relative height of the left edge of this lane (height above base).')
im.SameLine()
im.NextColumn()
im.tooltip('Sets the relative height of the right edge of this lane (height above base).')
im.SameLine()
im.Separator()
end
im.SameLine()
im.NextColumn()
im.Text(laneType)
im.SameLine()
im.NextColumn()
im.tooltip('Sets the width of this lane.')
im.SameLine()
im.NextColumn()
im.tooltip('Sets the relative height of the left edge of this lane (height above base).')
im.SameLine()
im.NextColumn()
im.tooltip('Sets the relative height of the right edge of this lane (height above base).')
im.SameLine()
im.Separator()
im.tooltip('The elevation at the node, in meters.')
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
else
im.SameLine()
im.NextColumn()
im.NextColumn()
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
wCtr = wCtr + 1
im.SameLine()
im.NextColumn()
im.SameLine()
im.NextColumn()
im.tooltip('Select/apply this profile to the selected road.')
im.SameLine()
im.NextColumn()
im.tooltip('Edit this template profile (opens edit window), before applying it to a road.')
im.SameLine()
im.NextColumn()
im.tooltip('Save this profile template to disk.')
im.SameLine()
im.NextColumn()
im.tooltip('Load a profile from disk.')
im.SameLine()
im.NextColumn()
im.tooltip('The lane index (-ve for left lanes, +ve for right lanes).')
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
im.tooltip('Add a new lane above this lane.')
im.SameLine()
im.NextColumn()
im.tooltip('Add a new lane below this lane.')
im.SameLine()
im.NextColumn()
im.tooltip('Cycle back through available lane types.')
im.SameLine()
im.NextColumn()
im.tooltip('The lane type.')
im.SameLine()
im.NextColumn()
im.tooltip('Cycle forward through available lane types.')
im.SameLine()
im.NextColumn()
im.PopItemWidth()
im.SameLine()
im.NextColumn()
im.PopItemWidth()
im.SameLine()
im.NextColumn()
im.PopItemWidth()
im.SameLine()
im.Separator()
im.tooltip('The lane index.')
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
im.tooltip('Add a new lane above this lane.')
im.SameLine()
im.NextColumn()
im.tooltip('Add a new lane below this lane.')
im.SameLine()
im.NextColumn()
im.tooltip('Cycle back through available lane types.')
im.SameLine()
im.NextColumn()
im.tooltip('The lane type.')
im.SameLine()
im.NextColumn()
im.tooltip('Cycle forward through available lane types.')
im.SameLine()
im.NextColumn()
im.PopItemWidth()
im.SameLine()
im.NextColumn()
im.PopItemWidth()
im.SameLine()
im.NextColumn()
im.PopItemWidth()
im.SameLine()
im.Separator()
im.PopID()
im.SameLine()
if editor.beginWindow(win.materialSelectWinName, "Material Selector###82", im.WindowFlags_NoCollapse) then
end
im.SameLine()
end
end
im.SameLine()
im.NextColumn()
im.tooltip('Place this group template in the session.')
im.SameLine()
im.NextColumn()
im.tooltip('Load a group template from disk.')
im.SameLine()
im.NextColumn()
@/lua/ge/extensions/editor/particleEditor.lua
end
im.SameLine()
if editor.uiIconImageButton(editor.icons.add_circle, im.ImVec2(22 * im.uiscale[0], 22 * im.uiscale[0]), nil, nil, nil) then
im.SameLine()
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 editor.uiIconImageButton(editor.icons.material_save_all, im.ImVec2(22 * im.uiscale[0], 22 * im.uiscale[0]), nil, nil, nil) then
im.SameLine()
local disabled = false
im.SameLine()
local disabled = false
if disabled then im.EndDisabled() disabled = false end
im.SameLine()
if not currentParticle then im.BeginDisabled() disabled = true end
if disabled then im.EndDisabled() disabled = false end
im.SameLine()
if not currentParticle or particleCount <= 1 then im.BeginDisabled() disabled = true end
end
im.SameLine()
if im.Button("No") then
end
im.SameLine()
if im.Button("Cancel") then
end
im.SameLine()
if im.Button("No") then
end
im.SameLine()
if im.Button("Cancel") then
if not disabled then
im.SameLine()
if editor.uiIconImageButton(editor.icons.add_circle, im.ImVec2(22 * im.uiscale[0], 22 * im.uiscale[0]), nil, nil, nil) then
if particleNames[i] then
im.SameLine()
if editor.uiIconImageButton(editor.icons.remove_circle, im.ImVec2(22 * im.uiscale[0], 22 * im.uiscale[0]), nil, nil, nil) then
im.SameLine()
local imText = im.ArrayChar(2048, fieldValue)
@/lua/ge/extensions/flowgraph/nodes/util/customLua.lua
end
im.SameLine()
end
im.SameLine()
im.Text(code)
@/lua/ge/extensions/editor/raceEditor/pacenotes.lua
im.SameLine()
im.BeginChild1("currentPacenote", im.ImVec2(0, 0 ), im.WindowFlags_ChildWindow)
im.Text("Current Pacenote: #" .. self.index)
im.SameLine()
if im.Button("Delete") then
end
im.SameLine()
if im.Button("Move Up") then
end
im.SameLine()
if im.Button("Move Down") then
@/lua/ge/extensions/editor/raceEditor/timeTrials.lua
self:displayClassification(classification, "Reversible: ", 'reversible', "If this track can be reversed. Possible if both the Default Starting Position\nand Reverse Starting Positions are set, as well as the End Node for open tracks.")
im.SameLine()
self:displayClassification(classification, "Rolling Start: ", 'allowRollingStart', "If this track can be started from from a distance. Possible if Rolling Start Position is set.\nIf the track is reversible, also Reverse Rolling Start has to be set.")
self:displayClassification(classification, "Rolling Start: ", 'allowRollingStart', "If this track can be started from from a distance. Possible if Rolling Start Position is set.\nIf the track is reversible, also Reverse Rolling Start has to be set.")
im.SameLine()
im.Text("Preview:")
im.Text("Preview:")
im.SameLine()
local hovered = false
function C:displayClassification(classification, name, field, tt)
im.Text(name) im.SameLine() im.tooltip(tt or "")
if classification[field] then
editor.uiInputText("##prefab"..default..fieldName, im.ArrayChar(1024,default), 1024) im.tooltip("This Prefab is always loaded automatically if existing.")
im.SameLine() self:existsIcon(default, true)
end
im.SameLine()
im.PushItemWidth(200)
end
im.SameLine()
if im.Button(" ... ##prefab"..i) then
end
im.SameLine()
self:existsIcon(list[i])
@/lua/ge/extensions/flowgraph/nodes/gameplay/rally/countdownSynced.lua
im.Dummy(im.ImVec2((avail.x-tWidth.x)/2 -10,0))
im.SameLine()
end
im.Dummy(im.ImVec2((avail.x-tWidth.x)/2 -10,0))
im.SameLine()
end
@/lua/ge/extensions/editor/trafficSignalsEditor.lua
end
im.SameLine()
if im.Button("Remove##ctrlDefinitionTypes") then
if i == currData.defaultIndex then
im.SameLine()
editor.uiIconImage(editor.icons.star, iconVec, imColors.warning)
end
im.SameLine()
if im.Button("Remove##ctrlDefinitionStates") then
end
im.SameLine()
if im.Button("Delete##sequencePhase") then
end
im.SameLine()
end
im.PopItemWidth()
im.SameLine()
local iconColor = signalCtrlDefinitions.signalColors[currData.flashingLights[selected.flashingLight][i]]
end
im.SameLine()
if im.Button("Discard & Close##ctrlDefinitions") then
im.EndChild()
im.SameLine()
im.TextUnformatted("Current Signal: "..currInstance.name.." ["..currInstance.id.."]")
im.SameLine()
if im.Button("Delete##instance") then
if not elements[currInstance.sequenceId] then
im.SameLine()
editor.uiIconImage(editor.icons.error_outline, iconVec, imColors.error)
if not elements[currInstance.controllerId] then
im.SameLine()
editor.uiIconImage(editor.icons.error_outline, iconVec, imColors.error)
im.SameLine()
im.Button("?")
im.SameLine()
im.Button("?")
im.SameLine()
im.tooltip("Apply the dynamic field [signalInstance] to objects in this selection.")
im.SameLine()
im.EndChild()
im.SameLine()
im.SameLine()
if im.Button("Delete##controller") then
im.SameLine()
im.Button("?")
if state.duration < 0 then
im.SameLine()
im.TextColored(imColors.warning, "Infinite duration")
im.EndChild()
im.SameLine()
im.SameLine()
if im.Button("Delete##sequence") then
im.SameLine()
im.Button("?")
end
im.SameLine()
if im.Button("Delete##sequencePhase") then
if j == 1 then
im.SameLine()
if im.Button(" - ##phaseControllerIds"..i.."_"..j) then
im.tooltip("Remove Controller from Phase")
im.SameLine()
if im.Button(" + ##phaseControllerIds"..i.."_"..j) then
end
im.SameLine()
if editor.uiIconImageButton(editor.icons.stop, buttonVec) then
if not be:getEnabled() then
im.SameLine()
im.TextColored(imColors.warning, "Main simulation is currently paused.")
end
im.SameLine()
if editor.uiIconImageButton(editor.icons.skip_next, iconVec) then
if timedTexts.save then
im.SameLine()
im.TextColored(imColors.warning, timedTexts.save[1])
if timedTexts.renameObjects then
im.SameLine()
im.TextColored(imColors.warning, timedTexts.renameObjects[1])
if timedTexts.signalsValid then
im.SameLine()
im.TextColored(imColors.warning, timedTexts.signalsValid[1])
if timedTexts.signalsInvalid then
im.SameLine()
im.TextColored(imColors.error, timedTexts.signalsInvalid[1])
end
im.SameLine()
if im.Button("NO", im.ImVec2(inputWidth, 20 * im.uiscale[0])) then
@/lua/ge/extensions/editor/suspensionAudioDebug.lua
im.Text("Position: ")
im.SameLine()
im.Text(tostring(val.position))
im.Text("Stress Impulse")
im.SameLine()
imguiUtils.SampleFloatDisplay('impulse' ..i, val.impulse, 0.05, 3)
im.Text("Pitch")
im.SameLine()
imguiUtils.SampleFloatDisplay('pitch' ..i, val.pitch, 0.05, 3)
im.Text("Volume")
im.SameLine()
imguiUtils.SampleFloatDisplay('volume' ..i, val.volume, 0.05, 3)
@/lua/ge/extensions/editor/visualization.lua
end
local function _bullet(text) im.Bullet(); im.SameLine(); im.TextUnformatted(text) end
im.ColorButton("##"..label, im.ImVec4(rgb[1], rgb[2], rgb[3], 1), im.flags(im.ColorEditFlags_NoTooltip), vec2(_uiScale(18), _uiScale(18)))
im.SameLine()
im.TextUnformatted(label)
im.TextUnformatted(left)
im.SameLine()
local avail = im.GetContentRegionAvailWidth()
im.Dummy(vec2(math.max(1, avail - im.CalcTextSize(right).x - _uiScale(6)), 1))
im.SameLine()
im.TextUnformatted(right)
local prefWindowCurrWidth = im.GetContentRegionAvailWidth();
im.SameLine(prefWindowCurrWidth - 133 * im.uiscale[0])
if im.Button("Reset To Defaults") then
end
im.SameLine()
if im.Button("No", im.ImVec2(120,0)) then im.CloseCurrentPopup() end
im.Text("Filter Types:")
im.SameLine()
im.PushID1("VizSearchFilter")
@/lua/ge/extensions/util/vehicleRopeDebug.lua
end
im.SameLine()
im.Text("Anchor A")
end
im.SameLine()
im.Text("Anchor B")
if im.IsItemHovered() then im.SetTooltip("Fix/unfix anchor A") end
im.SameLine()
if im.Checkbox("Fixed B", uiPtrs.anchorBFixed) then
if uiPtrs.useBending[0] then
im.SameLine()
im.SetNextItemWidth(200)
end
im.SameLine()
im.Text("Bend Stiffness")
im.SameLine()
im.SetNextItemWidth(120)
end
im.SameLine()
im.Text("Segments")
if uiPtrs.useStrainLimit[0] then
im.SameLine()
im.SetNextItemWidth(200)
end
im.SameLine()
im.Text("Max Strain")
@/lua/ge/extensions/core/metrics.lua
im.SameLine()
im.PushStyleColor2(im.Col_Button, im.GetStyleColorVec4(im.Col_ButtonHovered))
@/lua/ge/extensions/editor/dragRaceEditor/strips.lua
im.Text("Strips:")
im.SameLine()
if im.Button("Add##strips_add") then
end
im.SameLine()
if im.Button("Remove##strips_remove") then
end
im.SameLine()
if im.Button("Save##strips_save") then
end
im.SameLine()
if im.Button("Refresh##strips_refresh") then
im.Text("ID: ")
im.SameLine()
local id = im.ArrayChar(256, strip.id or "")
im.Text("Name: ")
im.SameLine()
local name = im.ArrayChar(256, strip.name or "")
im.Text("Description: ")
im.SameLine()
local description = im.ArrayChar(512, strip.description or "")
im.SameLine()
if im.Button("Remove Selected Lane") then
im.Text("ID: ")
im.SameLine()
local id = im.ArrayChar(256, lane.id or "")
im.Text("Name: ")
im.SameLine()
local name = im.ArrayChar(256, lane.name or "")
im.Text("Short Name: ")
im.SameLine()
local shortName = im.ArrayChar(256, lane.shortName or "")
im.Text("Long Name: ")
im.SameLine()
local longName = im.ArrayChar(256, lane.longName or "")
im.Text("Color: ")
im.SameLine()
im.PushItemWidth(100)
im.Text("Lane Order: ")
im.SameLine()
local laneOrder = im.IntPtr(lane.laneOrder or 1)
im.SameLine()
if im.Button("Remove Selected Waypoint") then
im.Text("Type: ")
im.SameLine()
im.PushItemWidth(100)
im.SameLine()
if im.Button("Focus Camera") then
im.SameLine()
if im.Button("Remove Boundary") then
im.Text("ID: ")
im.SameLine()
local boundaryId = im.ArrayChar(256, lane.boundary.id or "")
im.Text("Name: ")
im.SameLine()
local boundaryName = im.ArrayChar(256, lane.boundary.name or "")
im.Text("Description: ")
im.SameLine()
local boundaryDescription = im.ArrayChar(512, lane.boundary.description or "")
im.SameLine()
if im.Button("Focus Camera") then
else
im.SameLine()
if im.Button("Add Boundary") then
@/lua/ge/extensions/editor/rallyEditor/notebookInfo.lua
im.SameLine()
im.BeginChild1("currentCodriver", im.ImVec2(0,tabContentsHeight), im.WindowFlags_ChildWindow)
if isLastCodriver then
im.SameLine()
if im.Button("Delete Codriver and Pacenotes") then
end
im.SameLine()
if im.Button("Cancel", im.ImVec2(120,0)) then
end
im.SameLine()
if im.Button("Delete") then
@/lua/ge/extensions/editor/crawlEditor/boundaries.lua
im.Text("File Name")
im.SameLine()
if im.Button("Rename") then
im.Text("Vertices:")
im.SameLine()
if im.Button("Add Vertex") then
im.SameLine()
if im.Button("Remove Selected") then
im.SameLine()
if im.Button("High Res Fence") then
if boundary.top.active then
im.SameLine()
im.Text("Height: " .. string.format("%.2f", boundary.top.pos.z))
if boundary.bot.active then
im.SameLine()
im.Text("Height: " .. string.format("%.2f", boundary.bot.pos.z))
end
im.SameLine()
if im.SmallButton("X##"..i) then
end
im.SameLine()
if im.Button("New Number") then
im.tooltip("Copies the custom fields of this object to use for other objects.")
im.SameLine()
if not self.cfData then
@/lua/ge/extensions/career/modules/fuel.lua
end
imgui.SameLine()
if imgui.Button(string.format("Stop Fueling %s ##%d", energyType, i)) then
@/lua/ge/extensions/editor/biomeTool.lua
imgui.BeginChild1("LayerActionsPanel"..layer.layerType..layer.layerID, imgui.ImVec2(imgui.GetContentRegionAvail().x, 40 * imgui.uiscale[0]), nil)
imgui.SameLine()
imgui.Text("Layer Name:")
imgui.SameLine()
imgui.SetCursorPosX(posX + textSize + 5)
editor.uiInputText('##LayerName'..layerType..layerID, editor.getTempCharPtr(layer.layerName), nil, imgui.InputTextFlags_ReadOnly)
imgui.SameLine()
imgui.SetCursorPosX(panelWidth - 180)
imgui.Text("Blending Method:")
imgui.SameLine()
imgui.SetCursorPosX(posX + textSize + 5)
imgui.Text("Layer Material:")
imgui.SameLine()
imgui.SetCursorPosX(posX + textSize + 5)
imgui.Text("Layer Mask:")
imgui.SameLine()
imgui.SetCursorPosX(posX + textSize + 5)
end
imgui.SameLine()
if editor.uiIconImageButton(
end
imgui.SameLine()
if imgui.Button("Clear", imgui.ImVec2(40, 30)) then
local brushName = tableIsEmpty(brush) and "None" or brush[1]
imgui.SameLine()
imgui.SetCursorPosX(posX + textSize + 5)
editor.uiIconImage(editor.icons.forest_brushelement, imgui.ImVec2(math.ceil(imgui.GetFontSize()), math.ceil(imgui.GetFontSize())))
imgui.SameLine()
local textPos = imgui.GetCursorPos()
imgui.SameLine()
if imgui.Button("Select Brush##Central", imgui.ImVec2(100, 30)) then
if not shouldWrap then
imgui.SameLine()
end
imgui.Text("Density:")
imgui.SameLine()
if shouldWrap then
local borderBrushName = tableIsEmpty(borderBrush) and "None" or borderBrush[1]
imgui.SameLine()
imgui.SetCursorPosX(posX + textSize + 5)
editor.uiIconImage(editor.icons.forest_brushelement, imgui.ImVec2(math.ceil(imgui.GetFontSize()), math.ceil(imgui.GetFontSize())))
imgui.SameLine()
local textPos = imgui.GetCursorPos()
imgui.SameLine()
if imgui.Button("Select Brush##Falloff", imgui.ImVec2(100, 30)) then
editor.uiIconImage(editor.icons.forest_brushelement, imgui.ImVec2(math.ceil(imgui.GetFontSize()), math.ceil(imgui.GetFontSize())))
imgui.SameLine()
local textPos = imgui.GetCursorPos()
editor.uiIconImage(editor.icons.forest_brushelement, imgui.ImVec2(math.ceil(imgui.GetFontSize()), math.ceil(imgui.GetFontSize())))
imgui.SameLine()
local textPos = imgui.GetCursorPos()
end
imgui.SameLine()
if imgui.Button("Cancel") then
editor.uiIconImage(editor.icons.forest_brushelement, imgui.ImVec2(math.ceil(imgui.GetFontSize()), math.ceil(imgui.GetFontSize())))
imgui.SameLine()
local textPos = imgui.GetCursorPos()
editor.uiIconImage(editor.icons.forest_brushelement, imgui.ImVec2(math.ceil(imgui.GetFontSize()), math.ceil(imgui.GetFontSize())))
imgui.SameLine()
local textPos = imgui.GetCursorPos()
end
imgui.SameLine()
if imgui.Button("Cancel") then
if not shouldWrap then
imgui.SameLine()
end
local borderBrush = "Oak Trees"
imgui.SameLine()
if not shouldWrap then
imgui.SameLine()
imgui.SetCursorPosX(imgui.GetCursorPos().x + 20)
imgui.Text("Border Width:")
imgui.SameLine()
imgui.SetCursorPosX(imgui.GetCursorPos().x + 5)
imgui.Text("Slope Influence:")
imgui.SameLine()
imgui.SetCursorPosX(posX + textSize + 5)
imgui.SameLine()
local tempBoolPtr = imgui.BoolPtr(true)
imgui.Text("Place Field:")
imgui.SameLine()
var.fieldPlacementBoolPtr[0] = getFieldPlacement(layerType, layerID)
imgui.Text("Item Distance:")
imgui.SameLine()
imgui.SetCursorPosX(posX + textSize + 5)
imgui.Text("Row Distance:")
imgui.SameLine()
imgui.SetCursorPosX(posX + textSize + 5)
imgui.Text("Row Orientation:")
imgui.SameLine()
imgui.SetCursorPosX(posX + textSize + 5)
imgui.Text("Place Edges:")
imgui.SameLine()
local borderBrushName = tableIsEmpty(borderBrush) and "None" or borderBrush[1]
imgui.SameLine()
editor.uiIconImage(editor.icons.forest_brushelement, imgui.ImVec2(math.ceil(imgui.GetFontSize()), math.ceil(imgui.GetFontSize())))
imgui.SameLine()
local textPos = imgui.GetCursorPos()
editor.uiIconImage(editor.icons.forest_brushelement, imgui.ImVec2(math.ceil(imgui.GetFontSize()), math.ceil(imgui.GetFontSize())))
imgui.SameLine()
local textPos = imgui.GetCursorPos()
editor.uiIconImage(editor.icons.forest_brushelement, imgui.ImVec2(math.ceil(imgui.GetFontSize()), math.ceil(imgui.GetFontSize())))
imgui.SameLine()
local textPos = imgui.GetCursorPos()
end
imgui.SameLine()
if imgui.Button("Cancel") then
imgui.SameLine()
if imgui.Button("Select Brush##Edge", imgui.ImVec2(100, 30)) then
imgui.Text("Item Distance:")
imgui.SameLine()
imgui.SetCursorPosX(firstWidgetPos)
imgui.Text("Random Tilt:")
imgui.SameLine()
imgui.SetCursorPosX(firstWidgetPos)
imgui.Text("Border Falloff:")
imgui.SameLine()
imgui.SetCursorPosX(firstWidgetPos)
--imgui.EndDisabled()
imgui.SameLine()
imgui.Dummy(imgui.ImVec2(5,1))
imgui.Dummy(imgui.ImVec2(5,1))
imgui.SameLine()
end
imgui.SameLine()
if imgui.Button("OK") then
end
imgui.SameLine()
imgui.Dummy(imgui.ImVec2(20,1))
imgui.Dummy(imgui.ImVec2(20,1))
imgui.SameLine()
if imgui.Button("Add Exclusion Zone", buttonSize) then
imgui.SameLine()
imgui.SameLine()
if imgui.Button("Delete Layer", buttonSize) then
end
imgui.SameLine()
if imgui.Button("OK") then
imgui.Dummy(imgui.ImVec2(10,1))
imgui.SameLine()
local widgetStartPosX = imgui.GetCursorPosX()
imgui.Text("Layer Brush:")
imgui.SameLine()
imgui.SetNextItemWidth(150)
imgui.EndDisabled()
imgui.SameLine()
imgui.Dummy(imgui.ImVec2(10,1))
imgui.Dummy(imgui.ImVec2(10,1))
imgui.SameLine()
imgui.Text("Brush Density:")
imgui.Text("Brush Density:")
imgui.SameLine()
imgui.SetNextItemWidth(150)
if not shouldWrap then
imgui.SameLine()
else
imgui.Text("Area Count:")
imgui.SameLine()
imgui.SetNextItemWidth(150)
end
imgui.SameLine()
if imgui.Button("Undo", buttonSize) then
end
imgui.SameLine()
if imgui.Button("Redo", buttonSize) then
end
imgui.SameLine()
if imgui.Button("Undo", buttonSize) then
end
imgui.SameLine()
if imgui.Button("Redo", buttonSize) then
end
imgui.SameLine()
imgui.Text("levelPath")
imgui.Text("levelPath")
imgui.SameLine()
imgui.Text("LevelName")
imgui.Text("LevelName")
imgui.SameLine()
if imgui.Button("Save", buttonSize) then
end
imgui.SameLine()
if imgui.Button("Exit", buttonSize) then
@/lua/ge/extensions/editor/sensorConfigurationEditor.lua
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
im.tooltip('Go to the selected vehicle.')
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
im.tooltip('Remove this sensor from the configuration.')
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
im.tooltip('Add a Camera Sensor to the configuration.')
im.SameLine()
im.tooltip('Add a LiDAR Sensor to the configuration.')
im.SameLine()
im.tooltip('Add an Ultrasonic Sensor to the configuration.')
im.SameLine()
im.tooltip('Add a RADAR Sensor to the configuration.')
im.SameLine()
im.tooltip('Add an IMU Sensor to the configuration.')
im.SameLine()
im.tooltip('Add an Ideal RADAR Sensor to the configuration (only one per vehicle).')
im.SameLine()
im.tooltip('Add a Roads Sensor to the configuration (only one per vehicle).')
im.SameLine()
im.tooltip('Add a Powertrain Sensor to the configuration (only one per vehicle).')
im.SameLine()
im.tooltip('Add a Mesh Sensor to the configuration (only one per vehicle).')
im.SameLine()
im.tooltip('Save the current sensor configuration, for this vehicle, to disk.')
im.SameLine()
end
im.SameLine()
end
im.SameLine()
if im.Button("Close popup") then
im.tooltip('Re-position sensor at the Center-Of-Gravity (with wheels included).')
im.SameLine()
if editor.uiIconImageButton(editor.icons.toCOM, sensorIcon, blueB, nil, nil, 'posCOGWithoutWheelsInc') then
im.tooltip('Re-position sensor at the Center-Of-Gravity (without wheels included).')
im.SameLine()
if editor.uiIconImageButton(editor.icons.frontAxleMidpoint, sensorIcon, blueB, nil, nil, 'posFrontAxleMid') then
im.tooltip('Re-position sensor at the front axle midpoint.')
im.SameLine()
if editor.uiIconImageButton(editor.icons.rearAxleMidpoint, sensorIcon, blueB, nil, nil, 'posRearAxleMid') then
im.tooltip('Re-position sensor at the rear axle midpoint.')
im.SameLine()
if editor.uiIconImageButton(editor.icons.frontBumperMidpoint, sensorIcon, blueB, nil, nil, 'posVehicleFront') then
im.tooltip('Re-position sensor at the vehicle front bumper midpoint.')
im.SameLine()
if editor.uiIconImageButton(editor.icons.rearBumperMidpoint, sensorIcon, blueB, nil, nil, 'posVehicleRear') then
im.tooltip("Set the LiDAR to operate in 'Full 360 Degrees' mode.")
im.SameLine()
local btnCol = blueB
im.tooltip("Set the LiDAR to operate in 'LFO' (low-frequency rotation) mode.")
im.SameLine()
local btnCol = blueB
im.tooltip("Set the LiDAR to operate in 'Static' (no rotation) mode.")
im.SameLine()
im.tooltip('Re-position sensor at the Center-Of-Gravity (with wheels included).')
im.SameLine()
if editor.uiIconImageButton(editor.icons.toCOM, sensorIcon, blueB, nil, nil, 'posCOGWithoutWheelsInc') then
im.tooltip('Re-position sensor at the Center-Of-Gravity (without wheels included).')
im.SameLine()
if editor.uiIconImageButton(editor.icons.frontAxleMidpoint, sensorIcon, blueB, nil, nil, 'posFrontAxleMid') then
im.tooltip('Re-position sensor at the front axle midpoint.')
im.SameLine()
if editor.uiIconImageButton(editor.icons.rearAxleMidpoint, sensorIcon, blueB, nil, nil, 'posRearAxleMid') then
im.tooltip('Re-position sensor at the rear axle midpoint.')
im.SameLine()
if editor.uiIconImageButton(editor.icons.frontBumperMidpoint, sensorIcon, blueB, nil, nil, 'posVehicleFront') then
im.tooltip('Re-position sensor at the vehicle front bumper midpoint.')
im.SameLine()
if editor.uiIconImageButton(editor.icons.rearBumperMidpoint, sensorIcon, blueB, nil, nil, 'posVehicleRear') then
im.tooltip('Re-position sensor at the Center-Of-Gravity (with wheels included).')
im.SameLine()
if editor.uiIconImageButton(editor.icons.toCOM, sensorIcon, blueB, nil, nil, 'posCOGWithoutWheelsInc') then
im.tooltip('Re-position sensor at the Center-Of-Gravity (without wheels included).')
im.SameLine()
if editor.uiIconImageButton(editor.icons.frontAxleMidpoint, sensorIcon, blueB, nil, nil, 'posFrontAxleMid') then
im.tooltip('Re-position sensor at the front axle midpoint.')
im.SameLine()
if editor.uiIconImageButton(editor.icons.rearAxleMidpoint, sensorIcon, blueB, nil, nil, 'posRearAxleMid') then
im.tooltip('Re-position sensor at the rear axle midpoint.')
im.SameLine()
if editor.uiIconImageButton(editor.icons.frontBumperMidpoint, sensorIcon, blueB, nil, nil, 'posVehicleFront') then
im.tooltip('Re-position sensor at the vehicle front bumper midpoint.')
im.SameLine()
if editor.uiIconImageButton(editor.icons.rearBumperMidpoint, sensorIcon, blueB, nil, nil, 'posVehicleRear') then
im.tooltip('Set preset beam shape: Triangular, 7m range.')
im.SameLine()
if editor.uiIconImageButton(editor.icons.thinBulbBeam, sensorIcon, blueB, nil, nil, 'usPreset2') then
im.tooltip('Set preset beam shape: Thin bulb, 8m range.')
im.SameLine()
if editor.uiIconImageButton(editor.icons.thinnerBulbBeam, sensorIcon, blueB, nil, nil, 'usPreset3') then
im.tooltip('Set preset beam shape: Ultra thin bulb, 8m range.')
im.SameLine()
if editor.uiIconImageButton(editor.icons.sphericalBeam, sensorIcon, blueB, nil, nil, 'usPreset4') then
im.tooltip('Set preset beam shape: Spherical, 5m range.')
im.SameLine()
if editor.uiIconImageButton(editor.icons.flatBulbBeam, sensorIcon, blueB, nil, nil, 'usPreset5') then
im.tooltip('Set preset beam shape: Flat head bulb, 5m range.')
im.SameLine()
if editor.uiIconImageButton(editor.icons.tulipBeam, sensorIcon, blueB, nil, nil, 'usPreset6') then
im.tooltip('Re-position sensor at the Center-Of-Gravity (with wheels included).')
im.SameLine()
if editor.uiIconImageButton(editor.icons.toCOM, sensorIcon, blueB, nil, nil, 'posCOGWithoutWheelsInc') then
im.tooltip('Re-position sensor at the Center-Of-Gravity (without wheels included).')
im.SameLine()
if editor.uiIconImageButton(editor.icons.frontAxleMidpoint, sensorIcon, blueB, nil, nil, 'posFrontAxleMid') then
im.tooltip('Re-position sensor at the front axle midpoint.')
im.SameLine()
if editor.uiIconImageButton(editor.icons.rearAxleMidpoint, sensorIcon, blueB, nil, nil, 'posRearAxleMid') then
im.tooltip('Re-position sensor at the rear axle midpoint.')
im.SameLine()
if editor.uiIconImageButton(editor.icons.frontBumperMidpoint, sensorIcon, blueB, nil, nil, 'posVehicleFront') then
im.tooltip('Re-position sensor at the vehicle front bumper midpoint.')
im.SameLine()
if editor.uiIconImageButton(editor.icons.rearBumperMidpoint, sensorIcon, blueB, nil, nil, 'posVehicleRear') then
im.tooltip('Set preset beam shape: Short Range (0.5m - 30m).')
im.SameLine()
if editor.uiIconImageButton(editor.icons.midRangeBeam1, sensorIcon, blueB, nil, nil, 'usPreset2') then
im.tooltip('Set preset beam shape: Medium Range (1m - 70m).')
im.SameLine()
if editor.uiIconImageButton(editor.icons.longRangeBeam1, sensorIcon, blueB, nil, nil, 'usPreset3') then
im.tooltip('Re-position sensor at the Center-Of-Gravity (with wheels included).')
im.SameLine()
if editor.uiIconImageButton(editor.icons.toCOM, sensorIcon, blueB, nil, nil, 'posCOGWithoutWheelsInc') then
im.tooltip('Re-position sensor at the Center-Of-Gravity (without wheels included).')
im.SameLine()
if editor.uiIconImageButton(editor.icons.frontAxleMidpoint, sensorIcon, blueB, nil, nil, 'posFrontAxleMid') then
im.tooltip('Re-position sensor at the front axle midpoint.')
im.SameLine()
if editor.uiIconImageButton(editor.icons.rearAxleMidpoint, sensorIcon, blueB, nil, nil, 'posRearAxleMid') then
im.tooltip('Re-position sensor at the rear axle midpoint.')
im.SameLine()
if editor.uiIconImageButton(editor.icons.frontBumperMidpoint, sensorIcon, blueB, nil, nil, 'posVehicleFront') then
im.tooltip('Re-position sensor at the vehicle front bumper midpoint.')
im.SameLine()
if editor.uiIconImageButton(editor.icons.rearBumperMidpoint, sensorIcon, blueB, nil, nil, 'posVehicleRear') then
im.tooltip('Re-position sensor at the Center-Of-Gravity (with wheels included).')
im.SameLine()
if editor.uiIconImageButton(editor.icons.toCOM, sensorIcon, blueB, nil, nil, 'posCOGWithoutWheelsInc') then
im.tooltip('Re-position sensor at the Center-Of-Gravity (without wheels included).')
im.SameLine()
if editor.uiIconImageButton(editor.icons.frontAxleMidpoint, sensorIcon, blueB, nil, nil, 'posFrontAxleMid') then
im.tooltip('Re-position sensor at the front axle midpoint.')
im.SameLine()
if editor.uiIconImageButton(editor.icons.rearAxleMidpoint, sensorIcon, blueB, nil, nil, 'posRearAxleMid') then
im.tooltip('Re-position sensor at the rear axle midpoint.')
im.SameLine()
if editor.uiIconImageButton(editor.icons.frontBumperMidpoint, sensorIcon, blueB, nil, nil, 'posVehicleFront') then
im.tooltip('Re-position sensor at the vehicle front bumper midpoint.')
im.SameLine()
if editor.uiIconImageButton(editor.icons.rearBumperMidpoint, sensorIcon, blueB, nil, nil, 'posVehicleRear') then
@/lua/ge/extensions/editor/preferences.lua
imgui.SameLine()
if imgui.Button("Import...") then
if imgui.IsItemHovered() then imgui.SetTooltip("Import the current category page preferences from a file (overwriting current values)") end
imgui.SameLine()
if imgui.Button("Yes", imgui.ImVec2(120,0)) then imgui.CloseCurrentPopup() editor.preferencesRegistry:resetToDefaults(catName) end
imgui.SameLine()
if imgui.Button("No", imgui.ImVec2(120,0)) then imgui.CloseCurrentPopup() end
imgui.EndChild()
imgui.SameLine()
local prefWindowCurrWidth = imgui.GetContentRegionAvailWidth();
imgui.SameLine(prefWindowCurrWidth - 150 * imgui.uiscale[0])
if imgui.Button("Reset All To Defaults") then
if imgui.Button("Yes", imgui.ImVec2(120,0)) then imgui.CloseCurrentPopup() editor.preferencesRegistry:resetToDefaults() end
imgui.SameLine()
if imgui.Button("No", imgui.ImVec2(120,0)) then imgui.CloseCurrentPopup() end
@/lua/ge/extensions/flowgraph/nodes/gameplay/rally/countdown.lua
im.Dummy(im.ImVec2((avail.x-tWidth.x)/2 -10,0))
im.SameLine()
end
@/lua/ge/extensions/editor/missionEditor/general.lua
end
im.SameLine()
if not self._titleTranslated then
end
im.SameLine()
if not self._descTranslated then
@/lua/ge/extensions/render/openxr.lua
end
im.SameLine()
if im.Button("Center (ctrl+numpad5)##openXRcenter") then
changed = im.Checkbox("Display user interface (CEF)", M.openXRuiEnabled) or changed
im.Text(" ") im.SameLine()
--changed = im.Combo2("Anchor##openXRuiMode", M.openXRuiMode, "Room\0Head\0Vehicle (NI)\0Level (NI)\0") or changed -- hide not implemented modes for now
@/lua/ge/extensions/editor/scriptAIManager.lua
--im.RadioButton2("none", graphType, 0)
--im.SameLine()
--im.RadioButton2("Position error", graphType, 1)
im.SameLine()
im.SetItemDefaultFocus()
im.SameLine()
if im.Button('Cancel') then im.CloseCurrentPopup() end
if recordings[vehId] then
im.SameLine()
if editor.uiIconImageButton(editor.icons.play_arrow, im.ImVec2(24,24), nil, nil, nil, 'play'..vehId) then
im.tooltip('Stop Recording')
im.SameLine()
elseif vehState[vehId] == 'playing' then
im.tooltip('Restart Replay')
im.SameLine()
if editor.uiIconImageButton(editor.icons.stop, im.ImVec2(24,24), nil, nil, nil, 'stopPlay'..vehId) then
if recordings[vehId] then
im.SameLine()
if editor.uiIconImageButton(editor.icons.save, im.ImVec2(24,24), nil, nil, nil, 'saverecord'..vehId) then
end
im.SameLine()
if editor.uiIconImageButton(editor.icons.folder_open, im.ImVec2(24,24), nil, nil, nil, 'loadrecord'..vehId) then
im.SameLine()
if im.Button('More##'..vehId) then
end
im.SameLine()
im.tooltip('Restart when recording reaches the end')
im.SameLine()
im.Checkbox('Debug##debug'..vehId, displayDebugBoolPtr[vehId])
end
im.SameLine()
if FS:fileExists(persistenceFilename) and im.SmallButton("load") then
im.Text('Debug: ')
im.SameLine()
if im.Checkbox("Fast forward", fastForward) then
end
im.SameLine()
im.Checkbox("Display IDs", debugDisplay)
im.tooltip('Display ID above the vehicle')
im.SameLine()
im.Checkbox("Display Path", debugPath)
@/lua/ge/extensions/editor/terrainEditor.lua
if selectedPaintMaterialProxy and editor.beginModalWindow("autoPaintModal", "Auto Paint " .. selectedPaintMaterialProxy.internalName) then
im.TextUnformatted("Generate") im.SameLine()
im.TextColored(editor.color.warning.Value, selectedPaintMaterialProxy.internalName) im.SameLine()
im.TextUnformatted("Generate") im.SameLine()
im.TextColored(editor.color.warning.Value, selectedPaintMaterialProxy.internalName) im.SameLine()
im.TextUnformatted("layer mask.")
end
im.SameLine()
if im.Button("Auto Paint##doAutoPaint") then
end
im.SameLine()
end
im.SameLine()
if editor.uiIconImageButton(editor.icons.delete, im.ImVec2(btnHeight, btnHeight)) then
end
im.SameLine()
im.SetCursorPosX(autoPaintButtonPosX)
im.TextUnformatted("Terrain Name")
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth())
im.TextUnformatted("Meters per Pixel")
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth())
im.TextUnformatted("Max Height")
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth())
im.PopItemWidth()
im.SameLine()
if im.Button("...##HeightMapImage", im.ImVec2(var.inputWidgetHeight, var.inputWidgetHeight)) then
im.PopItemWidth()
im.SameLine()
if im.Button("...##HoleMapImage", im.ImVec2(var.inputWidgetHeight, var.inputWidgetHeight)) then
im.SameLine()
im.SetCursorPosX(im.GetCursorPosX() + im.GetContentRegionAvailWidth() - (var.channelComboWidth + var.materialComboWidth + var.style.ItemSpacing.x))
im.PopItemWidth()
im.SameLine()
im.PushItemWidth(var.channelComboWidth)
end
im.SameLine()
if im.Button("-##RemoveTextureMap", im.ImVec2(var.inputWidgetHeight, var.inputWidgetHeight)) then
im.TextUnformatted("Apply Transform")
im.SameLine()
im.Checkbox("##ApplyTransform", terrainImpExp.applyTransform)
im.TextUnformatted("Position")
im.SameLine()
local inputPosWidth = (im.GetContentRegionAvailWidth() - 2 * var.style.ItemInnerSpacing.x) / 3
end
im.SameLine()
if im.InputFloat("##transformPosY", terrainImpExp.transformPos.y) then
end
im.SameLine()
if im.InputFloat("##transformPosZ", terrainImpExp.transformPos.z) then
im.TextUnformatted("Flip Y Axis? (old exporter)")
im.SameLine()
im.Checkbox("##FlipYAxis", terrainImpExp.flipYAxis)
end
im.SameLine()
if im.Button("Cancel##ImportTerrainCancel", im.ImVec2(0, var.inputWidgetHeight)) then
im.PopItemWidth()
im.SameLine()
end
im.SameLine()
if editor.uiButtonRightAlign("Cancel", im.ImVec2(0, var.inputWidgetHeight), true, "ExportTerrainCancel") then
im.TextUnformatted(text)
im.SameLine()
local res = editor.uiSliderFloat(id, val, vmin, vmax, format, power, editEnded)
im.TextUnformatted(text)
im.SameLine()
local res = editor.uiInputFloat(id, val, step, stepFast, format, extra_flags, editEnded)
if im.IsItemHovered() then im.tooltip(brushType.tooltip) end
if sameLine == true then im.SameLine() end
end
end
im.SameLine()
end
end
im.SameLine()
if sliderFloat("Pressure", "##brush pressure", getTempFloat(editor.getPreference("terrainEditor.general.brushPressure")), var.brushPressureMin, var.brushPressureMax, "%.2f", nil, editEndedBrushPressure, setBrushPressure, "Brush Pressure") then
end
im.SameLine()
im.SameLine()
if sliderFloat("Softness", "##brush softness", getTempFloat(editor.getPreference("terrainEditor.general.brushSoftness")), var.brushSoftnessMin, var.brushSoftnessMax, "%.2f", nil, editEndedBrushSoftness, setBrushSoftness, "Brush Softness") then
end
im.SameLine()
im.SetCursorPosY(im.GetCursorPosY() - 4)
im.tooltip("Changes the softness curve")
im.SameLine()
im.SetCursorPosY(im.GetCursorPosY() + 4)
-- terrain height picking icon
im.SameLine()
im.SetCursorPosY(im.GetCursorPosY() - 4)
im.SameLine()
im.TextUnformatted("Slope Mask")
im.TextUnformatted("Slope Mask")
im.SameLine()
if sliderFloat("Min", "##brushSlopeMaskMin", getTempFloat(editor.getPreference("terrainEditor.general.brushSlopeMaskMin")), 0, editor.getPreference("terrainEditor.general.brushSlopeMaskMax") - 0.1, "%.1f", nil, editEndedBrushSlopeMaskMin, setBrushSlopeMaskMin) then
end
im.SameLine()
if sliderFloat("Max", "##brushSlopeMaskMax", getTempFloat(editor.getPreference("terrainEditor.general.brushSlopeMaskMax")), editor.getPreference("terrainEditor.general.brushSlopeMaskMin") + 0.1, 90, "%.1f", nil, editEndedBrushSlopeMaskMax, setBrushSlopeMaskMax) then
local function brushSettingsSlider_terraforming()
im.SameLine()
im.TextUnformatted("Domain of Influence (m)")
im.SameLine()
local doiPref = editor.getPreference("terrainEditor.terraform.terraformDOI")
-- Margin.
im.SameLine()
im.TextUnformatted("Margin (m)")
im.TextUnformatted("Margin (m)")
im.SameLine()
local marginPref = editor.getPreference("terrainEditor.terraform.terraformMargin")
-- Falloff.
im.SameLine()
im.TextUnformatted("Falloff")
im.TextUnformatted("Falloff")
im.SameLine()
local falloffPref = editor.getPreference("terrainEditor.terraform.terraformFalloff")
-- Roughness (noise).
im.SameLine()
im.TextUnformatted("Roughness")
im.TextUnformatted("Roughness")
im.SameLine()
local roughnessPref = editor.getPreference("terrainEditor.terraform.terraformRoughness")
-- Scale (noise).
im.SameLine()
im.TextUnformatted("Scale")
im.TextUnformatted("Scale")
im.SameLine()
local scalePref = editor.getPreference("terrainEditor.terraform.terraformScale")
im.tooltip('Clear the current terraforming polygon.')
im.SameLine()
im.tooltip("Import Terrain")
im.SameLine()
@/lua/ge/extensions/editor/shapeEditor.lua
end
im.SameLine()
if not forceDetail[0] then
im.TextUnformatted(tostring(v.err))
im.SameLine()
else
if obj and obj.getClassName and obj:getClassName() == "TSStatic" then
im.SameLine()
if im.Button("Open in Shape Editor") then
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/veJBeamBeautifier.lua
end
im.SameLine()
if im.Button("Select File to Beautify") then
@/lua/ge/extensions/editor/flowgraph/execution.lua
ui_flowgraph_editor.tooltip(mgr.runningState == "running" and "Project Running" or "Project Stopped")
im.SameLine()
if mgr.hidden then
ui_flowgraph_editor.tooltip("This project is invisible. You can see it because you have Dev Mode enabled.")
im.SameLine()
end
ui_flowgraph_editor.tooltip("This project is transient. It cannot be saved.")
im.SameLine()
end
im.tooltip(tooltipText)
im.SameLine()
end
--ui_flowgraph_editor.tooltip("Start Project Execution")
im.SameLine()
if editor.uiIconImageButton(editor.icons.stop, im.ImVec2(20, 20)) then
ui_flowgraph_editor.tooltip("Start Project Execution")
im.SameLine()
if editor.uiIconImage(editor.icons.stop, im.ImVec2(20, 20)) then
end
--im.SameLine()
--if editor.uiIconImageButton(editor.icons.replay, im.ImVec2(20, 20)) then
--ui_flowgraph_editor.tooltip("Reset Manager")
im.SameLine()
if self.alone then
end
im.SameLine()
if editor.uiIconImageButton(editor.icons.close, im.ImVec2(20, 20)) then
ui_flowgraph_editor.tooltip("Start All Projects\n(Will apply mission variables if mission selected in Mission Editor)")
im.SameLine()
ui_flowgraph_editor.tooltip("Stop All Projects")
--im.SameLine()
@/lua/ge/extensions/gameplay/drift/drift.lua
im.Text(string.format("Drift smoothness : %0.2f", driftSmoothnessData and driftSmoothnessData.smoothness or 0))
im.SameLine()
if im.Button("Reset Drift Smoothness") then
@/lua/ge/extensions/flowgraph/nodes/math/math.lua
ui_flowgraph_editor.tooltip(dumps(pin.type))
im.SameLine()
im.Text(pin.pin .. " - " .. pin.description)
@/lua/ge/extensions/editor/missionEditor/layers.lua
im.HeaderText("Layers")
im.SameLine()
im.SetCursorPosY(im.GetCursorPosY()+8)
if i == 1 then im.EndDisabled() end
im.SameLine()
if i == #self.mission.layers then im.BeginDisabled() end
if i == #self.mission.layers then im.EndDisabled() end
im.SameLine()
end
im.SameLine()
if editor.uiIconImageButton(editor.icons.folder, imVec24x24) then
end
im.SameLine()
if layer.fixed then im.BeginDisabled() end
end
im.SameLine()
if editor.uiIconImageButton(editor.icons.delete_forever, imVec24x24) then
if layer.fixed then im.EndDisabled() end
im.SameLine()
if editor.uiIconImageButton(editor.icons.create_new_folder, imVec24x24) then
@/lua/ge/extensions/editor/missionPlaybook.lua
im.Text("Playing Mission: \"" ..translateLanguage(mission.name, mission.name, true).."\"")
im.SameLine()
im.PushItemWidth(100)
end
im.SameLine()
im.TextColored(grayColor, translateLanguage(mission.starLabels[key],mission.starLabels[key], true))
end
im.SameLine()
if im.Checkbox("Condensed", im.BoolPtr(condensed)) then
@/lua/ge/extensions/editor/raceEditor/pathnodes.lua
im.SameLine()
im.BeginChild1("currentPathnode", im.ImVec2(0, 0 ), im.WindowFlags_ChildWindow)
im.Text("Current Pathnode: #" .. self.index)
im.SameLine()
if im.Button("Delete") then
end
im.SameLine()
if im.Button("Move Up") then
end
im.SameLine()
if im.Button("Move Down") then
im.Text("Mode: " .. node.mode)
im.SameLine()
if im.Button("Toggle Mode") then
end
im.SameLine()
if im.SmallButton("X##"..i) then
end
im.SameLine()
if im.Button("New Number") then
im.tooltip("Copies the custom fields of this object to use for other objects.")
im.SameLine()
if not self.cfData then
@/lua/ge/extensions/editor/meshEditor.lua
im.Text("Default Width")
im.SameLine()
im.PushItemWidth(im.uiscale[0] * 150)
defaultWidthSlider()
im.SameLine()
im.Text("Default Depth")
im.SameLine()
im.PushItemWidth(im.uiscale[0] * 150)
@/lua/ge/extensions/ui/apps/pointsBar.lua
im.SameLine()
if im.Button("Clear All") then
@/lua/ge/extensions/ui/bindingsLegend.lua
im.SameLine()
if im.Button("Force Fade") then
im.SameLine()
if im.Button("Hide Vehicle Specific") then
im.SameLine()
if im.Button("Trigger Vehicle Switch") then
if i % 3 ~= 0 then
im.SameLine()
end
@/lua/ge/extensions/gameplay/drag/debug.lua
if im.Begin("Drag Race General Debug") then
im.SameLine()
if im.Button("Clear Save Data ##clearData") then
im.Text("Context: ")
im.SameLine()
im.Text(dragData.context)
im.Text("dragtype extension: ")
im.SameLine()
im.TextColored(ext and green or red, ext and ext.__extensionName__ or "No Extension")
im.Text("Is Started:")
im.SameLine()
im.TextColored(dragData.isStarted and green or red, dragData.isStarted and "Started" or "Stopped")
for index, value in ipairs(dragData.phases or {}) do
im.SameLine()
if im.Button("Play " .. value.name) then
im.Text("End Camera: ")
im.SameLine()
im.Text("Position: {" .. dragData.strip.endCamera.transform.position.x .. ", " .. dragData.strip.endCamera.transform.position.y .. ", " .. dragData.strip.endCamera.transform.position.z .. "}")
im.Text("Position: {" .. dragData.strip.endCamera.transform.position.x .. ", " .. dragData.strip.endCamera.transform.position.y .. ", " .. dragData.strip.endCamera.transform.position.z .. "}")
im.SameLine()
im.Text("Rotation: {" .. dragData.strip.endCamera.transform.rotation.x .. ", " .. dragData.strip.endCamera.transform.rotation.y .. ", " .. dragData.strip.endCamera.transform.rotation.z .. ", " .. dragData.strip.endCamera.transform.rotation.w .. "}")
im.Text("Rotation: {" .. dragData.strip.endCamera.transform.rotation.x .. ", " .. dragData.strip.endCamera.transform.rotation.y .. ", " .. dragData.strip.endCamera.transform.rotation.z .. ", " .. dragData.strip.endCamera.transform.rotation.w .. "}")
im.SameLine()
im.Text("Scale: {" .. dragData.strip.endCamera.transform.scale.x .. ", " .. dragData.strip.endCamera.transform.scale.y .. ", " .. dragData.strip.endCamera.transform.scale.z .. "}")
im.Text("Prefab: " .. nameType)
im.SameLine()
im.Text(" | Is Used: " .. tostring(p.isUsed))
if p.isUsed then
im.SameLine()
im.Text(" | " .. (p.path or "No path founded"))
vehicleData.isPlayable = isP[0]
im.SameLine()
im.Text(vehicleData.isPlayable and "Is Playable" or "Not playable")
im.Text(phase.name .. " - ")
im.SameLine()
im.TextColored(phase.started and green or red, "Started")
im.TextColored(phase.started and green or red, "Started")
im.SameLine()
im.TextColored(phase.completed and green or red, "Completed")
@/lua/ge/extensions/flowgraph/nodes/gameplay/race/raceEndScreen.lua
end
im.SameLine()
if im.Button("rem") then
@/lua/ge/extensions/flowgraph/nodes/scene/camera/setCameraPosition.lua
local pos = im.ArrayFloat(3)
im.SameLine()
im.PushItemWidth(150)
end
im.SameLine()
if im.Button("Preview") then
@/lua/ge/extensions/editor/dynamicDecals/notification.lua
im.tooltip("Remove notification")
im.SameLine()
local msgtype = type(notification.msg)
end
im.SameLine()
if im.Button("Close") then
@/lua/ge/extensions/editor/trafficDebug.lua
im.tooltip("Use negative values to remove vehicles.")
im.SameLine()
local num = math.abs(trafficAmountChange[0])
im.tooltip("Use negative values to remove vehicles.")
im.SameLine()
num = math.abs(parkingAmountChange[0])
if speedLimit >= 0 then
im.SameLine()
im.TextColored(colors.grey, string.format('%0.2f', speedLimit * 3.6))
im.TextColored(colors.grey, string.format('%0.2f', speedLimit * 3.6))
im.SameLine()
im.TextColored(colors.grey, "km/h / ")
im.TextColored(colors.grey, "km/h / ")
im.SameLine()
im.TextColored(colors.grey, string.format('%0.2f', speedLimit * 2.237))
im.TextColored(colors.grey, string.format('%0.2f', speedLimit * 2.237))
im.SameLine()
im.TextColored(colors.grey, "mph")
im.EndChild()
im.SameLine()
@/lua/ge/extensions/editor/textEditor.lua
imgui.SameLine()
if imgui.Button("Ok") then
@/lua/ge/extensions/editor/decalEditor.lua
im.tooltip("Create Decal Template")
im.SameLine()
im.tooltip("Delete Template")
im.SameLine()
im.tooltip("Save current Template")
im.SameLine()
if editor.hasDirtyDecalTemplates() then
im.SameLine()
im.TextColored(im.ImVec4(1, 0.3, 0, 1), "< Decal Templates not saved")
@/lua/ge/extensions/gameplay/rally/recceApp.lua
-- im.SameLine()
-- end
-- im.SameLine()
-- if im.Button('Unload Mission') then
-- end
-- im.SameLine()
-- if im.Button('->') then
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/veJBeamTableVis.lua
im.SameLine()
im.Text(jbeamFileName or "")
@/lua/ge/extensions/editor/crawlEditor/waypoints.lua
im.Text("Pathnodes:")
im.SameLine()
if im.Button("Add Pathnode") then
if hasPathnodes and hasSelectedPathnode then
im.SameLine()
if im.Button("Remove Pathnode") then
im.SameLine()
if im.Button("↑##waypointUp") then
end
im.SameLine()
if im.Button("↓##waypointDown") then
end
im.SameLine()
if im.SmallButton("X##"..i) then
end
im.SameLine()
if im.Button("New Number") then
im.tooltip("Copies the custom fields of this object to use for other objects.")
im.SameLine()
if not self.cfData then
@/lua/ge/extensions/editor/masterSpline.lua
im.tooltip(string.format('Switch AutoPilot preset to: [%s].', roadDesignPresetStrs[1]))
im.SameLine()
im.NextColumn()
im.tooltip(string.format('Switch AutoPilot preset to: [%s].', roadDesignPresetStrs[2]))
im.SameLine()
im.NextColumn()
im.tooltip(string.format('Switch AutoPilot preset to: [%s].', roadDesignPresetStrs[3]))
im.SameLine()
im.NextColumn()
im.tooltip(string.format('Switch AutoPilot preset to: [%s].', roadDesignPresetStrs[4]))
im.SameLine()
im.NextColumn()
im.tooltip(string.format('Switch AutoPilot preset to: [%s].', roadDesignPresetStrs[5]))
im.SameLine()
im.NextColumn()
im.tooltip('Add a new Master Spline.')
im.SameLine()
im.NextColumn()
im.tooltip('Import Master Splines from a bitmap mask.')
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
wCtr = wCtr + 1
im.SameLine()
im.NextColumn()
wCtr = wCtr + 1
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
im.tooltip('Create a new layer with a new road spline linked to it')
im.SameLine()
im.NextColumn()
im.tooltip('Create a new layer with a new mesh spline linked to it')
im.SameLine()
im.NextColumn()
im.tooltip('Create a new layer with a new assembly spline linked to it')
im.SameLine()
im.NextColumn()
im.tooltip('Create a new layer with a new decal spline linked to it')
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
@/lua/ge/extensions/editor/roadSpline.lua
im.tooltip('Add a new road spline.')
im.SameLine()
im.tooltip('Import road splines from a bitmap mask.')
im.SameLine()
im.tooltip(isDrawPolygon and 'Click to stop drawing a selection polygon.' or 'Click to draw a selection polygon, to convert scene objects to a Road Spline.')
im.SameLine()
end
im.SameLine()
end
im.SameLine()
wCtr = wCtr + 1
im.SameLine()
im.NextColumn()
wCtr = wCtr + 1
im.SameLine()
im.NextColumn()
end
im.SameLine()
end
im.SameLine()
end
im.SameLine()
end
im.SameLine()
end
im.SameLine()
end
im.SameLine()
im.tooltip('Toggle whether to include light tread marks on the Road Spline.')
im.SameLine()
im.NextColumn()
im.tooltip('Toggle whether to include heavy tread marks on the Road Spline.')
im.SameLine()
im.NextColumn()
im.tooltip('Toggle whether to include repair 1 fixes on the Road Spline.')
im.SameLine()
im.NextColumn()
im.tooltip('Toggle whether to include damaged asphalt wear 1 on the Road Spline.')
im.SameLine()
im.NextColumn()
im.tooltip('Toggle whether to include damaged asphalt wear 2 on the Road Spline.')
im.SameLine()
im.NextColumn()
im.tooltip('Toggle whether to include patches on the Road Spline.')
im.SameLine()
im.NextColumn()
im.tooltip(((selGroup.isRoadCenterLine and 'Disable') or 'Enable') .. ' the road center line.')
im.SameLine()
im.tooltip(((selGroup.isRoadEdgeLines and 'Disable') or 'Enable') .. ' the road edge lines.')
im.SameLine()
im.tooltip(((selGroup.isRoadLaneLines and 'Disable') or 'Enable') .. ' the road lane lines.')
im.SameLine()
im.tooltip(((selGroup.isEdgeBlend1 and 'Disable') or 'Enable') .. ' the edge blend 1.')
im.SameLine()
im.tooltip(((selGroup.isEdgeBlend2 and 'Disable') or 'Enable') .. ' the edge blend 2.')
im.SameLine()
end
im.SameLine()
end
im.SameLine()
end
im.SameLine()
end
im.SameLine()
im.tooltip('Select a new material for the selected layer.')
im.SameLine()
im.SetCursorPosY(im.GetCursorPosY() + max(0, (iconsBig.y - im.GetTextLineHeight()) * 0.5))
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
@/lua/ge/extensions/flowgraph/nodes/ui/endScreen.lua
end
im.SameLine()
if im.Button("rem") then
@/lua/ge/extensions/editor/dynamicDecals/layerTypes/linkedSet.lua
im.TextColored(editor.color.beamng.Value, "Properties")
im.SameLine()
-- local btnSize = im.GetFontSize() + 2 * im.GetStyle().FramePadding.y
end
im.SameLine()
if widgets.draw(property.value, api.propertiesMap[property.id], string.format("%s_properties_%s", layer.uid, guiId), editor.getTempBool_BoolBool(false)) then
@/lua/ge/extensions/editor/prefabInstanceEditor.lua
end
imgui.SameLine();
@/lua/common/extensions/ui/imgui_gen_luaintf.lua
function M.Separator() imgui.Separator() end
function M.SameLine(float_offset_from_start_x, float_spacing)
if float_offset_from_start_x == nil then float_offset_from_start_x = 0 end
if float_spacing == nil then float_spacing = -1 end
imgui.SameLine(float_offset_from_start_x, float_spacing)
end
@/lua/ge/extensions/editor/assetBrowser.lua
editor.uiIconImage((defaultFilter) and editor.icons.blur_circular or editor.icons.radio_button_unchecked, var.iconSize, editor.color.gold.Value)
im.SameLine()
im.PushStyleColor2(im.Col_Button, editor.color.transparent.Value) -- set SmallButton's background color to transparent
end
im.SameLine()
im.SetCursorPosX(cPosX + var.iconSize.x)
editor.uiIconImage(editor.icons.star_border, var.iconSize, editor.color.gold.Value)
im.SameLine()
if im.SmallButton("Saved Filter") then
im.PopStyleColor(hasSubDirs and 1 or 2)
im.SameLine()
im.SetCursorPosX(cPosX + var.iconSize.x)
end
im.SameLine()
im.PushStyleColor2(im.Col_Button, editor.color.transparent.Value) -- set SmallButton's background color to transparent
end
im.SameLine()
if im.Button("Create") then
editor.uiIconImage(editor.icons.folder, var.iconSize)
im.SameLine()
im.PushStyleColor2(im.Col_Button, editor.color.transparent.Value) -- set SmallButton's background color to transparent
im.SameLine()
if im.GetContentRegionAvailWidth() < childSize.x or (newLine and newLine == true) then
end
im.SameLine()
im.PushStyleColor2(im.Col_Button, editor.color.transparent.Value) -- set SmallButton's background color to transparent
im.SameLine()
if im.GetContentRegionAvailWidth() < childSize.x or (newLine and newLine == true) then
icon(material, var.iconSize, (material.selectedInABView == true and im.GetStyleColorVec4(im.Col_ButtonActive) or im.GetStyleColorVec4(im.Col_Text)))
im.SameLine()
im.PushStyleColor2(im.Col_Text, (material.selectedInABView == true and im.GetStyleColorVec4(im.Col_ButtonActive) or im.GetStyleColorVec4(im.Col_Text)))
else
im.SameLine()
if im.GetContentRegionAvailWidth() < childSize.x then
im.SameLine()
if im.GetContentRegionAvailWidth() < childSize.x or (newLine and newLine == true) then
end
im.SameLine()
local oldPos = im.GetCursorPos()
im.SameLine()
local cpos = im.GetCursorPos()
im.SameLine()
if im.GetContentRegionAvailWidth() < childSize.x or (newLine and newLine == true) then
end
im.SameLine()
local cursorPos = im.GetCursorPos()
chilrenDirectoryPopupButton(dir, im.ImVec2(var.windowPos.x + cursorPos.x, var.windowPos.y + cursorPos.y))
im.SameLine()
end
im.SameLine()
local cursorPos = im.GetCursorPos()
chilrenDirectoryPopupButton(var.selectedDirectory, im.ImVec2(var.windowPos.x + cursorPos.x, var.windowPos.y + cursorPos.y))
im.SameLine()
im.Button(editor.selection["asset"].fullFileName)
editor.uiIconImage(editor.icons.ab_thumbnails_small, im.ImVec2(var.inputFieldSize / uiScaling, var.inputFieldSize / uiScaling))
im.SameLine()
end
if drawWithIcons == true then
im.SameLine()
editor.uiIconImage(editor.icons.ab_thumbnails_big, im.ImVec2(var.inputFieldSize / uiScaling, var.inputFieldSize / uiScaling))
im.EndDisabled()
im.SameLine()
im.BeginDisabled(var.historyIndex >= #var.history and true or false)
end
im.SameLine()
-- asset thumbnail slider
editor.uiIconImage(editor.icons.done, im.ImVec2(var.fontSize / uiScaling,var.fontSize / uiScaling))
im.SameLine()
end
end
im.SameLine()
if editor.uiIconImageButton(isWhiteBgEnabled
if texToDraw.size.x == 0 then
im.SameLine()
im.TextColored(editor.color.warning.Value, "Background image not found: " .. (isCheckerBoardEnabled and var.imageInspector_checkerboardBgPath or (isWhiteBgEnabled and var.imageInspector_whiteBgPath or var.imageInspector_blackBgPath)))
end
im.SameLine()
if var.imageInspectorImageSize then im.TextUnformatted("Image preview size x: " .. tostring(var.imageInspectorImageSize.x) .. " y: " .. tostring(var.imageInspectorImageSize.y)) end
im.ShowHelpMarker("Doubleclick = focus obj\nMMB = pan cam\nRMB = orbit cam \nScroll wheel = zoom\nCtrl + Scroll wheel = fast zoom", true)
im.SameLine()
local pressed = false
@/lua/ge/extensions/editor/mainMenu.lua
-- @param text the text shown in the status bar
-- @param uiCallback a function that will render additional imgui UI elements (progress bars, buttons etc), make sure to use imgui.SameLine() between them. (optional callback)
local function setStatusBar(text, uiCallback)
imgui.TextColored(imgui.ImVec4(1, 1, 0, 1), editor.statusText)
imgui.SameLine()
if editor.statusBarUiCallback then editor.statusBarUiCallback() end
end
imgui.SameLine()
if imgui.Button("No") then
end
imgui.SameLine()
if imgui.Button("Cancel") then
@/lua/ge/extensions/editor/dynamicDecals/textures.lua
im.tooltip(string.format("%s\nDouble-click to set texture as color texture\nLMB to select texture\nCtrl+LMB Add texture to selection\nRMB to open context menu", fileName))
im.SameLine()
if im.GetContentRegionAvailWidth() < thumbnailSize then
im.tooltip("Docs")
im.SameLine()
im.tooltip("Preferences")
im.SameLine()
im.tooltip("Open Textures Directory")
im.SameLine()
im.tooltip("Remove tag")
im.SameLine()
im.TextUnformatted(tag)
end
im.SameLine()
if editor.uiIconImageButton(editor.icons.add, tool.getIconSizeVec2(), nil, nil, nil, "DynamicDecals_Browser_Textures_BulkChange_AddTextureTag") then
im.tooltip("Remove tag")
im.SameLine()
im.TextUnformatted(tag)
end
im.SameLine()
if editor.uiIconImageButton(editor.icons.add, tool.getIconSizeVec2(), nil, nil, nil, "DynamicDecals_Browser_Textures_AddTextureTag_" .. file) then
end
im.SameLine()
if im.Button("Cancel##dynDecalTexturesInspector_" .. file) then
end
im.SameLine()
im.TextUnformatted(file)
end
im.SameLine()
im.TextUnformatted(file)
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/veFlexbodyDebug.lua
im.SameLine()
im.Text(" or ")
im.Text(" or ")
im.SameLine()
end
im.SameLine()
im.Text(" or ")
im.Text(" or ")
im.SameLine()
renderSelectNodeByID(pickedFlexbody, pickedFlexbodyObj)
end
im.SameLine()
im.Text(" or ")
im.Text(" or ")
im.SameLine()
renderSelectVertexByID(pickedFlexbody, pickedFlexbodyObj)
end
im.SameLine()
if im.Button("X##" .. name) then
@/lua/ge/extensions/editor/materialEditor.lua
im.SameLine()
im.Dummy(im.ImVec2(im.GetContentRegionAvailWidth() - (num*iconW * im.uiscale[0] + num*spacing + 10),1))
im.Dummy(im.ImVec2(im.GetContentRegionAvailWidth() - (num*iconW * im.uiscale[0] + num*spacing + 10),1))
im.SameLine()
if not isLast then
im.SameLine(0, spacing)
end
im.TextUnformatted("Material: " .. tostring(data.lastMat))
im.SameLine()
if im.SmallButton("Refresh") then
im.TextUnformatted(label)
im.SameLine()
end
inputText("Path", property, layer, true, -(3*v.inputWidgetHeight * im.uiscale[0] + 3*v.style.ItemSpacing.x + 10))
im.SameLine()
if editor.uiIconImageButton(
im.tooltip("Open file dialog")
im.SameLine()
deleteMapButton(label, property, layer)
deleteMapButton(label, property, layer)
im.SameLine()
if editor.uiIconImageButton(
inputText(nil, property, layer, true, -(2*v.inputWidgetHeight * im.uiscale[0] + 2*v.style.ItemSpacing.x + 10))
im.SameLine()
if editor.uiIconImageButton(
im.tooltip("Open file dialog")
im.SameLine()
deleteMapButton(label, property, layer)
im.TextUnformatted(label)
if labelSameLine then im.SameLine() end
end
end
-- im.SameLine()
tempBoolPtr[0] = false
im.TextUnformatted(label)
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth() - 10)
im.TextUnformatted(label)
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth() - 10)
end
im.SameLine()
if im.Checkbox(
im.TextUnformatted(label)
im.SameLine()
if im.Checkbox(
end
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth() - 10)
im.TextUnformatted(label)
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth() - 10)
local valueA = editor.getTempFloat_StringString(fltArr2[0])
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth() - 10)
im.TextUnformatted(labelB)
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth() - 10)
else
im.SameLine()
end
im.SameLine()
if im.SmallButton("Save") then
end
im.SameLine()
if im.SmallButton("New") then
end
im.SameLine()
if im.SmallButton("Delete") then
im.TextUnformatted("Name:")
im.SameLine()
im.InputText("##cubemapName", cubemapNamePtr, nil, im.flags(im.InputTextFlags_CharsNoBlank))
cubemapFaceImageButton(1, "-X Left[1]")
im.SameLine()
cubemapFaceImageButton(4, "+Z Top[4]")
cubemapFaceImageButton(4, "+Z Top[4]")
im.SameLine()
cubemapFaceImageButton(0, "+X Right[0]")
cubemapFaceImageButton(0, "+X Right[0]")
im.SameLine()
cubemapFaceImageButton(5, "-Z Bottom[5]")
end
im.SameLine()
if im.Button("Cancel") then
im.SameLine()
local cubemapName = currentMaterial:getField("cubemap", 0)
if o.layer[0] < maxLayers - 1 then
if o.layer[0] > 0 then im.SameLine() end
if im.Button("Move Down") then
end
im.SameLine()
if im.Button("Save") then
inputText(nil, "mapTo", 0, true, -(v.inputWidgetHeight * im.uiscale[0] + 10))
im.SameLine()
if editor.uiIconImageButton(
im.TextUnformatted(currentMaterial:getField('version', 0))
im.SameLine()
im.TextUnformatted(tostring(currentMaterial.activeLayers) .. ' of ' .. tostring(maxLayers))
im.SameLine()
im.tooltip(currentMaterial.activeLayers >= maxLayers and "You can't have more than " .. tostring(maxLayers) .. " layers" or "Add layer")
im.SameLine()
disabled = currentMaterial.activeLayers <= 1
if availWidth > 240 then
im.SameLine(nil, 20)
end
radio("Wave Type", "Sin", "waveType", "Sin", layer)
im.SameLine()
radio("Wave Type", "Square", "waveType", "Square", layer)
radio("Wave Type", "Square", "waveType", "Square", layer)
im.SameLine()
radio("Wave Type", "Triangle", "waveType", "Triangle", layer)
radio("Wave Type", "Triangle", "waveType", "Triangle", layer)
im.SameLine()
checkboxFlag("Scale", "animFlags", enum_animFlags.scale, layer)
im.TextUnformatted("Alpha Blend Mode")
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth() - 10)
checkbox("Z-Write", "translucentZWrite", 0)
im.SameLine()
checkbox("Receive shadows", "translucentRecvShadows", 0)
checkbox("Alpha Clip", "alphaTest", 0)
im.SameLine()
sliderInt("Alpha Clip Threshold", "alphaRef", 0, 255, nil, 0)
checkbox("Double Sided", "doubleSided", 0)
im.SameLine()
checkbox("Invert backface normals", "invertBackFaceNormals", 0)
im.ColorButton("Annotation color", bgColor, 0, im.ImVec2(25, 19))
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth() - 10)
im.ColorButton("annotationColorButton", bgColor, 0, im.ImVec2(25, 19))
im.SameLine()
if im.Selectable1(annotations[n], isSelected) then
if lyr < currentMaterial.activeLayers - 1 then
if lyr > 0 then im.SameLine() end
if im.Button("Move Down##layer"..tostring(lyr)) then
if availWidth > 240 then
im.SameLine(nil, 20)
end
combo("UV Layer", "colorPaletteMapUV", {"0", "1"}, lyr)
checkbox("Base Color", "paletteBaseColor", lyr); im.SameLine()
checkbox("Roughness", "paletteRoughness", lyr); im.SameLine()
checkbox("Base Color", "paletteBaseColor", lyr); im.SameLine()
checkbox("Roughness", "paletteRoughness", lyr); im.SameLine()
checkbox("Metallic", "paletteMetallic", lyr)
checkbox("Metallic", "paletteMetallic", lyr)
checkbox("Clear Coat", "paletteClearCoat", lyr); im.SameLine()
checkbox("Clear Coat Roughness", "paletteClearCoatRoughness", lyr)
checkbox("Instance Emissive", "instanceEmissive", lyr, "If enabled the material multiplies the color value by the SimObject's instanceColor value.")
im.SameLine()
checkbox("Vertex color", "vertColorEmissive", lyr, "If enabled the material multiplies the vtx color value emissive value.")
end
im.SameLine()
if im.Button("Ok") then
im.SameLine(nil, v.style.ItemSpacing.x)
if editor.uiIconImageButton(editor.icons.material_tag, im.ImVec2(v.inputWidgetHeight * 1.5, v.inputWidgetHeight * 1.5)) then
im.SameLine(nil, v.style.ItemSpacing.x)
if editor.uiIconImageButton(editor.icons.refresh, im.ImVec2(v.inputWidgetHeight * 1.5, v.inputWidgetHeight * 1.5)) then
if currentMaterial and currentMaterial:getFilename() then
im.SameLine(nil, v.style.ItemSpacing.x)
local _,_,extension = path.split(currentMaterial:getFilename())
im.SameLine()
im.Spacing()
im.Spacing()
im.SameLine()
im.SameLine()
if pickMaterialsFromObjectName then
im.SameLine()
im.TextColored(im.ImVec4(1, 1, 0, 1), "From: " .. pickMaterialsFromObjectName)
im.Text("Material Name:")
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth() - (v.inputWidgetHeight * im.uiscale[0] + v.style.ItemSpacing.x + 10))
im.SameLine()
local size = im.ImVec2(v.inputWidgetHeight, 2* v.inputWidgetHeight + v.style.ItemSpacing.y)
im.Text("Map to:")
im.SameLine()
if newMatMapToLocked == true then
if newMatMapToLocked == false then
im.SameLine()
im.PushStyleColor2(im.Col_Button, pickMaterialFromObject and im.GetStyleColorVec4(im.Col_ButtonActive) or im.GetStyleColorVec4(im.Col_Button))
im.Text("Path:")
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth() - (v.style.ItemSpacing.x + 2 * v.style.FramePadding.x + im.CalcTextSize("...").x))
im.PopItemWidth()
im.SameLine()
if im.Button("...") then
if createMaterialError then im.EndDisabled() end
im.SameLine()
if im.Button("Cancel") then
im.ShowHelpMarker("RMB: Orbit view\nScroll Wheel (+ Ctrl): Zoom view\nShift + RMB: Move sun" , true)
im.SameLine()
im.PushItemWidth(size - (im.CalcTextSize("Preview Meshes(?)").x + 3 * v.style.ItemSpacing.x + 24))
end
im.SameLine()
if editor.uiIconImageButton(editor.icons.refresh, im.ImVec2(24, 24)) then
im.EndDisabled()
im.SameLine()
editor.uiIconImageButton(editor.icons.warning, im.ImVec2(v.inputWidgetHeight, v.inputWidgetHeight), editor.color.warning.Value)
if currentMaterial and v.dirtyMaterials and v.dirtyMaterials[currentMaterial:getField("name", 0)] then
im.SameLine()
if editor.uiIconImageButton(editor.icons.material_save_current, im.ImVec2(v.inputWidgetHeight, v.inputWidgetHeight)) then
if (next(v.dirtyMaterials)) then
im.SameLine()
if editor.uiIconImageButton(editor.icons.material_save_all, im.ImVec2(v.inputWidgetHeight, v.inputWidgetHeight)) then
@/lua/ge/extensions/editor/rallyEditor/measurementsTab.lua
im.SameLine()
if im.Button("Delete Measurement") then
-- Auto-save timestamp display
im.SameLine()
local diff = os.time() - self.updatedAt
-- Commented out manual save/load buttons (now using auto-save)
-- im.SameLine()
-- im.PushStyleColor2(im.Col_Button, im.ImColorByRGB(0,100,0,255).Value)
--
-- im.SameLine()
-- if im.Button("Load") then
im.SameLine()
if im.Button("Move Down") then
im.SameLine()
if im.Button("Delete Point") then
@/lua/ge/extensions/editor/undoHistory.lua
imgui.TextUnformatted("Undo Stack")
imgui.SameLine()
if imgui.Button("Undo Selected") then editor.undo(tableSize(editor.history.undoStack) - selectedIndex + 1) end
imgui.TextUnformatted("Redo Stack")
imgui.SameLine()
if imgui.Button("Redo Selected") then editor.redo(tableSize(editor.history.redoStack) - selectedIndex2 + 1) end
@/lua/ge/extensions/editor/assetManagementTool.lua
if selectedCount ~= 0 then
imgui.SameLine()
imgui.Text(", " .. tostring(selectedCount) .. " selected ")
if imgui.ImGuiTextFilter_IsActive(searchFilter) then
imgui.SameLine()
imgui.Text(", " .. tostring(visibleRecordCount) .. " found in filter")
imgui.Text("Selection operations:")
imgui.SameLine()
imgui.SameLine()
imgui.SameLine()
imgui.SameLine()
ffi.copy(inputTextNew, selectionTargetPath)
imgui.SameLine()
imgui.PopItemWidth()
imgui.SameLine()
imgui.TextColored(imgui.ImVec4(1, 1, 0, 1), tostring(mapping.recordIndex))
imgui.SameLine()
imgui.PopStyleColor()
imgui.SameLine()
imgui.PushItemWidth(-1)
imgui.PopItemWidth()
imgui.SameLine()
end
imgui.SameLine()
if imgui.Button("Save List") then
imgui.tooltip("Save the current list to a json file to process later")
imgui.SameLine()
if imgui.Button("Load List") then
imgui.tooltip("Load list from a json file. Will merge items with the current list")
imgui.SameLine()
if imgui.Button("Clear List") then
end
imgui.SameLine()
imgui.Text("File Types:")
imgui.Text("File Types:")
imgui.SameLine()
imgui.SameLine()
imgui.PopItemWidth()
imgui.SameLine()
if imgui.Button("...##chooseScanPathForSelection") then
imgui.SameLine()
if #invalidLinkFiles > 0 then
imgui.SameLine()
imgui.SameLine()
imgui.Text("Naming check scan path:")
imgui.SameLine()
imgui.PopItemWidth()
imgui.SameLine()
if imgui.Button("...##chooseScanPathForNaming") then
imgui.SameLine()
imgui.Text("File Types:")
imgui.SameLine()
imgui.SameLine()
imgui.Spacing()
imgui.Spacing()
imgui.SameLine()
if imgui.Button("Copy##btnCopyFilename" .. idx) then
imgui.Text("Delink Folder Path:")
imgui.SameLine()
ffi.copy(inputTextNew, delinkPath)
imgui.PopItemWidth()
imgui.SameLine()
imgui.Spacing()
imgui.Spacing()
imgui.SameLine()
if imgui.Button("Browse...##delinkPathBtn") then
imgui.SameLine()
imgui.Spacing()
imgui.Spacing()
imgui.SameLine()
if imgui.Button("Copy Path##btnCopyDelinkedFilename" .. idx) then
imgui.Text("Relink Folder Path:")
imgui.SameLine()
ffi.copy(inputTextNew, relinkPath)
imgui.PopItemWidth()
imgui.SameLine()
imgui.Spacing()
imgui.Spacing()
imgui.SameLine()
if imgui.Button("Browse...##relinkPathBtn") then
imgui.SameLine()
imgui.Spacing()
imgui.Spacing()
imgui.SameLine()
if imgui.Button("Copy Path##btnCopyRelinkedFilename" .. idx) then
imgui.SameLine()
imgui.SameLine()
imgui.SameLine()
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/vePropTransformer.lua
im.Text(string.format("(%0.3f, %0.3f, %0.3f) baseTranslationGlobal W/O nodeRotate/Offset/Move", btgX, btgY, btgZ))
im.SameLine()
if im.Button("Copy to Clipboard") then
im.Text(string.format("(%0.3f, %0.3f, %0.3f) baseRotationGlobal W/O nodeRotate", btgRx * 180.0 / math.pi, btgRy * 180.0 / math.pi, btgRz * 180.0 / math.pi))
im.SameLine()
if im.Button("Copy to Clipboard") then
@/lua/ge/extensions/editor/api/gui.lua
if bool_sameLine == true then
imgui.SameLine()
end
if bool_sameLine == true then
imgui.SameLine()
end
if imgui.Image(iconsTex.texId, size, tempVec2B, tempVec2C, col, borderCol) then return true end
if label then imgui.SameLine() imgui.Text(label) end
end
imgui.TextColored(textColor, text:sub(pos1, pos2 - 1))
imgui.SameLine()
end
imgui.TextColored(textHighlightColor, text:sub(pos2, pos3))
imgui.SameLine()
pos1 = pos3 + 1
uiIconImage(icon, size, col)
imgui.SameLine()
if textBG then
local function uiVertSeparator(float_height, vec2_offset, width)
imgui.SameLine()
local winPos = imgui.GetWindowPos()
local res = editor.uiIconImageButton(editor.icons.search, {x=imgsize/ uiScale, y=imgsize/ uiScale})
imgui.SameLine()
if label and label ~= "" then
local txtres = imgui.InputText("##" .. (label or ""), text, extra_flags)
imgui.SameLine()
if dispErase and editor.uiIconImageButton(editor.icons.close, {x=imgsize/ uiScale, y=imgsize/ uiScale}) then --editor.icons.backspace
if width then imgui.PopItemWidth() end
imgui.SameLine()
imgui.SameLine()
imgui.Text(label:match("[%w%s]*"))
if step_buttons then
imgui.SameLine()
if imgui.Button("-" .. widgetId .. "_decreasebtn", stepButtonSize) then
imgui.tooltip(string.format("Decrease by %.2f\nDecrease by %.2f while holding ctrl", step, step_fast))
imgui.SameLine()
if imgui.Button("+" .. widgetId .. "_increasebtn", stepButtonSize) then
if lbl then
imgui.SameLine()
imgui.TextUnformatted(lbl)
if res then returnedIndeterminateFlags = bit.band(returnedIndeterminateFlags, bit.bnot(InputFloat_IndeterminateX)) valueChanged = true end
imgui.SameLine()
intermediate = flags ~= nil and (bit.band(flags, InputFloat_IndeterminateY) == InputFloat_IndeterminateY)
if lbl then
imgui.SameLine()
imgui.TextUnformatted(lbl)
if res then returnedIndeterminateFlags = bit.band(returnedIndeterminateFlags, bit.bnot(InputFloat_IndeterminateX)) valueChanged = true end
imgui.SameLine()
intermediate = flags ~= nil and (bit.band(flags, InputFloat_IndeterminateY) == InputFloat_IndeterminateY)
if res then returnedIndeterminateFlags = bit.band(returnedIndeterminateFlags, bit.bnot(InputFloat_IndeterminateY)) valueChanged = true end
imgui.SameLine()
intermediate = flags ~= nil and (bit.band(flags, InputFloat_IndeterminateZ) == InputFloat_IndeterminateZ)
if lbl then
imgui.SameLine()
imgui.TextUnformatted(lbl)
if res then returnedIndeterminateFlags = bit.band(returnedIndeterminateFlags, bit.bnot(InputFloat_IndeterminateX)) valueChanged = true end
imgui.SameLine()
intermediate = flags ~= nil and (bit.band(flags, InputFloat_IndeterminateY) == InputFloat_IndeterminateY)
if res then returnedIndeterminateFlags = bit.band(returnedIndeterminateFlags, bit.bnot(InputFloat_IndeterminateY)) valueChanged = true end
imgui.SameLine()
intermediate = flags ~= nil and (bit.band(flags, InputFloat_IndeterminateZ) == InputFloat_IndeterminateZ)
if res then returnedIndeterminateFlags = bit.band(returnedIndeterminateFlags, bit.bnot(InputFloat_IndeterminateZ)) valueChanged = true end
imgui.SameLine()
intermediate = flags ~= nil and (bit.band(flags, InputFloat_IndeterminateW) == InputFloat_IndeterminateW)
if lbl then
imgui.SameLine()
imgui.TextUnformatted(lbl)
@/lua/ge/extensions/util/screenshotCreator.lua
im.SameLine()
if im.IsItemHovered() then im.BeginTooltip() im.Text("Checks if the thumbnail file is missing. A blank/white thumbnail is not a missing thumbnail") im.EndTooltip() end
im.SameLine()
im.Checkbox("Reload UI when run is finished", ctrls.reloadUIOnJobFinished)
im.InputFloat("##mul", ctrls.multiplyRes)
im.SameLine()
if im.Button("Multiply current res") then
end
im.SameLine()
if im.Button("Toggle UI apps") then
editor.uiIconImage(editor.icons.warning, imVec24x24, imVec4Yellow)
im.SameLine()
im.PushStyleColor2(im.Col_Text, imVec4Yellow)
end
im.SameLine()
if im.SmallButton("Select All") then
end
im.SameLine()
if im.SmallButton("Unselect All") then
end
im.SameLine()
if im.SmallButton("Invert Selection") then
im.SameLine()
if im.BeginChild1("selected", im.ImVec2(halfWidth, 0), true) then
im.PushStyleColor2(im.Col_Text, imVec4Green)
im.SameLine()
im.TextWrapped(camName)
im.tooltip("To disable procedural camera placement during thumbnail generation, enable either one of the manual camera placement below")
im.SameLine()
im.TextWrapped(" will be used for the spawned config.")
editor.uiIconImage(editor.icons.error, imVec24x24, imVec4Red)
im.SameLine()
im.TextWrapped("Current vehicle is your own 'default' vehicle. Spawn a vehicle from the vehicle selector (Will be fixed)")
if isCurrent then
im.SameLine()
im.Text("(Current)")
end
im.SameLine(42)
if editor.uiIconImageButton(editor.icons.switch_camera, imVec24x24, im.ImColorByRGB(0,255,0,127).Value, nil, nil) then
im.EndChild()
im.SameLine()
editor.uiIconImage(editor.icons.check, imVec24x24, imVec4Green)
im.SameLine()
im.TextWrapped("Current vehicle config has a custom camera")
editor.uiIconImage(editor.icons.error, imVec24x24, imVec4Red)
im.SameLine()
im.TextWrapped("Current vehicle config doesn't have a custom camera")
im.EndChild()
im.SameLine()
if im.BeginChild1("Model custom camera", nil, true) then
editor.uiIconImage(editor.icons.check, imVec24x24, imVec4Green)
im.SameLine()
im.TextWrapped("Current model has a custom camera")
editor.uiIconImage(editor.icons.error, imVec24x24, imVec4Red)
im.SameLine()
im.TextWrapped("Current model doesn't have a custom camera")
end
im.SameLine()
if im.Button("Open user's screenshot/showroom folder") then
im.SameLine()
@/lua/ge/extensions/editor/crawlEditor/trails.lua
im.Text("File Name")
im.SameLine()
if im.Button("Rename") then
im.Text("Thumbnail")
im.SameLine()
if im.Button("Browse##Thumbnail") then
im.Text("Preview")
im.SameLine()
if im.Button("Browse##Preview") then
if currentPath then
im.SameLine()
if im.Checkbox("Reverse Path", self.pathReversed) then
im.Text(string.format("Prefab %d:", i))
im.SameLine()
im.SameLine()
if im.SmallButton("Remove##" .. i) then
@/lua/ge/extensions/career/modules/linearTutorial.lua
end
im.SameLine()
if im.Button("Edit##"..folder) then
end
im.SameLine()
if im.Selectable1("View " .. folder) then
@/lua/common/extensions/ui/imgui_custom_luaintf.lua
function M.ShowHelpMarker(desc, sameLine)
if sameLine == true then M.SameLine() end
M.TextDisabled("(?)")
M.Text(label:sub(pos1, pos2 - 1))
M.SameLine()
end
M.TextColored(matchColor, label:sub(pos2, pos3))
M.SameLine()
pos1 = pos3 + 1
local spacing = M.GetStyle().ItemSpacing
M.SameLine()
M.Dummy(M.ImVec2(width - M.GetCursorPosX(), 1))
@/lua/ge/extensions/editor/missionEditor/dev.lua
im.SameLine()
if im.Checkbox("Dev Mission##devMission", self.devMission) then
@/lua/ge/extensions/editor/iconOverview.lua
if imgui.ImGuiTextFilter_PassFilter(filter, v) then
if i % itemsPerRow ~= 0 then imgui.SameLine() end
if editor.icons[v] then
@/lua/ge/extensions/editor/flowgraph/history.lua
end
im.SameLine()
if im.Button("Redo") then
@/lua/ge/extensions/editor/sitesEditor/sortedListDisplay.lua
end
im.SameLine()
if im.SmallButton("x") then
end
im.SameLine()
end
im.SameLine()
im.BeginChild1("currentElement", im.ImVec2(0, 0), im.WindowFlags_ChildWindow)
end
im.SameLine()
if im.SmallButton("X##" .. i) then
end
im.SameLine()
if im.Button("New Number") then
im.tooltip("Copies the custom fields of this object to use for other objects.")
im.SameLine()
if not self.cfData then
im.tooltip("Pastes the stored custom fields into this object.")
--im.SameLine()
--if im.Button("Populate Others") then
end
im.SameLine()
end
end
im.SameLine()
if tableSize(self.currTags) >= 1 then
end
im.SameLine()
if im.Button("Add Tag") then
@/lua/ge/extensions/editor/cameraBookmarks.lua
local addMark = imgui.InputText("##newBookmarkName", newBookmarkName, imgui.ArraySize(newBookmarkName), imgui.InputTextFlags_EnterReturnsTrue)
imgui.SameLine()
imgui.TextUnformatted("Clipboard: ")
imgui.SameLine()
imgui.SameLine()
if imgui.Button("Go To") then editor.jumpToCameraBookmark(bookmark:getID()) end
imgui.SameLine()
if imgui.Button("Copy") then editor.copyCameraBookmarkToClipboard(bookmark) end
if imgui.Button("Copy") then editor.copyCameraBookmarkToClipboard(bookmark) end
imgui.SameLine()
if imgui.Button("Delete") then deleteId = bookmark:getID() end
if imgui.Button("Delete") then deleteId = bookmark:getID() end
imgui.SameLine()
imgui.TextUnformatted(bookmark:getInternalName())
@/lua/ge/extensions/editor/meshSpline.lua
im.tooltip('Add a new mesh spline.')
im.SameLine()
im.NextColumn()
im.tooltip('Import mesh splines from a bitmap mask.')
im.SameLine()
im.NextColumn()
im.tooltip(isDrawPolygon and 'Click to stop drawing a selection polygon.' or 'Click to draw a selection polygon, to convert scene objects to a Mesh Spline.')
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
wCtr = wCtr + 1
im.SameLine()
im.NextColumn()
wCtr = wCtr + 1
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
im.tooltip('Select The Concrete Barrier Preset.')
im.SameLine()
im.NextColumn()
im.tooltip('Select The Plastic Barrier Preset.')
im.SameLine()
im.NextColumn()
im.tooltip('Select The Metal Fence Preset.')
im.SameLine()
im.NextColumn()
im.tooltip('Select The Mast Arm Lamp Post Preset.')
im.SameLine()
im.NextColumn()
im.tooltip('Select The Victorian Lamp Post Preset.')
im.SameLine()
im.NextColumn()
im.tooltip('Select The Bollard Preset.')
im.SameLine()
im.NextColumn()
im.Dummy(iconsBig)
im.SameLine()
im.NextColumn()
im.Text('Main:')
im.SameLine()
im.NextColumn()
im.tooltip('Select a new static mesh for the main component.')
im.SameLine()
im.NextColumn()
im.tooltip('Select whether to include an variation 1 component (a variation of the main component).')
im.SameLine()
im.NextColumn()
im.Text('Variation 1:')
im.SameLine()
im.NextColumn()
im.tooltip('Select a new static mesh for the variation 1 component.')
im.SameLine()
im.NextColumn()
im.tooltip('Select whether to include an variation 2 component (a variation of the main component).')
im.SameLine()
im.NextColumn()
im.Text('Variation 2:')
im.SameLine()
im.NextColumn()
im.tooltip('Select a new static mesh for the variation 2 component.')
im.SameLine()
im.NextColumn()
im.tooltip('Select whether to include an variation 3 component (a variation of the main component).')
im.SameLine()
im.NextColumn()
im.Text('Variation 3:')
im.SameLine()
im.NextColumn()
im.tooltip('Select a new static mesh for the variation 3 component.')
im.SameLine()
im.NextColumn()
im.tooltip('Use a separate start cap mesh for the first section.')
im.SameLine()
im.NextColumn()
im.Text('Start Cap:')
im.SameLine()
im.NextColumn()
im.tooltip('Select a new static mesh for the start cap section.')
im.SameLine()
im.NextColumn()
im.tooltip('Use a separate end cap mesh for the last section.')
im.SameLine()
im.NextColumn()
im.Text('End Cap:')
im.SameLine()
im.NextColumn()
im.tooltip('Select a new static mesh for the end cap section.')
im.SameLine()
im.NextColumn()
im.tooltip('Set the rotation around the Z-axis for the main component.')
im.SameLine()
im.NextColumn()
im.tooltip('Set the rotation to 0°.')
im.SameLine()
im.NextColumn()
im.tooltip('Set the rotation to 90°.')
im.SameLine()
im.NextColumn()
im.tooltip('Set the rotation to 180°.')
im.SameLine()
im.NextColumn()
im.tooltip('Set the rotation around the Z-axis for the variation 1 mesh.')
im.SameLine()
im.NextColumn()
im.tooltip('Set the rotation to 0°.')
im.SameLine()
im.NextColumn()
im.tooltip('Set the rotation to 90°.')
im.SameLine()
im.NextColumn()
im.tooltip('Set the rotation to 180°.')
im.SameLine()
im.NextColumn()
im.tooltip('Set the rotation around the Z-axis for the variation 2 mesh.')
im.SameLine()
im.NextColumn()
im.tooltip('Set the rotation to 0°.')
im.SameLine()
im.NextColumn()
im.tooltip('Set the rotation to 90°.')
im.SameLine()
im.NextColumn()
im.tooltip('Set the rotation to 180°.')
im.SameLine()
im.NextColumn()
im.tooltip('Set the rotation around the Z-axis for the variation 3 mesh.')
im.SameLine()
im.NextColumn()
im.tooltip('Set the rotation to 0°.')
im.SameLine()
im.NextColumn()
im.tooltip('Set the rotation to 90°.')
im.SameLine()
im.NextColumn()
im.tooltip('Set the rotation to 180°.')
im.SameLine()
im.NextColumn()
im.tooltip('Set the rotation around the Z-axis for the start cap mesh.')
im.SameLine()
im.NextColumn()
im.tooltip('Set the rotation to 0°.')
im.SameLine()
im.NextColumn()
im.tooltip('Set the rotation to 90°.')
im.SameLine()
im.NextColumn()
im.tooltip('Set the rotation to 180°.')
im.SameLine()
im.NextColumn()
im.tooltip('Set the rotation around the Z-axis for the end cap mesh.')
im.SameLine()
im.NextColumn()
im.tooltip('Set the rotation to 0°.')
im.SameLine()
im.NextColumn()
im.tooltip('Set the rotation to 90°.')
im.SameLine()
im.NextColumn()
im.tooltip('Set the rotation to 180°.')
im.SameLine()
im.NextColumn()
im.tooltip('Use a round robin distribution for the alias meshes.')
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
end
im.SameLine()
im.NextColumn()
@/lua/ge/extensions/editor/missionEditor/conditions.lua
local editEnded = im.BoolPtr(false)
im.SameLine()
im.PushItemWidth(120)
end
im.Dummy(im.ImVec2(depth * padPerDepth, 1)) im.SameLine()
if im.Button("Add##"..index) then
im.Dummy(im.ImVec2(depth * padPerDepth, 1)) im.SameLine()
if condition.transient then
end
im.SameLine()
im.PushItemWidth(200)
im.PopItemWidth()
im.SameLine()
if missionConditions[condition.type] and conditionFunctions[missionConditions[condition.type].editorFunction] then
im.Text("Attribute ")
im.SameLine()
im.PushItemWidth(150)
im.PopItemWidth()
im.SameLine()
im.Text("Level")
im.Text("Level")
im.SameLine()
local fieldName = "levelPtr"..index
local editEnded = im.BoolPtr(false)
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth())
local editEnded = im.BoolPtr(false)
im.SameLine()
im.PushItemWidth(120)
end
im.SameLine()
im.PushItemWidth(60)
end
im.SameLine()
im.PushItemWidth(120)
im.Text("Player Vehicle WPCategory is ")
im.SameLine()
im.PushItemWidth(60)
im.Text(" is ")
im.SameLine()
im.PushItemWidth(250)
im.PopItemWidth()
im.SameLine()
im.PushItemWidth(60)
@/lua/ge/extensions/editor/dynamicDecals/layerStack.lua
im.SameLine()
if k == 1 then im.BeginDisabled() end
im.SameLine()
if k == #parentStack then im.BeginDisabled() end
end
im.SameLine()
)
im.SameLine()
im.TextUnformatted(string.format("%d", k))
im.SameLine()
end
im.PopItemWidth()
im.SameLine()
moveLayerGui(k, guiId, layer, parentUid, parentStack)
im.SameLine()
im.SetCursorPosX(im.GetCursorPosX() + (im.GetContentRegionAvailWidth() - (tool.getIconSize() * im.uiscale[0])))
im.SameLine()
if editor.uiIconImageButton(editor.icons.delete, im.ImVec2(tool.getIconSize(), tool.getIconSize()), nil, nil, nil, string.format("remove##%s_%s", guiId, layer.uid)) then
im.SameLine()
if editor.uiIconImageButton(editor.icons.content_copy, im.ImVec2(tool.getIconSize(), tool.getIconSize()), nil, nil, nil, string.format("duplicate##%s_%s", guiId, layer.uid)) then
if layer.type == api.layerTypes.decal or layer.type == api.layerTypes.path or layer.type == api.layerTypes.brushStroke or hasMirrorableChildren(layer) then
im.SameLine()
if editor.uiIconImageButton(editor.icons.content_copy, im.ImVec2(tool.getIconSize(), tool.getIconSize()), nil, nil, nil, string.format("duplicateAndMirror##%s_%s", guiId, layer.uid)) then
if tool.getCurrentMaskEditingLayerUid() and tool.getCurrentMaskEditingLayerUid() == layer.uid then
im.SameLine()
if editor.uiIconImageButton(editor.icons.ab_asset_material, im.ImVec2(tool.getIconSize(), tool.getIconSize()), editor.color.beamng.Value, nil, nil, string.format("disable_mask##%s_%s", guiId, layer.uid)) then
else
im.SameLine()
if editor.uiIconImageButton(editor.icons.ab_asset_material, im.ImVec2(tool.getIconSize(), tool.getIconSize()), nil, nil, nil, string.format("enable_mask##%s_%s", guiId, layer.uid)) then
if layer.type == api.layerTypes.decal then
im.SameLine()
local isHighlighted = (api.getHighlightedLayer() == layer)
if editor.getPreference("dynamicDecalsTool.general.debug") then
im.SameLine()
if im.Button(string.format("dump##%s", layer.uid)) then
end
im.SameLine()
im.TextUnformatted(layer.uid)
if layer.status.missingTextureFiles then
im.SameLine()
editor.uiIconImageButton(editor.icons.warning, im.ImVec2(tool.getIconSize(), tool.getIconSize()), editor.color.warning.Value, nil, nil, string.format("missingTextureFiles", guiId, layer.uid))
if layer.status.missingFontFile then
im.SameLine()
editor.uiIconImageButton(editor.icons.warning, im.ImVec2(tool.getIconSize(), tool.getIconSize()), editor.color.warning.Value, nil, nil, string.format("missingFontFile", guiId, layer.uid))
im.SameLine()
local text = string.format("%.4fs", layer.status.bakingTime or -99)
im.tooltip(layer.mask.enabled and "Disable layer mask" or "Enable layer mask")
im.SameLine()
if editor.uiIconImageButton(editor.icons.delete, im.ImVec2(tool.getIconSize(), tool.getIconSize()), nil, nil, nil, string.format("%s_%s", layer.uid, "removeLayerMask")) then
im.tooltip("Remove layer mask")
im.SameLine()
if im.TreeNodeEx1(string.format("Layer Mask##%s_%s", layer.uid, guiId)) then
end
im.SameLine()
end
im.SameLine()
im.tooltip("Remove layer mask layer")
im.SameLine()
if editor.getPreference("dynamicDecalsTool.general.debug") then
im.SameLine()
if im.Button(string.format("Dump##%s_%s_%s_%d", layer.uid, guiId, "layerMaskLayerDumbButton", k)) then
im.SameLine()
local isHighlighted = (api.getHighlightedLayer() == maskLayer)
end
im.SameLine()
if im.Button("Ok") then
end
im.SameLine()
if im.GetContentRegionAvailWidth() <= (im.GetStyle().ItemSpacing.x + 2*im.GetStyle().FramePadding.x + im.CalcTextSize("Add Texture Fill Layer").x - im.GetStyle().WindowPadding.x) then
end
im.SameLine()
if im.GetContentRegionAvailWidth() <= (im.GetStyle().ItemSpacing.x + 2*im.GetStyle().FramePadding.x + im.CalcTextSize("Add Group").x - im.GetStyle().WindowPadding.x) then
im.tooltip("Adds an empty group layer to the stack")
im.SameLine()
if im.GetContentRegionAvailWidth() <= (im.GetStyle().ItemSpacing.x + 2*im.GetStyle().FramePadding.x + im.CalcTextSize("Add Linked Set Layer").x - im.GetStyle().WindowPadding.x) then
im.SameLine()
local layerCountText = string.format("Layer count: %d", api.getLayerCount())
end
im.SameLine()
@/lua/ge/extensions/editor/dynamicDecals/fonts.lua
im.SameLine()
if im.GetContentRegionAvailWidth() < previewSize then
im.TextUnformatted("Check the 'Fonts' section in order to generate more font atlases.")
im.SameLine()
if im.SmallButton("Open fonts section##2nd_button") then
im.tooltip(string.format("%d : %s\nxadvance: %f", i, i == 32 and "space" or string.char(i), char.xadvance))
im.SameLine()
if im.GetContentRegionAvailWidth() <= (glyphPreviewSize + im.GetStyle().ItemSpacing.x) then
im.tooltip(string.format("%d : %s\nxadvance: %f", i, i == 32 and "space" or string.char(i), char.xadvance))
im.SameLine()
if im.GetContentRegionAvailWidth() <= (glyphPreviewSize + im.GetStyle().ItemSpacing.x) then
im.TextUnformatted("Generated Font Atlases")
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth() - (im.GetStyle().ItemSpacing.x + im.CalcTextSize("Preview").x + 2 * im.GetStyle().FramePadding.x))
im.PopItemWidth()
im.SameLine()
if im.Button("Preview") then
im.TextUnformatted("Glyph [ASCII]")
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth())
im.PopItemWidth()
im.SameLine()
if editor.uiIconImageButton(editor.icons.folder, im.ImVec2(tool.getIconSize(), tool.getIconSize()), nil, nil, nil, "fontPath_FileDialogButton") then
im.TextUnformatted("Glyph Pixel Height")
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth())
@/lua/ge/extensions/editor/dynamicDecals/layerTypes/fill.lua
end
im.SameLine()
local vehicleObj = getPlayerVehicle(0)
end
im.SameLine()
local vehicleObj = getPlayerVehicle(0)
end
im.SameLine()
if im.Button("Cancel##fillLayer_Add_Modal") then
@/lua/ge/extensions/editor/dataBlockEditor.lua
if inExistingTab then
im.SameLine()
im.Dummy(im.ImVec2(im.GetContentRegionAvailWidth() - 60 * im.uiscale[0], 1))
im.Dummy(im.ImVec2(im.GetContentRegionAvailWidth() - 60 * im.uiscale[0], 1))
im.SameLine()
if editor.uiIconImageButton(editor.icons.save, im.ImVec2(22 * im.uiscale[0], 22 * im.uiscale[0]), nil, nil, nil) then
end
im.SameLine()
if editor.uiIconImageButton(editor.icons.delete, im.ImVec2(22 * im.uiscale[0], 22 * im.uiscale[0]), nil, nil, nil) then
@/lua/ge/extensions/editor/missionEditor/genericTypeData.lua
mgr:DrawTypeIcon(elem.type, false, 1, 20/scale)
im.SameLine()
im.Text(elem.fieldName)
mgr:DrawTypeIcon(elem.typeInFG, false, 1, 20/scale)
im.SameLine()
im.Text(">")
im.Text(">")
im.SameLine()
mgr:DrawTypeIcon(elem.type, false, 1, 20/scale)
mgr:DrawTypeIcon(elem.type, false, 1, 20/scale)
im.SameLine()
im.Text(elem.fieldName)
mgr:DrawTypeIcon(elem.type, false, 1, 20/scale)
im.SameLine()
im.Text(elem.fieldName)
mgr:DrawTypeIcon(elem.type, false, 1, 20/scale)
im.SameLine()
im.Text(elem.name)
im.SameLine()
self.rawCheckbox[0] = self.rawEditPerMission[self.mission.id] or false
end
im.SameLine()
im.Text(" | ")
im.SameLine()
if self.mtdIssues and #self.mtdIssues > 0 then
end
im.SameLine()
if im.Button("Cancel") then
@/lua/ge/extensions/editor/roadEditor.lua
im.PopID()
if i%4 ~= 0 then im.SameLine() end
end
if roadTemplatesActive then
im.SameLine()
if im.Checkbox("Use Template", useTemplate) then
im.Text("Default Width")
im.SameLine()
im.PushItemWidth(im.uiscale[0] * 130)
im.SameLine()
local aiRoadsPtr = im.BoolPtr(editor.getPreference("roadEditor.general.aiRoadsSelectable"))
im.SameLine()
local nonAiRoadsPtr = im.BoolPtr(editor.getPreference("roadEditor.general.nonAiRoadsSelectable"))
im.SameLine()
local overObjectsPtr = im.BoolPtr(editor.getPreference("roadEditor.general.overObjects"))
@/lua/ge/extensions/util/maptiles.lua
end
im.SameLine()
local texObj = imUtils.texObj('#mapTilePreview')
@/lua/ge/extensions/flowgraph/nodes/input/blacklistActionFilter.lua
im.BeginDisabled()
im.SameLine()
im.Text(string.format("(%d actions)", #self.actionTemplates[key]))
@/lua/ge/extensions/editor/util/vehicleSelectUtil.lua
if self.paints then
im.SameLine()
local currPaint = self.paints[self[key]] and self.paints[self[key]].baseColor
@/lua/ge/extensions/core/ropeVisualTest.lua
im.Text("Enter file path to save parameters:")
im.SameLine()
im.PushItemWidth(300)
end
im.SameLine()
if im.Button("Cancel") then
im.Text("Enter file path to load parameters:")
im.SameLine()
im.PushItemWidth(300)
end
im.SameLine()
if im.Button("Cancel") then
if uiPtrs.useBending[0] then
im.SameLine()
-- keep the slider compact to avoid overflowing the row
end
im.SameLine()
im.Text("Bend Stiffness")
im.SameLine()
im.SetNextItemWidth(120)
end
im.SameLine()
im.Text("Segments")
if uiPtrs.useStrainLimit[0] then
im.SameLine()
-- keep the slider compact to avoid overflowing the row
end
im.SameLine()
im.Text("Max Strain")
@/lua/ge/extensions/flowgraph/nodes/logic/timedTrigger.lua
im.ProgressBar(self.timer / self.data.duration, im.ImVec2(50,0))
im.SameLine()
im.Text("%0.1f", self.data.duration-self.timer)
im.ProgressBar(self.reset / self.data.resetTimer, im.ImVec2(50,0))
im.SameLine()
im.Text("%0.1f", self.data.resetTimer-self.reset)
@/lua/ge/extensions/editor/raceEditor/tools.lua
if editEnded[0] then shapeNameLeft = ffi.string(shapeInputLeft) end
im.SameLine()
if im.Button(" ... ##leftSelector") then
end, {{'dae files','dae'},{'prefab files','prefab'},{'prefab json files','prefab.json'}}, false,'/art/shapes/race/')
end im.SameLine()
self:existsIcon(shapeNameLeft)
if editEnded[0] then shapeNameRight = ffi.string(shapeInputRight) end
im.SameLine()
if im.Button(" ... ##rightSelector") then
end, {{'dae files','dae'},{'prefab files','prefab'},{'prefab json files','prefab.json'}}, false,'/art/shapes/race/')
end im.SameLine()
self:existsIcon(shapeNameRight)
if lastGroup then
im.SameLine()
if im.Button("Replace") then
self:createDecoration(allTransforms)
end im.tooltip("Removes the old group and creates a new one.") im.SameLine()
end
im.SameLine()
if im.Button("Set All Pathnode Sizes") then
im.tooltip("Opens as separate windows to test the current track.\nThe test track will only have debug visualizations.\nYou can return to this editor by closing the test window.")
im.SameLine()
if im.Button("Dump Path [Debug]") then
dumpz(self.path.config,4)
end im.SameLine()
if im.Button("Dump Auto Config Reverse [Debug]") then
local cpx = im.GetCursorPosX()
im.Text(name) im.SameLine() im.SetCursorPosX(cpx + 90) im.tooltip(tt or "")
if classification[field] then
@/lua/ge/extensions/editor/roadTemplateEditor.lua
im.PopID()
if i%4 ~= 0 then im.SameLine() end
end
end
im.SameLine()
end
im.SameLine()
end
im.SameLine()
end
im.SameLine()
end
im.SameLine()
end
im.SameLine()
end
im.SameLine()
end
im.SameLine()
end
im.SameLine()
@/lua/ge/extensions/editor/dynamicDecals/vehicleColorPalette.lua
im.TextUnformatted("Metallic")
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth())
im.TextUnformatted("Roughness")
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth())
im.TextUnformatted("Clear Coat")
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth())
im.TextUnformatted("Clear Coat Roughness")
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth())
end
im.SameLine()
if #colorPaletteName == 0 then
im.SameLine()
if im.Button(string.format("Save##vehicleColorPalette", guiId)) then
end
im.SameLine()
if editor.uiIconImageButton(editor.icons.delete, tool.getIconSizeVec2(), nil, nil, nil, string.format("##vehicleColorPalette_Load_deleteButton_%d%s", k, guiId)) then
im.tooltip("Remove color palette")
im.SameLine()
im.ColorButton(string.format("LoadVehicleColorPalette_color1_%d%s", k, guiId), editor.getTempImVec4_TableTable({palette.values[1][1], palette.values[1][2], palette.values[1][3], 1.0}))
im.ColorButton(string.format("LoadVehicleColorPalette_color1_%d%s", k, guiId), editor.getTempImVec4_TableTable({palette.values[1][1], palette.values[1][2], palette.values[1][3], 1.0}))
im.SameLine()
im.ColorButton(string.format("LoadVehicleColorPalette_color2_%d%s", k, guiId), editor.getTempImVec4_TableTable({palette.values[2][1], palette.values[2][2], palette.values[2][3], 1.0}))
im.ColorButton(string.format("LoadVehicleColorPalette_color2_%d%s", k, guiId), editor.getTempImVec4_TableTable({palette.values[2][1], palette.values[2][2], palette.values[2][3], 1.0}))
im.SameLine()
im.ColorButton(string.format("LoadVehicleColorPalette_color3_%d%s", k, guiId), editor.getTempImVec4_TableTable({palette.values[3][1], palette.values[3][2], palette.values[3][3], 1.0}))
im.ColorButton(string.format("LoadVehicleColorPalette_color3_%d%s", k, guiId), editor.getTempImVec4_TableTable({palette.values[3][1], palette.values[3][2], palette.values[3][3], 1.0}))
im.SameLine()
if editor.uiInputText(string.format("##LoadVehicleColorPalette_paletteName_InputWidget_%d%s", k, guiId), editor.getTempCharPtr(palette.name), nil, im.InputTextFlags_AutoSelectAll, nil, nil, editor.getTempBool_BoolBool(false)) then
im.SameLine()
if im.Button(string.format("Load##vehicleColorPalette", guiId)) then
im.SameLine()
if editor.uiIconImageButton(editor.icons.settings, tool.getIconSizeVec2(), nil, nil, nil, "##openVehicleColorPalettePreferences") then
im.TextUnformatted("Color")
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth() - (im.GetStyle().ItemSpacing.x + tool.getIconSize()))
im.PopItemWidth()
im.SameLine()
if editor.uiIconImageButton(editor.icons.rotate, tool.getIconSizeVec2(), nil, nil, nil, "##randomizeColor1") then
im.TextUnformatted("Color")
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth() - (im.GetStyle().ItemSpacing.x + tool.getIconSize()))
im.PopItemWidth()
im.SameLine()
if editor.uiIconImageButton(editor.icons.rotate, tool.getIconSizeVec2(), nil, nil, nil, "##randomizeColor2") then
im.TextUnformatted("Color")
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth() - (im.GetStyle().ItemSpacing.x + tool.getIconSize()))
im.PopItemWidth()
im.SameLine()
if editor.uiIconImageButton(editor.icons.rotate, tool.getIconSizeVec2(), nil, nil, nil, "##randomizeColor3") then
end
im.SameLine()
end
end
im.SameLine()
if editor.uiIconImageButton(editor.icons.delete, tool.getIconSizeVec2(), nil, nil, nil, string.format("##vehicleColorPalette_Load_deleteButton_%d%s", k, guiId)) then
im.tooltip("Remove color palette")
im.SameLine()
im.ColorButton(string.format("LoadVehicleColorPalette_color1_%d%s", k, guiId), editor.getTempImVec4_TableTable({palette.values[1][1], palette.values[1][2], palette.values[1][3], 1.0}))
im.ColorButton(string.format("LoadVehicleColorPalette_color1_%d%s", k, guiId), editor.getTempImVec4_TableTable({palette.values[1][1], palette.values[1][2], palette.values[1][3], 1.0}))
im.SameLine()
im.ColorButton(string.format("LoadVehicleColorPalette_color2_%d%s", k, guiId), editor.getTempImVec4_TableTable({palette.values[2][1], palette.values[2][2], palette.values[2][3], 1.0}))
im.ColorButton(string.format("LoadVehicleColorPalette_color2_%d%s", k, guiId), editor.getTempImVec4_TableTable({palette.values[2][1], palette.values[2][2], palette.values[2][3], 1.0}))
im.SameLine()
im.ColorButton(string.format("LoadVehicleColorPalette_color3_%d%s", k, guiId), editor.getTempImVec4_TableTable({palette.values[3][1], palette.values[3][2], palette.values[3][3], 1.0}))
im.ColorButton(string.format("LoadVehicleColorPalette_color3_%d%s", k, guiId), editor.getTempImVec4_TableTable({palette.values[3][1], palette.values[3][2], palette.values[3][3], 1.0}))
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth())
@/lua/ge/extensions/editor/util/vehicleFilterUtil.lua
end
im.SameLine()
local trailerPtr = im.BoolPtr(e.allowLoadedTrailers)
end
im.SameLine()
im.PushItemWidth(80)
local minChanged = im.InputFloat("Min##min", minPtr)
im.SameLine()
local maxChanged = im.InputFloat("Max##max", maxPtr)
local displayText = selectedCount > 0 and (selectedCount .. " selected") or "None selected"
im.SameLine()
if im.BeginCombo("##combo", displayText) then
im.SameLine()
if im.SmallButton("Remove##removeFilter") then
im.Text(" ")
im.SameLine()
if im.BeginCombo("+ Add to WhiteList##addBaseWhiteList"..e._id, "Add Filter...") then
end
im.SameLine()
im.PushItemWidth(80)
local minChanged = im.InputFloat("Min##min", minPtr)
im.SameLine()
local maxChanged = im.InputFloat("Max##max", maxPtr)
local displayText = selectedCount > 0 and (selectedCount .. " selected") or "None selected"
im.SameLine()
if im.BeginCombo("##combo", displayText) then
im.SameLine()
if im.SmallButton("Remove##removeFilter") then
im.Text(" ")
im.SameLine()
if im.BeginCombo("+ Add to BlackList##addBaseBlackList"..e._id, "Add Filter...") then
im.Text("Setting " .. settingIdx .. ":")
im.SameLine()
im.PushItemWidth(100)
im.PopItemWidth()
im.SameLine()
if im.SmallButton("Remove##removeSetting") then
end
im.SameLine()
im.PushItemWidth(80)
local minChanged = im.InputFloat("Min##min", minPtr)
im.SameLine()
local maxChanged = im.InputFloat("Max##max", maxPtr)
local displayText = selectedCount > 0 and (selectedCount .. " selected") or "None selected"
im.SameLine()
if im.BeginCombo("##combo", displayText) then
im.SameLine()
if im.SmallButton("Remove##removeFilter") then
im.Text(" ")
im.SameLine()
if im.BeginCombo("+ Add to WhiteList##addWhiteList"..settingIdx, "Add Filter...") then
end
im.SameLine()
im.PushItemWidth(80)
local minChanged = im.InputFloat("Min##min", minPtr)
im.SameLine()
local maxChanged = im.InputFloat("Max##max", maxPtr)
local displayText = selectedCount > 0 and (selectedCount .. " selected") or "None selected"
im.SameLine()
if im.BeginCombo("##combo", displayText) then
im.SameLine()
if im.SmallButton("Remove##removeFilter") then
im.Text(" ")
im.SameLine()
if im.BeginCombo("+ Add to BlackList##addBlackList"..settingIdx, "Add Filter...") then
im.PopItemWidth()
im.SameLine()
im.Text("(0 = select all matching vehicles)")
im.PopItemWidth()
im.SameLine()
im.Text("(Attribute to use for weighting, e.g. 'Population')")
im.Text(cfg.model .. " / " .. (cfg.name or cfg.config))
im.SameLine()
if im.SmallButton("Remove##"..e._id.."remove"..i) then
-- Add button
im.SameLine()
if im.Button("Add##"..e._id.."addManual") and selectedConfig and selectedConfig ~= "" then
@/lua/ge/extensions/trackbuilder/trackBuilder.lua
im.tooltip(translateLanguage("ui.trackBuilder.selection.first", "Select First Piece"))
im.SameLine()
im.SetCursorPosX(piecePositions[2]+10)
im.tooltip(translateLanguage("ui.trackBuilder.selection.previous", "Select Previous Piece"))
im.SameLine()
im.SetCursorPosX(piecePositions[3] + 10)
im.tooltip(translateLanguage("ui.trackBuilder.camera.focus", 'Focus camera on selected piece'))
im.SameLine()
im.SetCursorPosX(piecePositions[4]-10)
im.tooltip(translateLanguage("ui.trackBuilder.selection.next", "Select Next Piece"))
im.SameLine()
im.SetCursorPosX(piecePositions[5]-10)
im.tooltip(translateLanguage("ui.trackBuilder.tooltip.modify", "Modify"))
im.SameLine()
--if im.SmallButton("x##"..name) then
im.tooltip(translateLanguage("ui.trackBuilder.tooltip.remove", "Remove"))
im.SameLine()
--if im.SmallButton("r##"..name) then
im.SameLine()
if im.Checkbox(translateLanguage("ui.trackBuilder.modifier.inverted", "Inverted") .. "##"..name, modifierValues[name].inverted) then
im.PopItemWidth()
im.SameLine()
if editor.uiIconImageButton(editor.icons.save, im.ImVec2(16,16), style.buttonColorBase, nil, nil, "saveButton") then saveMaterial() end
if editor.uiIconImageButton(editor.icons.save, im.ImVec2(16,16), style.buttonColorBase, nil, nil, "saveButton") then saveMaterial() end
im.SameLine()
if editor.uiIconImageButton(editor.icons.undo, im.ImVec2(16,16), style.buttonColorBase, nil, nil, "resetMaterialButton") then
if im.SmallButton(translateLanguage("ui.trackBuilder.matEditor.selectAll", "Select All")) then setAllPaintModes(true) changed = true end
im.SameLine()
if im.SmallButton(translateLanguage("ui.trackBuilder.matEditor.deselectAll", "Deselect All")) then setAllPaintModes(false) changed = true end
im.tooltip(name)
if i % 3 ~= 0 and i ~= materialSettings.texteSetsSize then im.SameLine() end
i = i + 1
im.tooltip(name)
if i % 3 ~= 0 and i ~= materialSettings.glowMapsSize then im.SameLine() end
i = i + 1
end
im.SameLine()
if width then im.PushItemWidth(width) end
end
im.SameLine()
im.SetCursorPosX(x + 191)
end
im.SameLine()
im.SetCursorPosX(x + 191)
end
im.SameLine()
im.SetCursorPosX(x + 191)
end
im.SameLine()
end
im.tooltip('Shift Modifier Back')
im.SameLine()
if editor.uiIconImageButton(editor.icons.tb_bank_left or editor.icons.stop,style.buttonSize,style.buttonColorBase) then modifierValues.bank.value[0] = CtrlShiftButton(modifierValues.bank.value[0],15,1,60,-720,720,-1) tbFunctions.modifierChange('bank') end
if editor.uiIconImageButton(editor.icons.tb_bank_left or editor.icons.stop,style.buttonSize,style.buttonColorBase) then modifierValues.bank.value[0] = CtrlShiftButton(modifierValues.bank.value[0],15,1,60,-720,720,-1) tbFunctions.modifierChange('bank') end
im.SameLine()
if editor.uiIconImageButton(editor.icons.tb_bank_right or editor.icons.stop,style.buttonSize,style.buttonColorBase) then modifierValues.bank.value[0] = CtrlShiftButton(modifierValues.bank.value[0],15,1,60,-720,720,1) tbFunctions.modifierChange('bank') end
if editor.uiIconImageButton(editor.icons.tb_bank_right or editor.icons.stop,style.buttonSize,style.buttonColorBase) then modifierValues.bank.value[0] = CtrlShiftButton(modifierValues.bank.value[0],15,1,60,-720,720,1) tbFunctions.modifierChange('bank') end
im.SameLine()
if im.Button(">##bank",style.slimButtonSize) then tbFunctions.modifierShift('bank',1) end
end
im.SameLine()
im.SetCursorPosX(x + 191)
im.tooltip('Shift Modifier Back')
im.SameLine()
if editor.uiIconImageButton(editor.icons.tb_height_lower or editor.icons.stop,style.buttonSize,style.buttonColorBase) then modifierValues.height.value[0] = CtrlShiftButton(modifierValues.height.value[0],1,5,25,-500,2000,-1) tbFunctions.modifierChange('height') end
if editor.uiIconImageButton(editor.icons.tb_height_lower or editor.icons.stop,style.buttonSize,style.buttonColorBase) then modifierValues.height.value[0] = CtrlShiftButton(modifierValues.height.value[0],1,5,25,-500,2000,-1) tbFunctions.modifierChange('height') end
im.SameLine()
if editor.uiIconImageButton(editor.icons.tb_height_higher or editor.icons.stop,style.buttonSize,style.buttonColorBase) then modifierValues.height.value[0] = CtrlShiftButton(modifierValues.height.value[0],1,5,25,-500,2000,1) tbFunctions.modifierChange('height') end
if editor.uiIconImageButton(editor.icons.tb_height_higher or editor.icons.stop,style.buttonSize,style.buttonColorBase) then modifierValues.height.value[0] = CtrlShiftButton(modifierValues.height.value[0],1,5,25,-500,2000,1) tbFunctions.modifierChange('height') end
im.SameLine()
if im.Button(">##height",style.slimButtonSize) then tbFunctions.modifierShift('height',1) end
end
im.SameLine()
im.SetCursorPosX(x + 191)
im.SameLine()
if im.Checkbox(translateLanguage("ui.trackBuilder.modifier.inverted", "Inverted") .. "##"..'height', modifierValues['height'].inverted) then
im.tooltip('Shift Modifier Back')
im.SameLine()
if editor.uiIconImageButton(editor.icons.tb_width_slimmer or editor.icons.stop,style.buttonSize,style.buttonColorBase) then modifierValues.width.value[0] = CtrlShiftButton(modifierValues.width.value[0],1,5,10,0,50,-1) tbFunctions.modifierChange('width') end
if editor.uiIconImageButton(editor.icons.tb_width_slimmer or editor.icons.stop,style.buttonSize,style.buttonColorBase) then modifierValues.width.value[0] = CtrlShiftButton(modifierValues.width.value[0],1,5,10,0,50,-1) tbFunctions.modifierChange('width') end
im.SameLine()
if editor.uiIconImageButton(editor.icons.tb_width_wider or editor.icons.stop,style.buttonSize,style.buttonColorBase) then modifierValues.width.value[0] = CtrlShiftButton(modifierValues.width.value[0],1,5,10,0,50,1) tbFunctions.modifierChange('width') end
if editor.uiIconImageButton(editor.icons.tb_width_wider or editor.icons.stop,style.buttonSize,style.buttonColorBase) then modifierValues.width.value[0] = CtrlShiftButton(modifierValues.width.value[0],1,5,10,0,50,1) tbFunctions.modifierChange('width') end
im.SameLine()
if im.Button(">##width",style.slimButtonSize) then tbFunctions.modifierShift('width',1) end
end
im.SameLine()
im.SetCursorPosX(x + 191)
im.SameLine()
if editor.uiIconImageButton(editor.icons.access_time or editor.icons.stop,im.ImVec2(30,30),style.buttonColorBase) then
im.SameLine()
if editor.uiIconImageButton(editor.icons.brightness_3,im.ImVec2(30,30),style.buttonColorBase) then
if allowScreenshot then
im.SameLine()
if im.Button(previewText, im.ImVec2(128,20)) then
if im.Button('X ') then im.ImGuiTextFilter_Clear(loadFilesFilter) end
im.SameLine()
im.ImGuiTextFilter_Draw(loadFilesFilter, translateLanguage("ui.trackBuilder.saveLoad.search", "Search"), 120)
if im.DragFloat3("Position##o"..i,o.position,0.05, nil, nil, "%.2f") then tbFunctions.modifierChange('obstacles') end
im.SameLine()
-- if im.SmallButton("r##op"..i) then
end
im.SameLine()
-- if im.SmallButton("r##os"..i) then
if im.DragFloat3("Rotation ##o"..i,o.rotation, 1, nil, nil, "%.2f") then tbFunctions.modifierChange('obstacles') end
im.SameLine()
-- if im.SmallButton("r##or"..i) then
end
im.SameLine()
if im.Button(translateLanguage("ui.trackBuilder.obstacles.copy", "Copy") .. "##o"..i) then
end
im.SameLine()
im.SetCursorPosX(im.GetWindowWidth()-25)
end
im.SameLine()
im.SetCursorPosX(im.GetWindowWidth()-25)
if im.Button("<##cp") then tbFunctions.modifierShift("checkpoint",-1) end
im.SameLine()
if im.Button(">##cp") then tbFunctions.modifierShift("checkpoint",1) end
end
im.SameLine()
if im.Button("Select##cp"..i) then
end
im.SameLine()
if im.Button(">##cp"..i) then
end
im.SameLine()
im.Text(" ")
im.Text(" ")
im.SameLine()
if im.Button("Remove##cp"..i) then
im.TextColored(style.textColor,translateLanguage("ui.trackBuilder.base.radius", "Radius") .. ": " .. (p.radius[0]*4)..'m')
im.SameLine()
im.SetCursorPosX(xPositions[3])
end
im.SameLine()
im.SetCursorPosX(xPositions[2])
end
im.SameLine()
im.SetCursorPosX(xPositions[3])
end
im.SameLine()
im.SetCursorPosX(xPositions[4])
if includeSplit then
im.SameLine()
im.SetCursorPosX(xPositions[5])
end
im.SameLine()
im.SetCursorPosX(xPositions[2])
if includeSplit then
im.SameLine()
im.SetCursorPosX(xPositions[3])
im.TextColored(style.textColor, translateLanguage("ui.trackBuilder.base.radius", "Radius") .. ": " .. (p.size[0]*4)..'m')
im.SameLine()
im.SetCursorPosX(xPositions[3])
end
im.SameLine()
im.SetCursorPosX(xPositions[2])
end
im.SameLine()
im.SetCursorPosX(xPositions[3])
end
im.SameLine()
im.SetCursorPosX(xPositions[4])
im.TextColored(style.textColor,(p.inside[0] and 'Outward' or 'Inward'))
im.SameLine()
im.TextColored(style.textColor,"yOffset: " .. (p.length[0]*4)..'m')
im.SameLine()
im.SetCursorPosX(xPositions[3])
end
im.SameLine()
im.SetCursorPosX(xPositions[2])
im.SameLine()
im.SetCursorPosX(xPositions[3])
end
im.SameLine()
im.SetCursorPosX(xPositions[4])
end
im.SameLine()
im.SetCursorPosX(xPositions[3])
im.TextColored(style.textColor,translateLanguage("ui.trackBuilder.base.radius", "Radius") .. ": " .. (p.radius[0]*4)..'m')
im.SameLine()
im.SetCursorPosX(xPositions[3])
end
im.SameLine()
im.SetCursorPosX(xPositions[2])
im.SameLine()
im.SetCursorPosX(xPositions[3])
end
im.SameLine()
im.SetCursorPosX(xPositions[4])
im.TextColored(style.textColor,"yOffset: " .. (p.yOff[0]*4)..'m')
im.SameLine()
im.SetCursorPosX(xPositions[3])
end
im.SameLine()
im.SetCursorPosX(xPositions[2])
im.SameLine()
im.SetCursorPosX(xPositions[3])
end
im.SameLine()
im.SetCursorPosX(xPositions[4])
im.TextColored(style.textColor,"fwdLen: " .. (p.forwardLen[0])..'')
im.SameLine()
im.SetCursorPosX(xPositions[3])
end
im.SameLine()
im.SetCursorPosX(xPositions[2])
im.SameLine()
im.SetCursorPosX(xPositions[3])
end
im.SameLine()
im.SetCursorPosX(xPositions[4])
im.TextColored(style.textColor,"dirOff: " .. (p.dirOff[0])..'°')
im.SameLine()
im.SetCursorPosX(xPositions[3])
im.TextColored(style.textColor,(p.absolute[0] and 'global' or 'local'))
im.SameLine()
im.SetCursorPosX(xPositions[4])
end
im.SameLine()
im.SetCursorPosX(xPositions[2])
im.SameLine()
im.SetCursorPosX(xPositions[3])
end
im.SameLine()
im.SetCursorPosX(xPositions[4])
end
im.SameLine()
im.Checkbox("No Intersection", addSubtrackParams.noInter)
deleteButton()
im.SameLine()
im.SetCursorPosX(piecePositions[2]+1)
leftCurveButton()
im.SameLine()
im.SetCursorPosX(piecePositions[3]+1)
straightButton()
im.SameLine()
im.SetCursorPosX(piecePositions[4]+1)
rightCurveButton()
im.SameLine()
im.SetCursorPosX(piecePositions[5]+1)
bezierButton()
im.SameLine()
im.SetCursorPosX(piecePositions[2]+1)
leftSpiralButton()
im.SameLine()
im.SetCursorPosX(piecePositions[3]+1)
scurveButton()
im.SameLine()
im.SetCursorPosX(piecePositions[4]+1)
rightSpiralButton()
im.SameLine()
im.SetCursorPosX(piecePositions[5]+1)
end
im.SameLine()
end
if im.IsItemHovered() then im.tooltip(paintModes[name].tooltip) end
im.SameLine()
end
im.tooltip(translateLanguage("ui.trackBuilder.tooltip.shiftBack", "Shift Modifier Back"))
im.SameLine()
if editor.uiIconImageButton(editor.icons[leftIcon] or editor.icons.stop,style.buttonSize,style.buttonColorBase) then modifierValues[name].value[0] = CtrlShiftButton(modifierValues[name].value[0],step,small,big,min,max,-1) tbFunctions.modifierChange(name) end
if editor.uiIconImageButton(editor.icons[leftIcon] or editor.icons.stop,style.buttonSize,style.buttonColorBase) then modifierValues[name].value[0] = CtrlShiftButton(modifierValues[name].value[0],step,small,big,min,max,-1) tbFunctions.modifierChange(name) end
im.SameLine()
if editor.uiIconImageButton(editor.icons[rightIcon] or editor.icons.stop,style.buttonSize,style.buttonColorBase) then modifierValues[name].value[0] = CtrlShiftButton(modifierValues[name].value[0],step,small,big,min,max,1) tbFunctions.modifierChange(name) end
if editor.uiIconImageButton(editor.icons[rightIcon] or editor.icons.stop,style.buttonSize,style.buttonColorBase) then modifierValues[name].value[0] = CtrlShiftButton(modifierValues[name].value[0],step,small,big,min,max,1) tbFunctions.modifierChange(name) end
im.SameLine()
if im.Button(">##"..name,style.slimButtonSize) then tbFunctions.modifierShift(name,1) end
im.tooltip(translateLanguage("ui.trackBuilder.tooltip.shiftForward", "Shift Modifier Forward"))
im.SameLine()
im.SetCursorPosY(im.GetCursorPosY() + 8)
deleteButton()
im.SameLine()
im.SetCursorPosX(piecePositions[2]+1)
leftCurveButton()
im.SameLine()
im.SetCursorPosX(piecePositions[3]+1)
straightButton()
im.SameLine()
im.SetCursorPosX(piecePositions[4]+1)
rightCurveButton()
im.SameLine()
im.SetCursorPosX(piecePositions[5]+1)
end
im.SameLine()
im.SetCursorPosX(selectorPositions[2])
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/veTCSDebug.lua
if count > 1 then
im.SameLine()
end
im.TextColored(textColors2.slipThreshold, graph2Names[1])
im.SameLine()
for k, _ in pairs(wheelSlips) do
im.SameLine()
im.TextColored(textColors2[k], k)
if count > 1 then
im.SameLine()
end
if count > 1 then
im.SameLine()
end
@/lua/ge/extensions/editor/crawlEditor/missionPortTool.lua
im.SameLine()
if im.Button("Refresh") then
if portedMissions[mission.name] then
im.SameLine()
im.TextColored(im.ImVec4(0, 1, 0, 1), "Successfully ported")
@/lua/ge/extensions/editor/gen/exp_frame.lua
im.Text(U.round(L,6) or tostring(nil))
im.SameLine()
im.Text(cL and U.round((cL-L)/L,6) or 0)
im.Text(cL and U.round((cL-L)/L,6) or 0)
im.SameLine()
im.Text(cfix == 'r' and 'R' or 'L')
@/lua/ge/extensions/editor/cameraTransform.lua
end
im.SameLine()
if im.Button("GoTo") then
@/lua/ge/extensions/editor/missionEditor.lua
end
im.SameLine()
local playerVehicle = getPlayerVehicle(0)
im.SameLine()
if editor.uiIconImageButton(instance.unlocks.startable and editor.icons.assignment_turned_in or editor.icons.assignment_late, im.ImVec2(40, 40), instance.unlocks.startable and colorLightGreen or colorLightRed) then
im.SameLine()
if editor.uiIconImageButton(instance.unlocks.visible and editor.icons.visibility or editor.icons.visibility_off, im.ImVec2(40, 40), instance.unlocks.visible and colorLightGreen or colorLightRed) then
im.SameLine()
-- Add button to edit start position
im.SameLine()
if shownMission.missionType == 'rallyStage' or shownMission.missionType == 'rallyRoadSection' then
im.tooltip("Open Race Editor")
im.SameLine()
im.tooltip("Open Rally Editor")
im.SameLine()
end
im.HeaderText(translateLanguage(shownMission.name, shownMission.name, true))
im.SameLine()
im.SetCursorPosY(im.GetCursorPosY() + 6)
end
im.SameLine()
im.PopItemWidth()
im.SameLine()
local sameTypeLevelCount = 1
end
im.SameLine()
else
im.SameLine()
im.HeaderText("(...)")
else
im.SameLine()
im.HeaderText("(...)")
else
im.SameLine()
im.HeaderText("(...)")
else
im.SameLine()
im.HeaderText("(...)")
else
im.SameLine()
im.HeaderText("(...)")
@/lua/ge/extensions/editor/util/editorElementHelper.lua
if e.displayOptions.associatedStars then
im.SameLine()
editor.uiIconImage(editor.icons.star, imVec16x16 ,imVec4TransparentWhite)
if hasTranslate then
im.SameLine()
if not e._translated then
if hasDropdown then
im.SameLine()
local ret = nil
e.foundFile = nil
end im.SameLine()
if im.Button(" ... ##file"..e.label.."...") then
end, e.allowedExtensions, false, container.missionFolder)
end im.SameLine()
local file = ffi.string(e.ac)
end
im.SameLine()
im.tooltip(e.foundFile)
im.SameLine()
im.Text(e.foundFile)
im.tooltip("This file is optional: "..files)
im.SameLine()
im.Text("Optional: ".. files)
im.tooltip("Requiring one of these files: " .. files)
im.SameLine()
im.Text("Required: ".. files)
@/lua/ge/extensions/editor/dragRaceEditor/lanes.lua
if selectedLaneIndex > 0 then
im.SameLine()
if im.Button("Remove") then
im.SameLine()
if im.Button("Save") then
im.Text("ID: ")
im.SameLine()
local id = im.ArrayChar(256, lane.id or "")
im.Text("Name: ")
im.SameLine()
local name = im.ArrayChar(256, lane.name or "")
im.Text("Short Name: ")
im.SameLine()
local shortName = im.ArrayChar(256, lane.shortName or "")
im.Text("Long Name: ")
im.SameLine()
local longName = im.ArrayChar(256, lane.longName or "")
im.Text("Color: ")
im.SameLine()
im.PushItemWidth(100)
im.Text("Lane Order: ")
im.SameLine()
local laneOrder = im.IntPtr(lane.laneOrder or 1)
im.Text("Boundary ID: ")
im.SameLine()
local boundaryId = im.ArrayChar(256, lane.boundaryId or "")
@/lua/ge/extensions/editor/missionPlaybook/missionTreeViewer.lua
im.ImDrawList_AddRectFilled(im.GetWindowDrawList(), itemRect.top_left(), itemRect.bottom_right(), im.GetColorU322(clr), 3)
im.SameLine()
local width = math.max(im.CalcTextSize(node.name).x+20, nodeSize.x)
im.SameLine()
for i, key in ipairs(mission.careerSetup._activeStarCache.sortedStars) do
if i ~= 1 then im.SameLine() end
local icon = editor.icons[data.unlockedStars[mission.id][key] and "star" or "star_border"]
im.SameLine()
im.SameLine()
ui_flowgraph_editor.BeginPin(pinOut,ui_flowgraph_editor.PinKind_Output)
im.ImDrawList_AddRectFilled(im.GetWindowDrawList(), itemRect.top_left(), itemRect.bottom_right(), im.GetColorU322(outClr), 3)
im.SameLine()
im.PopID()
@/lua/ge/extensions/editor/flowgraph/variables.lua
im.TextColored(localColor,"Current Graph Variables")
im.SameLine()
im.TextColored(separatorColor, "|")
ui_flowgraph_editor.tooltip("These variables are only available in this graph.")
im.SameLine()
local loc = self.mgr.graph:getLocation(editor.getPreference("flowgraph.debug.displayIds"))
im.PopFont()
im.SameLine()
im.SetCursorPosX(totalWidth-35*im.uiscale[0])
ui_flowgraph_editor.tooltip("These variables are available in the whole project.")
im.SameLine()
im.SetCursorPosX(totalWidth-35*im.uiscale[0])
im.Text("Name")
im.SameLine()
if not self.addVariableSettings.focussed or self.addVariableSettings.focussed<2 then
end
im.SameLine()
local name = ffi.string(self.addVariableSettings.name)
self.mgr:DrawTypeIcon(self.addVariableSettings.type, false, 1, 20/scale)
im.SameLine()
else
self.mgr:DrawTypeIcon(typename, false, 1, 20/scale)
im.SameLine()
if im.Selectable1(typename, typename==self.addVariableSettings.type) then
end
im.SameLine()
props:_drawInputField(self.addVariableSettings.value.path, self.addVariableSettings.value.cdata, self.addVariableSettings.type, self.addVariableSettings.value.value, "", function(n, val) self.addVariableSettings.value.value = val end)
end
im.SameLine()
if im.Button("Create", im.ImVec2(im.GetContentRegionAvailWidth(), -1)) then
im.SameLine()
im.Text(varName)
im.SameLine()
im.TextColored(separatorColor, "|")
im.TextColored(separatorColor, "|")
im.SameLine()
im.TextColored(valueTextColor, valueText)
im.TextColored(valueTextColor, valueText)
im.SameLine()
im.SameLine()
editor.uiIconImageButton(editor.icons.cloud_upload, im.ImVec2(24,24))
ui_flowgraph_editor.tooltip("Creates a setter node for this variable. (Drag and Drop also works)")
im.SameLine()
end
@/lua/ge/extensions/editor/dynamicDecals/colorHistory.lua
im.ColorEdit4(string.format("##colorHistoryColorWidget_%s_%d", guiId, k), editor.getTempFloatArray4_TableTable(color), im.flags(im.ColorEditFlags_NoInputs, im.ColorEditFlags_AlphaPreview))
im.SameLine()
if im.Button(string.format("Set as decal color##colorHistory_%s_%d", guiId, k)) then
end
im.SameLine()
if im.Button(string.format("Set as fill layer color##colorHistory_%s_%d", guiId, k)) then
end
im.SameLine()
@/lua/ge/extensions/editor/flowgraph/projectSettings.lua
local diffs = {'Easy','Medium','Hard','Very Hard'}
im.SameLine()
im.Text(diffs[math.floor(self.diffPtr[0]/25)+1] or 'Very Hard')
ui_flowgraph_editor.tooltip("This project is invisible. You can see it because you have Dev Mode enabled.")
im.SameLine()
end
ui_flowgraph_editor.tooltip("This project is transient. It cannot be saved.")
im.SameLine()
end
end
im.SameLine()
if im.Button("Save as...") then
@/lua/ge/extensions/core/vehicleTriggers.lua
local open = im.TreeNodeEx1("Vehicle " .. tostring(vehId) .. '##vehicle' .. tostring(vehId))
im.SameLine()
im.PushStyleColor2(im.Col_Text, im.ImVec4(0, 1, 0, 1))
im.PopStyleColor()
im.SameLine()
im.PushStyleColor2(im.Col_Text, im.ImVec4(0, 1, 1, 1))
im.PopStyleColor()
im.SameLine()
im.PushStyleColor2(im.Col_Text, im.ImVec4(1, 0, 1, 1))
local open2 = im.TreeNodeEx1("Triggers##triggers"..tostring(vehId))
im.SameLine()
im.PushStyleColor2(im.Col_Text, im.ImVec4(1, 1, 0, 1))
if lnk.namespace == 'common' then
im.SameLine()
im.TextUnformatted(tostring(lnk.commonLua and "[LUA]" or "[C++]"))
if trg.originSection ~= 'triggers2' then
im.SameLine()
im.TextUnformatted(' (' .. tostring(trg.originSection) .. ')')
im.TextUnformatted(tostring(lnk.action) .. ' - ' .. tostring(lnk.targetEvent.name))
im.SameLine()
im.SmallButton('trigger##lnk_'..tostring(lnk.cid)..'_'..tostring(vehId))
im.SameLine()
if not isSelected and im.SmallButton('highlight##highlight_'..tostring(trg.cid) .. '_' .. tostring(actionStr)) then
local open3 = im.TreeNodeEx1("Events##Events"..tostring(vehId))
im.SameLine()
im.PushStyleColor2(im.Col_Text, im.ImVec4(1, 1, 0, 1))
end
im.SameLine()
if evt.onDown ~= nil then
if sameLineNeeded then im.SameLine() end
if im.SmallButton('down##d'..tostring(evt.cid)..'_'..tostring(vehId)) then
if evt.onChange then
if sameLineNeeded then im.SameLine() end
if im.SmallButton('-1##z'..tostring(evt.cid)..'_'..tostring(vehId)) then
end
im.SameLine()
if im.SmallButton('0##z'..tostring(evt.cid)..'_'..tostring(vehId)) then
end
im.SameLine()
if im.SmallButton('1##o'..tostring(evt.cid)..'_'..tostring(vehId)) then
local open4 = im.TreeNodeEx1("TriggerEventLinks##TriggerEventLinks"..'_'..tostring(vehId))
im.SameLine()
im.PushStyleColor2(im.Col_Text, im.ImVec4(1, 1, 0, 1))
im.TextUnformatted(tostring(lnk.triggerInput) .. ' - ' .. tostring(lnk.inputAction))
im.SameLine()
im.SmallButton('trigger##u'..tostring(lnk.cid)..'_'..tostring(vehId))
im.TextUnformatted(tostring(lnk.action) .. ' - ' .. tostring(lnk.targetEvent.name))
im.SameLine()
im.SmallButton('trigger##u'..tostring(lnk.cid)..'_'..tostring(vehId))
@/lua/ge/extensions/editor/dynamicDecals/docs.lua
im.PopFont()
im.SameLine()
im.Separator()
@/lua/ge/extensions/flowgraph/nodes/vehicle/special/customVehicleGetter.lua
im.Text("Mode: ")
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth())
@/lua/ge/extensions/flowgraph/nodes/ui/updatedUI/endScreenWhole.lua
end
im.SameLine()
if im.Button("rem") then
@/lua/ge/extensions/flowgraph/pin.lua
--if self.type == 'number' or self.type == 'bool' or self.type == 'string' then
im.SameLine()
im.TextUnformatted(tostring(displayName) .. '=' .. ui_flowgraph_editor.shortValueString(constValue, self.type)) --formatValueForDisplay(constValue))
if not hide then
im.SameLine()
im.TextUnformatted(displayName)
end
im.SameLine()
im.Dummy(im.ImVec2((xStart + outWidth - (im.GetCursorPosX() + 4)), 1))
im.TextUnformatted(displayName)
im.SameLine()
--im.TextUnformatted('[' .. self.id .. '] ' .. self.name)
self.graph.mgr:DrawTypeIcon(self.type, connectedLink ~= nil, 1, nil, (constValue ~= nil) and im.ImVec4(0, 0, 1, 1) or nil)
im.SameLine()
im.TextUnformatted(self.name)
@/lua/ge/extensions/editor/crawlEditor/presets.lua
end
im.SameLine()
if im.Button("Cancel") then
end
im.SameLine()
if im.Button("Cancel") then
end
im.SameLine()
if im.Button("Cancel") then
im.Text(component.name)
im.SameLine()
if im.Button("Delete##trail" .. component.id) then
im.Text(component.name)
im.SameLine()
if im.Button("Delete##boundary" .. component.id) then
im.Text(component.name)
im.SameLine()
if im.Button("Delete##pathnode" .. component.id) then
@/lua/ge/extensions/editor/util/zoneSelectorUtil.lua
im.PopItemWidth()
im.SameLine()
-- Select All button
end
im.SameLine()
-- Remove All button
im.Text(zoneName)
im.SameLine()
if im.SmallButton("Remove##initialRemove"..i..e._id) then
im.PopItemWidth()
im.SameLine()
-- Select All button
end
im.SameLine()
-- Remove All button
im.Text(zoneName)
im.SameLine()
if im.SmallButton("Remove##destinationRemove"..i..e._id) then
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/veNodeTriSelfCollisionDetector.lua
im.SameLine()
@/lua/ge/extensions/editor/dynamicDecals/layerTypes/brushStroke.lua
end
im.SameLine()
im.ColorButton(string.format("##%s_%s_%s", layer.uid, guiId, "colorpalettemapidbutton"), editor.getTempImVec4_TableTable(col))
im.PopStyleColor()
im.SameLine()
enabled = layer.decalUv.y < 0 and true or false
im.TextUnformatted(tostring(k))
im.SameLine()
if editor.uiIconImageButton(editor.icons.delete, im.ImVec2(tool.getIconSize(), tool.getIconSize()), nil, nil, nil, string.format("##%s_%s_%s_%d", layer.uid, guiId, "interpolationSteps_removedataPointsEntry", k)) then
im.tooltip("Remove entry")
im.SameLine()
if k == count then im.BeginDisabled() end
if k == count then im.EndDisabled() end
im.SameLine()
im.SameLine()
im.PushItemWidth(im.GetContentRegionAvailWidth())
@/lua/ge/extensions/gameplay/util/crashDetection.lua
im.SameLine()
if im.Button("Exit Debug") then
im.Checkbox("Graph 1: Acceleration", crashData.debug.graphEnabled[1])
im.SameLine()
im.Checkbox("Graph 2: Jerk", crashData.debug.graphEnabled[2])
im.Checkbox("Graph 3: Threshold/Damage", crashData.debug.graphEnabled[3])
im.SameLine()
im.Checkbox("Graph 4: Events", crashData.debug.graphEnabled[4])