TextUnformatted
Definition
-- @/lua/common/extensions/ui/imgui_gen_luaintf.lua:288
function M.TextUnformatted(string_text, string_text_end)
-- string_text_end is optional and can be nil
if string_text == nil then log("E", "", "Parameter 'string_text' of function 'TextUnformatted' cannot be nil, as the c type is 'const char *'") ; return end
imgui.TextUnformatted(string_text, string_text_end)
end
Callers
@/lua/ge/extensions/flowgraph/basenode.lua
end
im.TextUnformatted(displayedName)
im.SameLine()
end
im.TextUnformatted(self.name)
im.Separator()
im.TextUnformatted('Custom Name:')
im.TextUnformatted(self.customName)
im.TextUnformatted('Custom Name:')
im.TextUnformatted(self.customName)
end
if self.obsolete then
im.TextUnformatted("OBSOLETE: " .. tostring(self.obsolete))
end
if self.description and self.description ~= "" then
im.TextUnformatted(tostring(self.description))
elseif self.nodeType == "macro/integrated" and self.targetGraph.description then
elseif self.nodeType == "macro/integrated" and self.targetGraph.description then
im.TextUnformatted(self.targetGraph.description)
--else
if self.todo then
im.TextUnformatted("TODO: " .. tostring(self.todo))
end
if self._error then
im.TextUnformatted('Errors:')
for k, v in pairs(self._error) do
for k, v in pairs(self._error) do
im.TextUnformatted(v)
end
--im.TextUnformatted('PIN ID: ' .. tostring(self.id))
im.PopTextWrapPos()
builder:Middle()
im.TextUnformatted(tostring(self._flowLevel))
elseif drawType == 'simple' then
builder:Middle()
--im.TextUnformatted(self.name)
local icon = self.customIcon or self.icon or "help"
builder:Middle()
im.TextUnformatted(self.id .. " : " .. self.name)
im.TextUnformatted("_trigger: " .. (self._trigger == nop and "nop" or "[func]") )
--if self._trigger and self._triggerCode then
--end
im.TextUnformatted("Triggered: " .. self.triggerCount)
--im.TextUnformatted("_work: " .. (self._work == nop and "nop" or "[func]") )
im.TextUnformatted("Triggered: " .. self.triggerCount)
--im.TextUnformatted("_work: " .. (self._work == nop and "nop" or "[func]") )
im.TextUnformatted("Worked: " .. self.workCount)
--im.TextUnformatted("_work: " .. (self._work == nop and "nop" or "[func]") )
im.TextUnformatted("Worked: " .. self.workCount)
if im.Button("Colors") then
builder:Middle()
im.TextUnformatted(self.name)
end
builder:Middle()
im.TextUnformatted(self.name)
end
for k, pin in pairs(self.pinIn) do
im.TextUnformatted('> ' .. k .. '[' .. pin.type .. ']')
end
for k, pin in pairs(self.pinInLocal) do
im.TextUnformatted('L> ' .. k .. '[' .. pin.type .. ']')
end
for k, pin in pairs(self.pinOut) do
im.TextUnformatted(k .. '[' .. pin.type .. '] >')
end
--for parentNode, _ in pairs(self._flowColors) do
-- im.TextUnformatted(tostring(parentNode.id))
--end
@/lua/ge/extensions/editor/undoHistory.lua
imgui.Columns(2)
imgui.TextUnformatted("Undo Stack")
imgui.SameLine()
imgui.TextUnformatted("Redo Stack")
imgui.SameLine()
@/lua/ge/extensions/editor/vehicleDetailViewer.lua
if im.BeginMenu('View details##VDV_'..tostring(view.name)) then -- there is only one at any point in time
im.TextUnformatted('Name: ' .. tostring(view.name))
im.TextUnformatted('Zoom: ' .. tostring(customRound(view.zoom, 4)))
im.TextUnformatted('Name: ' .. tostring(view.name))
im.TextUnformatted('Zoom: ' .. tostring(customRound(view.zoom, 4)))
im.TextUnformatted('Offset: ' ..tostring(customRound(view.dragOffset.x, 4)) .. ', ' .. tostring(customRound(view.dragOffset.y, 4)))
im.TextUnformatted('Zoom: ' .. tostring(customRound(view.zoom, 4)))
im.TextUnformatted('Offset: ' ..tostring(customRound(view.dragOffset.x, 4)) .. ', ' .. tostring(customRound(view.dragOffset.y, 4)))
im.TextUnformatted('Nearclip: ' .. tostring(customRound(view.nearClip, 4)))
im.TextUnformatted('Offset: ' ..tostring(customRound(view.dragOffset.x, 4)) .. ', ' .. tostring(customRound(view.dragOffset.y, 4)))
im.TextUnformatted('Nearclip: ' .. tostring(customRound(view.nearClip, 4)))
im.TextUnformatted('Resolution: ' .. tostring(math.floor(view.size.x)) .. 'x' .. tostring(math.floor(view.size.y)))
im.TextUnformatted('Nearclip: ' .. tostring(customRound(view.nearClip, 4)))
im.TextUnformatted('Resolution: ' .. tostring(math.floor(view.size.x)) .. 'x' .. tostring(math.floor(view.size.y)))
im.EndMenu()
im.PushStyleColor2(im.Col_Text, im.ImVec4(1, 1, 1, 0.8))
im.TextUnformatted('click+drag = move')
im.TextUnformatted('mousewheel = zoom')
im.TextUnformatted('click+drag = move')
im.TextUnformatted('mousewheel = zoom')
im.TextUnformatted('shift + mousewheel = nearclip')
im.TextUnformatted('mousewheel = zoom')
im.TextUnformatted('shift + mousewheel = nearclip')
im.TextUnformatted('doubleclick = reset')
im.TextUnformatted('shift + mousewheel = nearclip')
im.TextUnformatted('doubleclick = reset')
im.PopStyleColor()
im.TextUnformatted("Save Layout")
im.SameLine()
if #availableLayoutFiles > 0 then
im.TextUnformatted("Available Layouts:")
for lidx, layoutFilename in ipairs(availableLayoutFiles) do
im.PushStyleColor2(im.Col_Text, im.ImVec4(0, 1, 0, 1))
im.TextUnformatted(baseFilename)
im.PopStyleColor()
else
im.TextUnformatted(baseFilename)
end
if im.BeginMenu('Options##VDV_'..tostring(view.name)) then
im.TextUnformatted('Image resolution multiplier: ')
im.SameLine()
im.PushStyleColor2(im.Col_Text, im.ImVec4(1, 0, 0, 1))
im.TextUnformatted('>> DISABLE VSYNC: there will be render problems')
im.PopStyleColor()
im.SetCursorPosY(35)
im.TextUnformatted('[Right click for context menu]')
im.SetCursorPosX(5)
im.SetCursorPosY(55)
im.TextUnformatted(view.typeName)
im.SetCursorPosX(5)
im.SetCursorPosX(5)
im.TextUnformatted('Nearclip: ' .. tostring(customRound(view.nearClip, 6)))
im.PushStyleColor2(im.Col_Text, im.ImVec4(0, 1, 0, 1))
im.TextUnformatted(view.statusMessage)
if im.IsItemClicked(0) then
@/lua/ge/extensions/editor/dynamicDecals/layerTypes/linkedSet.lua
im.PushTextWrapPos(im.GetContentRegionAvailWidth())
im.TextUnformatted("Properties have been altered and the changes have not been applied yet.\nHit the 'Apply' button in order to propagate the values to all child layers.")
im.PopTextWrapPos()
im.PushTextWrapPos(im.GetContentRegionAvailWidth())
im.TextUnformatted([[
Linked Set Layers introduce a powerful way to streamline the management of multiple layers.
@/lua/ge/extensions/editor/dynamicDecals/helper.lua
im.SetCursorPosX(im.GetCursorPosX() + im.GetContentRegionAvailWidth() / 2 - im.CalcTextSize(string_label).x / 2)
im.TextUnformatted(string_label)
end
im.Image(img.texId, im.ImVec2(imgWidth, imgHeight), im.ImVec2(0,0), im.ImVec2(1,1), nil, editor.color.beamng.Value)
im.TextUnformatted(string.format("%d x %d", img.size.x, img.size.y))
end
im.Image(img.texId, im.ImVec2(imgWidth, imgHeight), im.ImVec2(0,0), im.ImVec2(1,1), nil, editor.color.beamng.Value)
im.TextUnformatted(string.format("%d x %d", img.size.x, img.size.y))
im.EndTooltip()
@/lua/ge/extensions/editor/dynamicDecals/debugSection.lua
im.TextUnformatted(string.format("api.projectDynamicDecals: %s", api.projectDynamicDecals and "true" or "false"))
local buttonWidth = (maxWidth - style.ItemSpacing.x) / 2
im.TextUnformatted(string.format("depth: %f", api.getDepth()))
im.TextUnformatted(string.format("surfaceNormal: %s", api.getSurfaceNormal()))
im.TextUnformatted(string.format("depth: %f", api.getDepth()))
im.TextUnformatted(string.format("surfaceNormal: %s", api.getSurfaceNormal()))
im.TextUnformatted(string.format("currentMaskEditingLayerUid: %s", tool.getCurrentMaskEditingLayerUid()))
@/lua/ge/extensions/editor/dynamicDecals/settings.lua
im.TextUnformatted("UV Layer")
im.SameLine()
local textureResolution = api.getTextureResolution()
im.TextUnformatted(string.format("Current x: %d y: %d", textureResolution.x, textureResolution.y))
im.Dummy(im.ImVec2(0,4))
im.TextUnformatted("x")
im.SameLine()
im.PopItemWidth()
im.TextUnformatted("y")
im.SameLine()
@/lua/ge/extensions/core/vehicle/mirror.lua
for k,v in pairs(imguiMirrordata) do
im.TextUnformatted(dumps(k))
local hover = im.IsItemHovered()
@/lua/ge/extensions/editor/trafficDebug.lua
im.TextUnformatted("All traffic vehicles (also players)")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(tostring(trafficTotalAmount))
im.NextColumn()
im.NextColumn()
im.TextUnformatted(tostring(trafficAmount))
im.NextColumn()
im.NextColumn()
im.TextUnformatted(tostring(trafficActiveAmount))
im.NextColumn()
im.NextColumn()
im.TextUnformatted(tostring(policeAmount))
im.NextColumn()
im.NextColumn()
im.TextUnformatted(tostring(parkedAmount))
im.NextColumn()
im.Dummy(im.ImVec2(0, 5))
im.TextUnformatted("Traffic Variables")
im.Dummy(im.ImVec2(0, 5))
im.TextUnformatted("Parking Variables")
@/lua/ge/extensions/editor/flowgraph/references.lua
if im.InputText("##findReferenceByName", self.searchText, nil) then
im.TextUnformatted('Looking for ' .. ffi.string(self.searchText) .. ' ....')
@/lua/ge/extensions/editor/inspector.lua
local textColor = imgui.GetStyleColorVec4(imgui.Col_Text)
imgui.TextUnformatted("Class:") imgui.SameLine() imgui.TextColored(textColor, valueInspector.selectionClassName)
imgui.SameLine()
imgui.TextUnformatted("ID:") imgui.SameLine() imgui.TextColored(textColor, tostring(obj:getId()))
imgui.SameLine()
if grp then
imgui.TextUnformatted("Parent:") imgui.SameLine() imgui.TextColored(textColor, tostring(grp:getName()))
end
if #dynFields == 0 and #valueInspector.selectedIds > 1 then
imgui.TextUnformatted("No common dynamic fields")
else
imgui.SetCursorPos(imgui.ImVec2(textStartCursorPos.x + fontSize/2, fontSize))
imgui.TextUnformatted("0.0")
imgui.SameLine()
imgui.SetCursorPosX(fontSize*2 + (size.x)/2)
imgui.TextUnformatted("U")
imgui.SameLine()
imgui.SetCursorPosX(size.x - (imgui.CalcTextSize("1.0").x) + 2*fontSize)
imgui.TextUnformatted("1.0")
imgui.SetCursorPos(imgui.ImVec2(textStartCursorPos.x + fontSize, fontSize*2 + size.y / 2))
imgui.TextUnformatted("V")
imgui.SetCursorPos(imgui.ImVec2(textStartCursorPos.x + fontSize/2, size.y + fontSize))
imgui.TextUnformatted("1.0")
imgui.TextUnformatted("Type ".."[".. tostring(groundCoverUVTypeIndex) .."]")
imgui.TextUnformatted("U: ")
imgui.SameLine()
imgui.TextUnformatted("V: ")
imgui.SameLine()
imgui.TextUnformatted("Width: ")
imgui.SameLine()
imgui.TextUnformatted("Height: ")
imgui.SameLine()
imgui.TextUnformatted("Handle Color: ")
imgui.SameLine()
imgui.SetCursorPosX(imgui.GetCursorPos().x + fontSize)
imgui.TextUnformatted("Background Color: ")
imgui.SameLine()
@/lua/ge/extensions/editor/dynamicDecals/widgets.lua
im.TextUnformatted(property.name or api.propertiesMap[property.id].name)
local description = property.description or api.propertiesMap[property.id].description
@/lua/ge/extensions/flowgraph/nodes/types/bool.lua
builder:Middle()
im.TextUnformatted(tostring(self.data.value))
end
@/lua/ge/extensions/flowgraph/nodes/logic/sequencer.lua
builder:Middle()
im.TextUnformatted(self.mode)
im.TextUnformatted(tostring(modes[self.mode](self.index,self.count)) .. " ("..tostring(self.index)..")")
im.TextUnformatted(self.mode)
im.TextUnformatted(tostring(modes[self.mode](self.index,self.count)) .. " ("..tostring(self.index)..")")
end
@/lua/ge/extensions/editor/extensionsEditor.lua
imgui.Spacing()
imgui.TextUnformatted("Control the loading of the editor extensions.")
imgui.TextUnformatted("NOTE: You will need to reload Lua (Ctrl+L) for the changes to take effect.")
imgui.TextUnformatted("Control the loading of the editor extensions.")
imgui.TextUnformatted("NOTE: You will need to reload Lua (Ctrl+L) for the changes to take effect.")
imgui.TextUnformatted("If an extension is not working properly, you can start editor in safe mode (Ctrl+F11) and disable it here.")
imgui.TextUnformatted("NOTE: You will need to reload Lua (Ctrl+L) for the changes to take effect.")
imgui.TextUnformatted("If an extension is not working properly, you can start editor in safe mode (Ctrl+F11) and disable it here.")
imgui.Spacing()
@/lua/ge/extensions/flowgraph/pin.lua
im.SameLine()
im.TextUnformatted(tostring(displayName) .. '=' .. ui_flowgraph_editor.shortValueString(constValue, self.type)) --formatValueForDisplay(constValue))
-- else
-- else
-- im.TextUnformatted(tostring(self.name) .. '= (' .. tostring(self.type) .. ')')
--end
im.SameLine()
im.TextUnformatted(displayName)
--im.TextUnformatted(self.name .. ' [' .. self.id .. ']')
im.TextUnformatted(displayName)
--im.TextUnformatted(self.name .. ' [' .. self.id .. ']')
end
im.SetCursorPosX(xStart + outWidth - 16 - dnWidth.x - 3)
im.TextUnformatted(displayName)
im.SameLine()
im.SameLine()
--im.TextUnformatted('[' .. self.id .. '] ' .. self.name)
end
im.SameLine()
im.TextUnformatted(self.name)
im.Separator();
end
im.TextUnformatted(typeTxt)
if self.type == "table" or (type(self.type) == 'table' and tableContains(self.type,'table')) then
im.TextUnformatted("Table type: "..self:getTableType())
end
--im.TextUnformatted('Value: ' .. valStr)
--im.Text(val)
--im.Text(ui_flowgraph_editor.fullValueString(val, self.hardCodeType and self.hardCodeType or self.type))
--im.TextUnformatted('PIN ID: ' .. tostring(self.id))
--im.TextUnformatted("lastUsed: " .. tostring(self._frameLastUsed))
--im.TextUnformatted('PIN ID: ' .. tostring(self.id))
--im.TextUnformatted("lastUsed: " .. tostring(self._frameLastUsed))
im.Separator();
im.TextUnformatted('Description: ' .. tostring(self.description))
end
im.Separator();
im.TextUnformatted("ID: " .. self.id)
end
@/lua/ge/extensions/editor/roadTemplateEditor.lua
im.PushTextWrapPos(im.GetFontSize() * 35.0)
im.TextUnformatted(string.format("%d x %d", editor_roadUtils.getMaterials()[i].size.x, editor_roadUtils.getMaterials()[i].size.y))
im.TextUnformatted(string.format("%s", editor_roadUtils.getRoadTemplateFiles()[i]))
im.TextUnformatted(string.format("%d x %d", editor_roadUtils.getMaterials()[i].size.x, editor_roadUtils.getMaterials()[i].size.y))
im.TextUnformatted(string.format("%s", editor_roadUtils.getRoadTemplateFiles()[i]))
im.PopTextWrapPos()
@/lua/ge/extensions/trackbuilder/trackBuilder.lua
im.PushTextWrapPos(im.GetFontSize() * 35.0)
im.TextUnformatted(tex.path)
im.TextUnformatted(string.format("%d x %d", tex.size.x, tex.size.y))
im.TextUnformatted(tex.path)
im.TextUnformatted(string.format("%d x %d", tex.size.x, tex.size.y))
im.PopTextWrapPos()
@/lua/ge/extensions/editor/cameraTransform.lua
end
im.TextUnformatted("Camera Transform")
@/lua/ge/extensions/flowgraph/nodes/types/transform.lua
local oldMode = self.mode
im.TextUnformatted("Mode:")
im.SameLine()
@/lua/ge/extensions/editor/objectToSplineEditor.lua
local str = "none"
im.TextUnformatted("Object: ")
im.NextColumn()
end
im.TextUnformatted(str)
im.SameLine()
str = guideId or "none"
im.TextUnformatted("Spline: ")
im.NextColumn()
end
im.TextUnformatted(str)
im.SameLine()
-- basic parameters
im.TextUnformatted("Setup")
im.Dummy(im.ImVec2(0, 5))
im.TextUnformatted("Advanced")
im.SameLine()
im.TextUnformatted("Object Axis")
@/lua/ge/extensions/editor/dynamicDecals/inspector.lua
local widgetId = string.format("%s_%s", layer.uid, guiId)
im.TextUnformatted("uid")
im.SameLine()
im.TextUnformatted("Type")
im.SameLine()
im.PushTextWrapPos(im.GetContentRegionAvailWidth())
im.TextUnformatted([[
The Inspector is a powerful tool that enables you to access and modify all the properties of the selected layers.
for layerType, layerTypeId in pairs(api.layerTypes) do
layerGui[layerTypeId] = function() im.TextUnformatted(string.format("No layerGui available for '%s'", layerType)) end
end
@/lua/ge/extensions/util/screenshotCreator.lua
im.TextUnformatted('Final resolution: ' .. tostring(x) .. ' x ' .. tostring(y))
im.TextUnformatted('Megapixel = ' .. string.format('%0.2f', x * y / 1000000))
im.TextUnformatted('Final resolution: ' .. tostring(x) .. ' x ' .. tostring(y))
im.TextUnformatted('Megapixel = ' .. string.format('%0.2f', x * y / 1000000))
local rawSize = x * y * 3 -- RGB = 3 byte
local rawSize = x * y * 3 -- RGB = 3 byte
im.TextUnformatted('Raw image size = ' .. (bytes_to_string(rawSize)))
im.TextUnformatted('Estimated JPG file size = ' .. (bytes_to_string(rawSize * 0.14)))
im.TextUnformatted('Raw image size = ' .. (bytes_to_string(rawSize)))
im.TextUnformatted('Estimated JPG file size = ' .. (bytes_to_string(rawSize * 0.14)))
@/lua/ge/extensions/editor/forestEditor.lua
local function inspectorField_String(key, value)
im.TextUnformatted(key)
im.NextColumn()
im.NextColumn()
im.TextUnformatted(value)
im.NextColumn()
local item = editor.selection.forestItem[1]
im.TextUnformatted("ForestItem")
im.Columns(2, "assetInspectorGuiForestItem_columns")
if 0 ~= item:getUid() then
im.TextUnformatted("UniqueID")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(tostring(item:getUid()))
im.SameLine()
end
im.TextUnformatted("Position")
im.NextColumn()
im.NextColumn()
im.TextUnformatted("Rotation")
im.NextColumn()
im.NextColumn()
-- im.TextUnformatted("Pos : "..tostring (item:getPosition()))
im.TextUnformatted("Scale")
-- im.TextUnformatted("Pos : "..tostring (item:getPosition()))
im.TextUnformatted("Scale")
im.NextColumn()
-- im.TextUnformatted("Tr : "..tostring (item:getTransform()))
-- el = item:getTransform():toEuler()
-- el = item:getTransform():toEuler()
-- im.TextUnformatted("Tr el: "..tostring (el))
inspectorField_String("Shape", tostring(item:getData():getShapeFile()))
im.Columns(2, "assetInspectorGuiForestItem_columns")
im.TextUnformatted("Parallax Mapping")
im.NextColumn()
im.TextUnformatted("TextureSet Id")
im.NextColumn()
local function sliderFloat(text, id, val, vmin, vmax, format, power, editEnded, fn, tooltip, mouseWheelPower)
im.TextUnformatted(text)
im.SameLine()
end
im.TextUnformatted("Brush Settings: \t")
im.SameLine()
im.SetCursorPos(im.ImVec2(cPos.x + var.style.FramePadding.x, cPos.y))
im.TextUnformatted(item.internalName)
end
im.SetCursorPos(im.ImVec2(cPos.x + var.style.FramePadding.x, cPos.y))
im.TextUnformatted(obj.name)
end
if pM_selectedTextureSetId > 0 then
im.TextUnformatted(string.format("Selected texture set: %d", pM_selectedTextureSetId))
im.SameLine()
@/lua/ge/extensions/editor/dynamicDecals/camera.lua
im.PushTextWrapPos(im.GetContentRegionAvailWidth())
im.TextUnformatted([[
The Camera presets section allows you to effortlessly navigate and view your designs from different angles and distances.
@/lua/ge/extensions/editor/dynamicDecals/fonts.lua
im.TextUnformatted("Check the 'Fonts' section in order to generate more font atlases.")
im.SameLine()
im.TableNextColumn()
im.TextUnformatted("Font Name")
im.TableNextColumn()
im.TableNextColumn()
im.TextUnformatted(header.font_name)
im.TableNextColumn()
im.TextUnformatted("Version")
im.TableNextColumn()
im.TableNextColumn()
im.TextUnformatted(tostring(header.version))
im.TableNextColumn()
im.TextUnformatted("Atlas Dimensions")
im.TableNextColumn()
im.TableNextColumn()
im.TextUnformatted(string.format("[%d, %d]", header.atlas_width, header.atlas_height))
im.TableNextColumn()
im.TextUnformatted("Atlas Monospaced Dimensions")
im.TableNextColumn()
im.TableNextColumn()
im.TextUnformatted(string.format("[%d, %d]", header.atlas_monospaced_width, header.atlas_monospaced_height))
im.TableNextColumn()
im.TextUnformatted("Glyph Pixel Height")
im.TableNextColumn()
im.TableNextColumn()
im.TextUnformatted(string.format("%.1f", header.glyph_pixel_height))
im.TableNextColumn()
im.TextUnformatted("First Character")
im.TableNextColumn()
im.TableNextColumn()
im.TextUnformatted(tostring(header.first_char))
im.TableNextColumn()
im.TextUnformatted("Glyph Count")
im.TableNextColumn()
im.TableNextColumn()
im.TextUnformatted(tostring(header.glyph_count))
im.TableNextColumn()
im.TextUnformatted("SDF Padding")
im.TableNextColumn()
im.TableNextColumn()
im.TextUnformatted(tostring(header.sdf.padding))
im.TableNextColumn()
im.TextUnformatted("SDF OnEdge Value")
im.TableNextColumn()
im.TableNextColumn()
im.TextUnformatted(tostring(header.sdf.onedge_value))
im.TableNextColumn()
im.TextUnformatted("SDF Pixel Dist Scale")
im.TableNextColumn()
im.TableNextColumn()
im.TextUnformatted(string.format("%.1f", header.sdf.pixel_dist_scale))
end
local function sectionGui(guiId)
im.TextUnformatted("Generated Font Atlases")
im.SameLine()
if im.TreeNode1("Header##Font") then
im.TextUnformatted("Version: " .. tostring(header["version"]))
im.TextUnformatted("Font Name: " .. tostring(header["font_name"]))
im.TextUnformatted("Version: " .. tostring(header["version"]))
im.TextUnformatted("Font Name: " .. tostring(header["font_name"]))
im.TextUnformatted("Atlas Width: " .. tostring(header["atlas_width"]))
im.TextUnformatted("Font Name: " .. tostring(header["font_name"]))
im.TextUnformatted("Atlas Width: " .. tostring(header["atlas_width"]))
im.TextUnformatted("Atlas Height: " .. tostring(header["atlas_height"]))
im.TextUnformatted("Atlas Width: " .. tostring(header["atlas_width"]))
im.TextUnformatted("Atlas Height: " .. tostring(header["atlas_height"]))
im.TextUnformatted("Glyph Pixel Height: " .. tostring(header["glyph_pixel_height"]))
im.TextUnformatted("Atlas Height: " .. tostring(header["atlas_height"]))
im.TextUnformatted("Glyph Pixel Height: " .. tostring(header["glyph_pixel_height"]))
im.TextUnformatted("First Char Index: " .. tostring(header["first_char"]))
im.TextUnformatted("Glyph Pixel Height: " .. tostring(header["glyph_pixel_height"]))
im.TextUnformatted("First Char Index: " .. tostring(header["first_char"]))
im.TextUnformatted("Glyph Count: " .. tostring(header["glyph_count"]))
im.TextUnformatted("First Char Index: " .. tostring(header["first_char"]))
im.TextUnformatted("Glyph Count: " .. tostring(header["glyph_count"]))
im.TextUnformatted("Ascent: " .. tostring(header["ascent"]))
im.TextUnformatted("Glyph Count: " .. tostring(header["glyph_count"]))
im.TextUnformatted("Ascent: " .. tostring(header["ascent"]))
im.TextUnformatted("Descent: " .. tostring(header["descent"]))
im.TextUnformatted("Ascent: " .. tostring(header["ascent"]))
im.TextUnformatted("Descent: " .. tostring(header["descent"]))
im.TextUnformatted("Line Gap: " .. tostring(header["line_gap"]))
im.TextUnformatted("Descent: " .. tostring(header["descent"]))
im.TextUnformatted("Line Gap: " .. tostring(header["line_gap"]))
im.Separator()
im.TextUnformatted("Glyph [ASCII]")
im.SameLine()
im.SetCursorPosX(textPosX)
im.TextUnformatted("exists: " .. tostring(char["exists"]))
im.SetCursorPosX(textPosX)
im.SetCursorPosX(textPosX)
im.TextUnformatted("monospaced_x: " .. tostring(char["monospaced_x"]))
im.SetCursorPosX(textPosX)
im.SetCursorPosX(textPosX)
im.TextUnformatted("monospaced_y: " .. tostring(char["monospaced_y"]))
-- im.SetCursorPosX(textPosX)
-- im.SetCursorPosX(textPosX)
-- im.TextUnformatted("x0: " .. tostring(char["x0"]))
-- im.SetCursorPosX(textPosX)
-- im.SetCursorPosX(textPosX)
-- im.TextUnformatted("y0: " .. tostring(char["y0"]))
-- im.SetCursorPosX(textPosX)
-- im.SetCursorPosX(textPosX)
-- im.TextUnformatted("x1: " .. tostring(char["x1"]))
-- im.SetCursorPosX(textPosX)
-- im.SetCursorPosX(textPosX)
-- im.TextUnformatted("y1: " .. tostring(char["y1"]))
-- im.SetCursorPosX(textPosX)
-- im.SetCursorPosX(textPosX)
-- im.TextUnformatted("width: " .. tostring(char["width"]))
-- im.SetCursorPosX(textPosX)
-- im.SetCursorPosX(textPosX)
-- im.TextUnformatted("height: " .. tostring(char["height"]))
im.SetCursorPosX(textPosX)
im.SetCursorPosX(textPosX)
im.TextUnformatted("xoff: " .. tostring(char["xoff"]))
im.SetCursorPosX(textPosX)
im.SetCursorPosX(textPosX)
im.TextUnformatted("yoff: " .. tostring(char["yoff"]))
im.SetCursorPosX(textPosX)
im.SetCursorPosX(textPosX)
im.TextUnformatted("xadvance: " .. tostring(char["xadvance"]))
local afterTextPos = im.GetCursorPos()
im.TextUnformatted("Generation")
im.TextUnformatted("Font Path")
im.TextUnformatted("Generation")
im.TextUnformatted("Font Path")
im.PushItemWidth(im.GetContentRegionAvailWidth() - 1 * tool.getIconSize() - 1 * im.GetStyle().ItemSpacing.x)
im.TextUnformatted("Glyph Pixel Height")
im.SameLine()
@/lua/ge/extensions/editor/trafficManager.lua
im.TextUnformatted("Filter by Type:")
-- Vehicle types: Standard, Simple, Parked, Props, Any
if options.vehicleGroupEnabled[0] then
im.TextUnformatted("Advanced Mode:")
if not next(session.vehicles) then
im.TextUnformatted("Spawn an object via the Vehicle Selector to begin.")
else
else
im.TextUnformatted("Select an object from the list to view data.")
end
im.TextUnformatted("Properties")
local niceName = core_vehicle_manager.getVehicleData(vehId).vdata.information.name or currVeh.jbeam
im.TextUnformatted("Stats")
im.TextUnformatted("Speed")
im.NextColumn()
local speed = mapVehData.vel and mapVehData.vel:length() or 0
im.TextUnformatted(string.format("%0.2f", convertSpeed(speed, speedUnits[options.speedUnits[0]])))
im.SameLine()
im.TextUnformatted("Distance")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(string.format("%0.2f", convertDistance(sessionData.stats.distance, distanceUnits[options.distanceUnits[0]])))
im.SameLine()
im.TextUnformatted("Acceleration")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(string.format("%0.2f G", sessionData.stats.gForce))
im.NextColumn()
im.TextUnformatted("Timer")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(string.format("%0.1f", sessionData.stats.timer))
im.NextColumn()
im.TextUnformatted("Avg Speed (10 s)")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(string.format("%0.2f %s", convertSpeed(sessionData.stats.avgSpeed, speedUnits[options.speedUnits[0]]), speedUnits[options.speedUnits[0]]))
im.NextColumn()
im.TextUnformatted("Max Speed")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(string.format("%0.2f %s", convertSpeed(sessionData.stats.maxSpeed, speedUnits[options.speedUnits[0]]), speedUnits[options.speedUnits[0]]))
im.NextColumn()
im.TextUnformatted("Actions (All Unlocked Objects)")
im.TextUnformatted("Properties")
im.TableSetBgColor(im.TableBgTarget_CellBg, im.GetColorU322(imColors.basicLights[i] or imColors.basicLights[4]), i - 1)
im.TextUnformatted(" ")
end
im.TextUnformatted("Controls")
if im.BeginPopupModal("Confirm##trafficManager", nil, im.WindowFlags_AlwaysAutoResize) then
im.TextUnformatted(confirmData.txt)
im.Dummy(imSizes.dummy)
@/lua/ge/extensions/editor/ffiptrleaktest.lua
im.TextUnformatted("ImVec2& vs ImVec2* test")
im.Image(image.tex:getID(), im.ImVec2(256,256), im.ImVec2(0,0), im.ImVec2(1,1));
@/lua/ge/extensions/editor/mainToolbar.lua
im.PushItemWidth(80)
im.TextUnformatted("Time of day")
im.TableSetColumnIndex(1)
im.PushItemWidth(100)
im.TextUnformatted("Icons Distance")
im.TableSetColumnIndex(1)
im.PushItemWidth(100)
im.TextUnformatted("Camera Speed")
im.TableSetColumnIndex(1)
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/veView.lua
else
im.TextUnformatted('...')
end
@/lua/ge/extensions/editor/windows.lua
if im.ImGuiTextFilter_PassFilter(filter, name) then
im.TextUnformatted(name)
im.NextColumn()
@/lua/ge/extensions/editor/dynamicDecals/layerTypes/brushStroke.lua
im.Columns(2, "layerDataColumns")
im.TextUnformatted("uid")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(layer.uid)
im.NextColumn()
im.TextUnformatted("name")
im.NextColumn()
im.TextUnformatted("enabled")
im.NextColumn()
im.TextUnformatted("type")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(string.format("%s layer", api.layerTypesMap[layer.type]))
im.NextColumn()
im.TextUnformatted("camera position")
im.NextColumn()
im.TextUnformatted("colorPaletteMapId")
im.NextColumn()
if layer.colorPaletteMapId == 0 then
im.TextUnformatted("decal - use gradient color")
im.NextColumn()
if layer.decalUseGradientColor then
im.TextUnformatted("decal gradient color")
im.NextColumn()
else
im.TextUnformatted("color")
im.NextColumn()
im.TextUnformatted("decal scale")
im.NextColumn()
im.TextUnformatted("decal rotation")
im.NextColumn()
im.TextUnformatted("decal uv / flipped")
im.NextColumn()
im.TextUnformatted("decal skew")
im.NextColumn()
im.TextUnformatted("mirrored")
im.NextColumn()
im.TextUnformatted("flipMirroredDecal")
im.NextColumn()
im.TextUnformatted("color texture scale")
im.NextColumn()
im.TextUnformatted("alpha mask channel")
im.NextColumn()
im.TextUnformatted("alpha mask blend mode")
im.NextColumn()
im.TextUnformatted("alpha mask scale")
im.NextColumn()
im.TextUnformatted("alpha mask rotation")
im.NextColumn()
im.TextUnformatted("alpha mask intensity")
im.NextColumn()
im.TextUnformatted("wrap alpha mask X")
im.NextColumn()
im.TextUnformatted("wrap alpha mask Y")
im.NextColumn()
im.TextUnformatted("wrap color mask X")
im.NextColumn()
im.TextUnformatted("wrap color mask Y")
im.NextColumn()
im.TextUnformatted("alpha mask invert")
im.NextColumn()
im.TextUnformatted("interpolationSteps")
helper.iconTooltip("Number of decals placed in-between decals of the brush stroke in order to make the stroke appear smoother.", true)
if layer.sdfThickness then
im.TextUnformatted("SDF thickness")
im.NextColumn()
im.TextUnformatted("SDF softness")
im.NextColumn()
im.TextUnformatted("sdf outline color")
im.NextColumn()
im.TextUnformatted("SDF outline thickness")
im.NextColumn()
im.TextUnformatted("SDF outline softness")
im.NextColumn()
im.TextUnformatted("decal color texture path")
im.NextColumn()
im.TextUnformatted("decal alpha texture path")
im.NextColumn()
im.TextUnformatted("decal normal texture path")
im.NextColumn()
im.TextUnformatted("decal metallic texture path")
im.NextColumn()
im.TextUnformatted("decal roughness texture path")
im.NextColumn()
im.TextUnformatted("blend mode")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(api.blendModes[layer.blendMode + 1].name)
im.NextColumn()
im.TextUnformatted("worldToViewToScreen")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(layer.worldToViewToScreen:__tostring())
im.NextColumn()
im.TextUnformatted("dataPoints")
im.NextColumn()
local count = #layer.dataPoints
im.TextUnformatted(string.format("count: %d", count))
for k, data in ipairs(layer.dataPoints) do
im.TextUnformatted(tostring(k))
im.SameLine()
im.PushTextWrapPos(im.GetContentRegionAvailWidth())
im.TextUnformatted([[
Brush Stroke Layers function as virtual brush strokes, offering a seamless way to apply decals in a stroke-like fashion.
im.TableNextColumn()
im.TextUnformatted(property.name)
if #property.description > 0 then
im.TableNextColumn()
im.TextUnformatted(property.id)
im.TableNextColumn()
im.TableNextColumn()
im.TextUnformatted(api.typesMap[property.type])
im.TableNextColumn()
@/lua/ge/extensions/flowgraph/nodes/gameplay/sites/zoneByName.lua
builder:Middle()
im.TextUnformatted((self._zone and (not self._zone.missing)) and self.pinIn.zoneName.value or "No zone!")
end
@/lua/ge/extensions/editor/multiSpawnManager.lua
local function editGroup() -- displays options and modifies the currently selected group
im.TextUnformatted("Edit Group")
im.SameLine()
im.TextUnformatted("Group Type")
if not currGroup.tags[1] then
im.TextUnformatted("No tags applied")
else
for i, v in ipairs(currGroup.tags) do
im.TextUnformatted(v)
im.SameLine()
im.SameLine()
im.TextUnformatted("Group Tags")
im.TextUnformatted("Index")
im.NextColumn()
im.NextColumn()
im.TextUnformatted("Config Name")
im.NextColumn()
im.NextColumn()
im.TextUnformatted("Population")
im.NextColumn()
for i, v in ipairs(options.generatedGroup) do
im.TextUnformatted(tostring(i))
im.NextColumn()
configName = config and config.Configuration or ""
im.TextUnformatted(modelName.." "..configName)
im.NextColumn()
im.NextColumn()
im.TextUnformatted(tostring(v.configPop))
im.NextColumn()
im.TextUnformatted("Vehicle #"..tostring(options.vehIdx))
im.NextColumn()
if editor.beginModalWindow(overwriteGroupWindowName, "Confirm") then
im.TextUnformatted("Are you sure?")
im.TextUnformatted("This will overwrite the current group.")
im.TextUnformatted("Are you sure?")
im.TextUnformatted("This will overwrite the current group.")
if im.Button("Yes##overwriteGroup") then
local function spawnGroup() -- spawns the current vehicle group into the world
im.TextUnformatted("Spawn Group")
im.TextUnformatted("Current Vehicle Group: ")
im.SameLine()
else
im.TextUnformatted("Create or select a vehicle group to continue.")
if im.Button("New Group") then
@/lua/ge/extensions/flowgraph/nodes/gameplay/sites/locationByName.lua
builder:Middle()
im.TextUnformatted((self._location and (not self._location.missing)) and self.pinIn.locationName.value or "No location!")
end
@/lua/ge/extensions/editor/visualization.lua
end
local function _bullet(text) im.Bullet(); im.SameLine(); im.TextUnformatted(text) end
im.SameLine()
im.TextUnformatted(label)
end
im.TextUnformatted(def.title or name)
im.PushStyleVar2(im.StyleVar_ItemSpacing, vec2(_uiScale(6), _uiScale(6)))
im.TextUnformatted(left)
im.SameLine()
im.SameLine()
im.TextUnformatted(right)
im.PopStyleVar()
@/lua/ge/extensions/editor/dynamicDecals/layerTypes/group.lua
im.PushTextWrapPos(im.GetContentRegionAvailWidth())
im.TextUnformatted([[
Group Layers offer a streamlined approach to organizing your layer stack or project.
@/lua/ge/extensions/flowgraph/nodes/logic/booleanExpression.lua
builder:Middle()
im.TextUnformatted(self.data.expression)
end
@/lua/common/extensions/ui/improfiler.lua
if im.Begin("LuaJIT Profiler", windowOpen) then
im.TextUnformatted(outStringCache)
im.End()
@/lua/ge/extensions/editor/roadEditor.lua
im.PushTextWrapPos(im.GetFontSize() * 35.0)
im.TextUnformatted(string.format("%d x %d", editor_roadUtils.getMaterials()[i].size.x, editor_roadUtils.getMaterials()[i].size.y ))
im.TextUnformatted(string.format("%s", editor_roadUtils.getRoadTemplateFiles()[i] ))
im.TextUnformatted(string.format("%d x %d", editor_roadUtils.getMaterials()[i].size.x, editor_roadUtils.getMaterials()[i].size.y ))
im.TextUnformatted(string.format("%s", editor_roadUtils.getRoadTemplateFiles()[i] ))
im.PopTextWrapPos()
@/lua/ge/extensions/editor/shapeEditor.lua
if renderSize[1] < 150 or renderSize[2] < 150 then
im.TextUnformatted("too small")
editor.endWindow()
im.TextUnformatted("DetName")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(shapePrev:getCurentDetailName())
im.NextColumn()
im.NextColumn()
im.TextUnformatted("Size")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(tostring(shapePrev.mDetailSize))
im.NextColumn()
im.NextColumn()
im.TextUnformatted("Polys")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(tostring(shapePrev.mDetailPolys))
im.NextColumn()
im.NextColumn()
im.TextUnformatted("Pixel")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(tostring(shapePrev.mPixelSize))
im.NextColumn()
im.NextColumn()
im.TextUnformatted("Materials")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(tostring(shapePrev.mNumMaterials) )
im.NextColumn()
im.NextColumn()
im.TextUnformatted("DrawCalls")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(tostring(shapePrev.mNumDrawCalls))
im.NextColumn()
im.NextColumn()
im.TextUnformatted("Bones")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(tostring(shapePrev.mNumBones))
im.NextColumn()
im.NextColumn()
im.TextUnformatted("Weights")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(tostring(shapePrev.mNumWeights))
im.NextColumn()
im.NextColumn()
im.TextUnformatted("ColMeshes")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(tostring(shapePrev.mColMeshes))
im.NextColumn()
im.NextColumn()
im.TextUnformatted("ColPolys")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(tostring(shapePrev.mColPolys))
im.NextColumn()
if type(v) ~= 'table' then
im.TextUnformatted(tostring(v))
else
else
im.TextUnformatted("No sequences found")
end
else
im.TextUnformatted(v)
end
if highestDetail == -1 then
im.TextUnformatted("Error: no LOD")
end
im.Columns(5)
im.TextUnformatted("Source")
im.NextColumn()
im.NextColumn()
im.TextUnformatted("Amount")
im.NextColumn()
im.NextColumn()
im.TextUnformatted("Destination")
im.NextColumn()
im.NextColumn()
im.TextUnformatted("Sloopy")
im.NextColumn()
im.NextColumn()
im.TextUnformatted("ErrorTarget")
im.NextColumn()
end
im.TextUnformatted(src)
im.NextColumn()
im.NextColumn()
im.TextUnformatted(tostring(v.amount))
im.NextColumn()
im.NextColumn()
im.TextUnformatted(tostring(v.dest))
im.NextColumn()
if v.sloppy then
im.TextUnformatted(tostring(v.sloppy))
im.NextColumn()
im.NextColumn()
im.TextUnformatted(tostring(v.err))
im.SameLine()
@/lua/common/extensions/ui/imgui_custom_luaintf.lua
M.PushTextWrapPos(M.GetFontSize() * 35.0)
M.TextUnformatted(desc)
M.PopTextWrapPos()
@/lua/ge/extensions/ui/console.lua
if paused then
im.TextUnformatted("Paused")
end
im.tooltip("Clear console")
-- im.TextUnformatted(string.format("upd=%.3fms add=%.3fms", rollAvgCalc(rollAvgUpdate), rollAvgCalc(rollAvgAdd)) )
im.TextUnformatted("Filter(s):")
im.SameLine()
im.SameLine()
-- im.TextUnformatted("(?)")
--im.tooltip(helpstr)
-- im.PushItemWidth(260)
im.TextUnformatted("Origin")
im.SameLine()
-- im.NextColumn()
-- im.TextUnformatted(l)
-- im.NextColumn()
-- if viewColumn.msg[0] then
-- im.TextUnformatted(l)
-- im.NextColumn()
-- for i = displayStart[0],displayEnd[0] do
-- -- im.TextUnformatted(tostring(i))
-- local l = logs[i+logsHead]
-- if viewColumn.msg[0] then
-- im.TextUnformatted(l)
-- im.NextColumn()
interestingLines["currentDisplayLines"] = {listClip.DisplayStart,listClip.DisplayEnd}
-- im.TextUnformatted(tostring(i))
-- ::looklineagain::
im.TableSetColumnIndex(numColm-1)
im.TextUnformatted(l)
end
-- im.TableSetColumnIndex(j-1)
-- im.TextUnformatted("data["..dumps(j).."]["..dumps(i).."]")
-- end
-- -- im.TableSetColumnIndex(j-1)
-- -- im.TextUnformatted("data["..dumps(j).."]["..dumps(i).."]")
-- -- end
@/lua/ge/extensions/flowgraph/nodes/logic/select.lua
builder:Middle()
im.TextUnformatted(self.mode)
end
im.NextColumn()
im.TextUnformatted("Merge Functions")
im.NextColumn()
@/lua/ge/extensions/editor/dynamicDecals/layerTypes/fill.lua
im.PushTextWrapPos(im.GetContentRegionAvailWidth())
im.TextUnformatted([[
Fill Layers are fundamental layers that serve as a simple yet essential tool.
@/lua/ge/extensions/editor/forestView.lua
imgui.SetCursorPos(imgui.ImVec2(cPos.x + style.FramePadding.x, cPos.y))
imgui.TextUnformatted(obj.name)
end
@/lua/ge/extensions/editor/flowgraph/properties.lua
-- im.EndChild()
im.TextUnformatted('(Not supported)')
else
else
im.TextUnformatted('(' .. tostring(type) .. ')')
end
im.SameLine()
im.TextUnformatted('[' .. tostring(item.id) .. ']: ')
end
if item.dynamicMode and item.dynamicMode == 'repeat' then
im.TextUnformatted('( Repeat )')
im.SameLine(im.GetWindowWidth() - 110)
else
im.TextUnformatted('( Once )')
im.SameLine(im.GetWindowWidth() - 110)
im.SameLine()
im.TextUnformatted('(' .. tostring(item.type or '') .. ')')
end
if firstLink or pin.type == 'flow' then
im.TextUnformatted(tostring(item.pinInLocal[pin.name]._value))
else
elseif pin.pinMode == 'fromDefault' then
im.TextUnformatted("Default")
else
im.BeginTooltip()
im.TextUnformatted('Remove this pin')
im.EndTooltip()
im.NextColumn()
im.TextUnformatted(tostring(pin._value))
im.SameLine()
im.TextUnformatted(pin.name)
ui_flowgraph_editor.tooltip(pin.description or "")
if firstLink or pin.type == 'flow' then
im.TextUnformatted(tostring(item.pinInLocal[pin.name]._value))
else
elseif pin.pinMode == 'fromDefault' then
im.TextUnformatted("Default")
else
im.SameLine()
im.TextUnformatted(pin.name)
ui_flowgraph_editor.tooltip(pin.description or "")
im.NextColumn()
im.TextUnformatted(tostring(pin._value))
im.NextColumn()
else
--im.TextUnformatted('No Data')
--im.Separator()
self._editMultilineText = nil
im.TextUnformatted(selectedNodeCount .. " nodes selected")
self:unselect()
im.BeginTooltip()
im.TextUnformatted('Remove this Tag')
im.EndTooltip()
@/lua/ge/extensions/editor/api/gui.lua
imgui.SetCursorPosX(imgui.GetCursorPosX() + imgui.GetContentRegionAvailWidth() - imgui.CalcTextSize(string_label).x + ((offset) and offset or 0))
imgui.TextUnformatted(string_label)
end
imgui.SameLine()
imgui.TextUnformatted(lbl)
end
imgui.SameLine()
imgui.TextUnformatted(lbl)
end
imgui.SameLine()
imgui.TextUnformatted(lbl)
end
imgui.SameLine()
imgui.TextUnformatted(lbl)
end
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/vePartTextView.lua
im.PushID1(tostring(nodeIdx))
im.TextUnformatted(text)
if im.IsItemHovered() and im.IsMouseDoubleClicked(0) then
im.TableNextColumn()
im.TextUnformatted(tostring(lineNo))
im.TableNextColumn()
im.Checkbox("Scroll to selection", scrollToSelection)
im.TextUnformatted(tostring(vEditor.selectedPart) .. ' - ')
if jbeamFilename then
if jbeamFilename then
im.TextUnformatted(tostring(jbeamFilename))
end
im.SameLine()
im.TextUnformatted('File times: ')
im.SameLine()
if stat.modtime ~= stat.createtime then
im.TextUnformatted('created: ' .. os.date("%x %H:%M", stat.createtime) .. ' - modified: ' .. os.date("%x %H:%M", stat.modtime))
else
else
im.TextUnformatted('created: ' .. os.date("%x %H:%M", stat.createtime))
end
local nodeType = node[1]
im.TextUnformatted(tostring(nodeType) .. ' - ' .. tostring(editNodeIdx))
im.TextUnformatted('Raw node data: ' .. dumps(node))
im.TextUnformatted(tostring(nodeType) .. ' - ' .. tostring(editNodeIdx))
im.TextUnformatted('Raw node data: ' .. dumps(node))
if nodeType == 'string' or nodeType == 'string_single' then
@/lua/ge/extensions/gameplay/statistic.lua
if im.BeginTabItem("module") then
im.TextUnformatted("activity: "..dumps(currentActivity))
im.TextUnformatted("mod: "..dumps(currentMod))
im.TextUnformatted("activity: "..dumps(currentActivity))
im.TextUnformatted("mod: "..dumps(currentMod))
im.TextUnformatted("level: "..dumps(currentLevel))
im.TextUnformatted("mod: "..dumps(currentMod))
im.TextUnformatted("level: "..dumps(currentLevel))
if im.TreeNode1("Timers") then
for k,v in pairs(timers) do
im.TextUnformatted(k..": "..dumps(v))
end
if v.max then
im.TextUnformatted(k..": "..dumps(v))
else
else
im.TextUnformatted(k..": v="..dumps(v.value))
end
if im.BeginTabItem("entries career") then
--im.TextUnformatted("save : "..dumps(type(fileNameCareer))..dumps(string.len(fileNameCareer or "") )..dumps(fileNameCareer))
if fileDataCareer then
if v.max then
im.TextUnformatted(k..": "..dumps(v))
else
else
im.TextUnformatted(k..": v="..dumps(v.value))
end
for k,v in pairs(callbacks) do
im.TextUnformatted(k..": v="..dumps(v))
end
for k,v in pairs(callbacksCareer) do
im.TextUnformatted(k..": v="..dumps(v))
end
@/lua/ge/extensions/flowgraph/nodes/math/math.lua
builder:Middle()
im.TextUnformatted(self.data.expression)
end
@/lua/ge/extensions/flowgraph/nodes/gameplay/sites/parkingspotByName.lua
builder:Middle()
im.TextUnformatted((self._spot and (not self._spot.missing)) and self.pinIn.spotName.value or "No parking spot!")
end
@/lua/ge/extensions/flowgraph/nodes/gameplay/dragRace/setDragVehicle.lua
builder:Middle()
im.TextUnformatted(self.mode)
end
im.NextColumn()
im.TextUnformatted("Merge Functions")
im.NextColumn()
@/lua/ge/extensions/ui/messagesDebugger.lua
if im.Begin("Messages Debugger", windowOpen) then
im.TextUnformatted("Compose and control UI 'Message' events")
im.Separator()
im.TextUnformatted("Message Text")
im.InputTextMultiline("##msg", txtMsg, im.ArraySize(txtMsg), im.ImVec2(-1, 100))
im.Columns(2, "cols", false)
im.TextUnformatted("Category")
im.InputText("##cat", txtCategory, im.ArraySize(txtCategory))
im.NextColumn()
im.TextUnformatted("Icon (font id or /path)")
im.InputText("##icon", txtIcon, im.ArraySize(txtIcon))
im.TextUnformatted("TTL (seconds)")
im.SliderFloat("##ttl", ttlSeconds, 0.5, 30.0)
@/lua/ge/extensions/editor/dynamicDecals/layerStack.lua
if editor.getPreference("dynamicDecalsTool.general.debug") then
im.TextUnformatted(string.format("%s_%s_%s_%d", name, layer.uid, guiId, id))
layerElementDragDropTargetDebug(dbgColor or {1,1,1,1})
im.SetDragDropPayload(layerDragDropType, payload, ffi.sizeof(payloadSize))
im.TextUnformatted(layer.name)
im.EndDragDropSource()
if editor.getPreference("dynamicDecalsTool.general.debug") then
im.TextUnformatted(string.format("%d", k))
im.SameLine()
im.SameLine()
im.TextUnformatted(layer.uid)
end
im.TextUnformatted(string.format("type: %s", api.layerTypesMap[maskLayer.type]))
im.NewLine()
im.TextUnformatted(layerCountText)
else
im.SetCursorPosX(im.GetCursorPosX() + im.GetContentRegionAvailWidth() / 2 - topLayerTextSize.x / 2)
im.TextUnformatted(topLayerText)
im.SetCursorPosX(im.GetCursorPosX() + im.GetContentRegionAvailWidth() / 2 - bottomLayerTextSize.x / 2)
im.TextUnformatted(bottomLayerText)
im.SetCursorPosX(im.GetCursorPosX() + im.GetContentRegionAvailWidth() / 2 - bottomLayerTextSize.x / 2)
im.TextUnformatted(bottomLayerText)
im.Separator()
if editor.getPreference("dynamicDecalsTool.general.debug") then
im.TextUnformatted(tostring(k))
layerElementDragDropTargetDebug({1,0,0,1})
if editor.getPreference("dynamicDecalsTool.general.debug") then
im.TextUnformatted(tostring(1))
layerElementDragDropTargetDebug({0,1,0,1})
im.SetCursorPosX(im.GetCursorPosX() + im.GetContentRegionAvailWidth() / 2 - topLayerTextSize.x / 2)
im.TextUnformatted(topLayerText)
end
im.TextUnformatted(helper.splitAndCapitalizeCamelCase(name) .. " Layer")
end
im.PushTextWrapPos(im.GetContentRegionAvailWidth())
im.TextUnformatted([[
The Layer Stack is a vital component, providing an organized overview of all layers used in your design.
@/lua/ge/extensions/editor/dynamicDecalsTool.lua
im.SetCursorPos(im.ImVec2(beforeCPos.x + 2 * imguiStyle.FramePadding.x + iconSize, beforeCPos.y + imguiStyle.FramePadding.y))
im.TextUnformatted(colHeaderTitle)
im.SetCursorPos(afterCPos)
im.PushTextWrapPos(im.GetContentRegionAvailWidth())
im.TextUnformatted("Would you like to open the Vehicle Livery Editor now?")
local space = im.GetContentRegionAvailWidth()
im.PushTextWrapPos(im.GetContentRegionAvailWidth())
im.TextUnformatted([[
Layer types are distinct categories that define the nature and purpose of individual layers.
im.PushTextWrapPos(im.GetContentRegionAvailWidth())
im.TextUnformatted([[
The toolbar is an essential segment of the dynamic decals tool.
deps.docs.image("/art/dynamicDecals/docs/toolbar.png", nil, "Toolbar")
im.TextUnformatted([[
It lets you select between a bunch of different tools.
@/lua/ge/extensions/core/metrics.lua
lineText = string.format("FPS: %5.1f [Avg %5.1f | Min %5.1f | Max %5.1f%s]", getConsoleNumber("fps::instantaneous"), getConsoleNumber("fps::avg"), getConsoleNumber("fps::min"), getConsoleNumber("fps::max"), rnd == 0 and "" or ", randomness "..rnd.."%")
im.TextUnformatted(lineText)
if not imguiVisible then table.insert(lines, lineText) end
if not imguiVisible then table.insert(lineTexts, columnText) end
im.TextUnformatted(columnText)
im.TableNextColumn()
if not imguiVisible then table.insert(lineTexts, columnText) end
im.TextUnformatted(columnText)
im.TableNextColumn()
if not imguiVisible then table.insert(lineTexts, columnText) end
im.TextUnformatted(columnText)
im.TableNextColumn()
if not imguiVisible then table.insert(lineTexts, columnText) end
im.TextUnformatted(columnText)
im.TableNextColumn()
if not imguiVisible then table.insert(lineTexts, columnText) end
im.TextUnformatted(columnText)
im.TableNextColumn()
if not imguiVisible then table.insert(lineTexts, columnText) end
im.TextUnformatted(columnText)
im.TableNextColumn()
if not imguiVisible then table.insert(lineTexts, columnText) end
im.TextUnformatted(columnText)
im.TableNextColumn()
if not imguiVisible then table.insert(lineTexts, columnText) end
im.TextUnformatted(columnText)
im.TableNextColumn()
if not imguiVisible then table.insert(lineTexts, columnText) end
im.TextUnformatted(columnText)
im.TableNextColumn()
if not imguiVisible then table.insert(lineTexts, columnText) end
im.TextUnformatted(columnText)
im.TableNextColumn()
if not imguiVisible then table.insert(lineTexts, columnText) end
im.TextUnformatted(columnText)
im.TableNextColumn()
if not imguiVisible then table.insert(lineTexts, columnText) end
im.TextUnformatted(columnText)
im.TableNextColumn()
if not imguiVisible then table.insert(lineTexts, columnText) end
im.TextUnformatted(columnText)
im.TableNextColumn()
if not imguiVisible then table.insert(lineTexts, columnText) end
im.TextUnformatted(columnText)
if not imguiVisible then table.insert(lines, table.concat(lineTexts, " ")) end
if not imguiVisible then table.insert(lineTexts, columnText) end
im.TextUnformatted(columnText)
im.TableNextColumn()
if not imguiVisible then table.insert(lineTexts, columnText) end
im.TextUnformatted(columnText)
im.TableNextColumn()
if not imguiVisible then table.insert(lineTexts, columnText) end
im.TextUnformatted(columnText)
im.TableNextColumn()
if not imguiVisible then table.insert(lineTexts, columnText) end
im.TextUnformatted(columnText)
im.TableNextColumn()
if not imguiVisible then table.insert(lineTexts, columnText) end
im.TextUnformatted(columnText)
im.TableNextColumn()
if not imguiVisible then table.insert(lineTexts, columnText) end
im.TextUnformatted(columnText)
im.TableNextColumn()
if not imguiVisible then table.insert(lineTexts, columnText) end
im.TextUnformatted(columnText)
im.TableNextColumn()
if not imguiVisible then table.insert(lineTexts, columnText) end
im.TextUnformatted(columnText)
if not imguiVisible then table.insert(lines, table.concat(lineTexts, " ")) end
lineText = lineText.." Framerate Managed: "..table.concat(managers, ", ")
im.TextUnformatted(lineText)
if not imguiVisible then table.insert(lines, lineText) end
im.BeginTooltip()
im.TextUnformatted("Also open with CTRL+SHIFT+F")
im.EndTooltip()
getConsoleNumber("$GFXDeviceStatistics::polyCount"), getConsoleNumber("$GFXDeviceStatistics::drawCalls"), getConsoleNumber("$GFXDeviceStatistics::drawStateChanges"), getConsoleNumber("$GFXDeviceStatistics::renderTargetChanges"))
im.TextUnformatted(lineText)
if not imguiVisible then table.insert(lines, lineText) end
getConsoleNumber("$TerrainBlock::cellsRendered"), getConsoleNumber("$TerrainBlock::overrideCells"), getConsoleNumber("$TerrainBlock::drawCalls"))
im.TextUnformatted(lineText)
if not imguiVisible then table.insert(lines, lineText) end
getConsoleNumber("$GroundCover::renderedCells"), getConsoleNumber("$GroundCover::renderedBillboards"), getConsoleNumber("$GroundCover::renderedBatches"), getConsoleNumber("GroundCover::renderedShapes"))
im.TextUnformatted(lineText)
if not imguiVisible then table.insert(lines, lineText) end
getConsoleNumber("$Forest::totalCells"), getConsoleNumber("$Forest::cellsRendered"), getConsoleNumber("$Forest::cellsBatched"), getConsoleNumber("$Forest::cellItemsRendered"), getConsoleNumber("$Forest::cellItemsBatched"))
im.TextUnformatted(lineText)
if not imguiVisible then table.insert(lines, lineText) end
getConsoleNumber("$ShadowStats::activeMaps"), getConsoleNumber("$ShadowStats::updatedMaps"), getConsoleNumber("$ShadowStats::polyCount"), getConsoleNumber("$ShadowStats::drawCalls"), getConsoleNumber("$ShadowStats::drawStateChanges"), getConsoleNumber("$ShadowStats::rtChanges"))
im.TextUnformatted(lineText)
if not imguiVisible then table.insert(lines, lineText) end
getConsoleNumber("$BasicLightManagerStats::activePlugins"), getConsoleNumber("$BasicLightManagerStats::shadowsUpdated"), getConsoleNumber("$BasicLightManagerStats::elapsedUpdateTime") * 1000)
im.TextUnformatted(lineText)
if not imguiVisible then table.insert(lines, lineText) end
getConsoleNumber("$lightMetrics::activeLights"), getConsoleNumber("$lightMetrics::culledLights"))
im.TextUnformatted(lineText)
if not imguiVisible then table.insert(lines, lineText) end
@/lua/ge/extensions/editor/objectTool.lua
local hiddenObjectIconClasses = editor.getPreference("gizmos.objectIcons.hiddenObjectIconClasses")
imgui.TextUnformatted("Hidden Object Icons (select to hide):")
imgui.Separator()
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/vePartList.lua
im.TextUnformatted(tostring(v[5]))
im.TableNextRow()
im.TextUnformatted(tostring(partsViewCount) .. ' parts found')
if vEditor.selectedPart then
@/lua/ge/extensions/editor/dynamicDecals/meshes.lua
local function sectionGui(guiId)
im.TextUnformatted("Shape Path")
im.PushItemWidth(im.GetContentRegionAvailWidth() - tool.getIconSize() - im.GetStyle().ItemSpacing.x)
@/lua/ge/extensions/editor/dynamicDecals/layerTypes/path.lua
im.Columns(2, "layerDataColumns")
im.TextUnformatted("uid")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(layer.uid)
im.NextColumn()
im.TextUnformatted("name")
im.NextColumn()
im.TextUnformatted("enabled")
im.NextColumn()
im.TextUnformatted("type")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(string.format("%s layer", api.layerTypesMap[layer.type]))
im.NextColumn()
im.TextUnformatted("camera position")
im.NextColumn()
im.TextUnformatted("colorPaletteMapId")
im.NextColumn()
if layer.colorPaletteMapId == 0 then
im.TextUnformatted("decal - use gradient color")
im.NextColumn()
if layer.decalUseGradientColor then
im.TextUnformatted("decal gradient color")
im.NextColumn()
else
im.TextUnformatted("color")
im.NextColumn()
im.TextUnformatted("decal scale")
im.NextColumn()
im.TextUnformatted("decal rotation")
im.NextColumn()
im.TextUnformatted("orient decals")
helper.iconTooltip("If enabled decals are oriented towards the next decal in the path. Overrides 'decal rotation'.", true)
im.TextUnformatted("path type")
helper.iconTooltip("Curve type", true)
im.TextUnformatted("text")
helper.iconTooltip("The characters of the text property replace the decal color texture.", true)
im.TextUnformatted("font path")
im.NextColumn()
im.TextUnformatted("interpolation steps")
helper.iconTooltip("Linear path type: Number of decals in-between control points.\nBezier path type: Number of decals in-between the first and last control point.\n\nDisabled while a text is set since the number of characters determines the number of decals.", true)
im.TextUnformatted("decal uv / flipped")
im.NextColumn()
im.TextUnformatted("decal skew")
im.NextColumn()
im.TextUnformatted("mirrored")
im.NextColumn()
im.TextUnformatted("flipMirroredDecal")
im.NextColumn()
im.TextUnformatted("color texture scale")
im.NextColumn()
im.TextUnformatted("alpha mask channel")
im.NextColumn()
im.TextUnformatted("alpha mask blend mode")
im.NextColumn()
im.TextUnformatted("alpha mask scale")
im.NextColumn()
im.TextUnformatted("alpha mask rotation")
im.NextColumn()
im.TextUnformatted("alpha mask intensity")
im.NextColumn()
im.TextUnformatted("wrap alpha mask X")
im.NextColumn()
im.TextUnformatted("wrap alpha mask Y")
im.NextColumn()
im.TextUnformatted("wrap color mask X")
im.NextColumn()
im.TextUnformatted("wrap color mask Y")
im.NextColumn()
im.TextUnformatted("alpha mask invert")
im.NextColumn()
if layer.sdfThickness then
im.TextUnformatted("SDF thickness")
im.NextColumn()
im.TextUnformatted("SDF softness")
im.NextColumn()
im.TextUnformatted("sdf outline color")
im.NextColumn()
im.TextUnformatted("SDF outline thickness")
im.NextColumn()
im.TextUnformatted("SDF outline softness")
im.NextColumn()
im.TextUnformatted("decal color texture path")
im.NextColumn()
im.TextUnformatted("decal alpha texture path")
im.NextColumn()
im.TextUnformatted("decal normal texture path")
im.NextColumn()
im.TextUnformatted("decal metallic texture path")
im.NextColumn()
im.TextUnformatted("decal roughness texture path")
im.NextColumn()
im.TextUnformatted("blend mode")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(api.blendModes[layer.blendMode + 1].name)
im.NextColumn()
im.TextUnformatted("worldToViewToScreen")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(layer.worldToViewToScreen:__tostring())
im.NextColumn()
-- im.TextUnformatted("interpolationSteps")
-- im.NextColumn()
if #layer.text > 0 and #layer.fontPath > 1 and layer.textCharacterPositions then
im.TextUnformatted("textCharacterPositions")
helper.iconTooltip("Position of each character of the text string on the bezier curve.\nDetermined once when the path layer is created and everytime the text changes.", true)
for k, v in ipairs(layer.textCharacterPositions) do
im.TextUnformatted(string.sub(layer.text, k, k))
im.SameLine()
im.TextUnformatted("dataPoints")
im.NextColumn()
im.TextUnformatted(string.format("count: %d", count))
for k, data in ipairs(layer.dataPoints) do
im.TextUnformatted(tostring(k))
im.SameLine()
im.PushTextWrapPos(im.GetContentRegionAvailWidth())
im.TextUnformatted([[
Path Layers offer an the ability to create intricate designs that follow a specific path or curvature.
im.TableNextColumn()
im.TextUnformatted(property.name)
if #property.description > 0 then
im.TableNextColumn()
im.TextUnformatted(property.id)
im.TableNextColumn()
im.TableNextColumn()
im.TextUnformatted(api.typesMap[property.type])
im.TableNextColumn()
@/lua/ge/extensions/flowgraph/link.lua
im.SameLine()
im.TextUnformatted(dumps(self.sourcePin.type))
ui_flowgraph_editor.fullDisplay(self.sourcePin._value, self.sourcePin.hardCodeType and self.sourcePin.hardCodeType or self.sourcePin.type)
ui_flowgraph_editor.fullDisplay(self.sourcePin._value, self.sourcePin.hardCodeType and self.sourcePin.hardCodeType or self.sourcePin.type)
--im.TextUnformatted(dumps(self.sourcePin._frameLastUsed))
im.EndTooltip()
@/lua/ge/extensions/editor/dynamicDecals/vehicleColorPalette.lua
local metallicPaintData = string.split(vehicleObj:getField('metallicPaintData', id))
im.TextUnformatted("Metallic")
im.SameLine()
im.TextUnformatted("Roughness")
im.SameLine()
im.TextUnformatted("Clear Coat")
im.SameLine()
im.TextUnformatted("Clear Coat Roughness")
im.SameLine()
if not vehicleObj then
im.TextUnformatted("No vehicle")
im.TreePop()
local color = vehicleObj.color
im.TextUnformatted("Color")
im.SameLine()
local color = vehicleObj.colorPalette0
im.TextUnformatted("Color")
im.SameLine()
local color = vehicleObj.colorPalette1
im.TextUnformatted("Color")
im.SameLine()
if not vehicleObj then
im.TextUnformatted("No vehicle")
return
im.PushTextWrapPos(im.GetContentRegionAvailWidth())
im.TextUnformatted([[
The Vehicle Color Palette section is the central place that lets you easily alter vehicle colors so you can quickly check how they affect your design.
@/lua/ge/extensions/editor/dynamicDecals/news.lua
im.TextUnformatted([[
im.TextColored(editor.color.beamng.Value, "Please keep in mind that this tool is work-in-progress. We're actively working to enhance and refine the experience based on your feedback.")
im.TextUnformatted("We can't wait to see the incredible liveries you create and share with the community!")
im.TextUnformatted([[
Get ready to rev up your creativity and make your vehicles stand out on the track!
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()
@/lua/common/extensions/ui/imgui_gen_luaintf.lua
if string_text == nil then log("E", "", "Parameter 'string_text' of function 'TextUnformatted' cannot be nil, as the c type is 'const char *'") ; return end
imgui.TextUnformatted(string_text, string_text_end)
end
@/lua/common/extensions/ui/imguiUtils.lua
if type(v) ~= 'table' then
imgui.TextUnformatted(tostring(k) .. ' :')
imgui.SameLine()
imgui.SameLine()
imgui.TextUnformatted(tostring(v))
-- imgui.Separator()
imgui.BeginTooltip()
imgui.TextUnformatted("Last: " .. string.format(formatString, newValue))
imgui.TextUnformatted("Sampled: " .. string.format(formatString, sampledVal))
imgui.TextUnformatted("Last: " .. string.format(formatString, newValue))
imgui.TextUnformatted("Sampled: " .. string.format(formatString, sampledVal))
imgui.TextUnformatted("Min: " .. string.format(formatString, minVal))
imgui.TextUnformatted("Sampled: " .. string.format(formatString, sampledVal))
imgui.TextUnformatted("Min: " .. string.format(formatString, minVal))
imgui.TextUnformatted("Max: " .. string.format(formatString, maxVal))
imgui.TextUnformatted("Min: " .. string.format(formatString, minVal))
imgui.TextUnformatted("Max: " .. string.format(formatString, maxVal))
imgui.TextUnformatted("Update interval: " .. string.format('%0.1f', self.sampleTime) .. 's')
imgui.TextUnformatted("Max: " .. string.format(formatString, maxVal))
imgui.TextUnformatted("Update interval: " .. string.format('%0.1f', self.sampleTime) .. 's')
imgui.Separator()
imgui.Separator()
imgui.TextUnformatted("- right click to reset")
imgui.TextUnformatted("- PageUp/Down to change interval")
imgui.TextUnformatted("- right click to reset")
imgui.TextUnformatted("- PageUp/Down to change interval")
imgui.EndTooltip()
@/lua/ge/extensions/flowgraph/utils.lua
im.ImDrawList_AddRectFilled(im.GetWindowDrawList(), rectMin, rectMax, im.GetColorU322(color), size.y * 0.15)
im.TextUnformatted(label)
end
@/lua/ge/extensions/editor/dynamicDecals/brushes.lua
im.TextUnformatted("name")
im.NextColumn()
im.TextUnformatted("alphaMaskBlendMode")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(string.format("%d (%s)", brush.alphaMaskBlendMode or 0, alphaMaskBlendModes[brush.alphaMaskBlendMode or 0]))
im.NextColumn()
im.TextUnformatted("alphaMaskChannel")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(string.format("%d (%s)", brush.alphaMaskChannel or 0, alphaMaskChannels[brush.alphaMaskChannel or 0]))
im.NextColumn()
im.TextUnformatted("alphaMaskIntensity")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(tostring(brush.alphaMaskIntensity))
im.NextColumn()
im.TextUnformatted("alphaMaskRotation")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(string.format("%.2f", brush.alphaMaskRotation or 0.0))
im.NextColumn()
im.TextUnformatted("alphaMaskScale")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(string.format("[%.2f, %.2f]", brush.alphaMaskScale[1], brush.alphaMaskScale[2]))
im.NextColumn()
im.TextUnformatted("alphaMaskInvert")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(string.format("%s", ((brush.alphaMaskInvert or false) and "true" or "false")))
im.NextColumn()
im.TextUnformatted("blendMode")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(string.format("%d (%s)", brush.blendMode, api.blendModes[brush.blendMode + 1].name))
im.NextColumn()
im.TextUnformatted("colorPaletteMapId")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(tostring(brush.colorPaletteMapId))
im.NextColumn()
im.TextUnformatted("colorTextureScale")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(string.format("[%.2f, %.2f]", brush.colorTextureScale[1], brush.colorTextureScale[2]))
im.NextColumn()
im.TextUnformatted("decalRotation")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(string.format("%.2f", brush.decalRotation))
im.NextColumn()
im.TextUnformatted("decalScale")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(string.format("[%.2f, %.2f, %.2f]", brush.decalScale[1], brush.decalScale[2], brush.decalScale[3]))
im.NextColumn()
im.TextUnformatted("decalSkew")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(string.format("[%.2f, %.2f]", brush.decalSkew[1], brush.decalSkew[2]))
im.NextColumn()
im.TextUnformatted("decalUv (flipped decal)")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(string.format("[%.1f, %.1f]", brush.decalUv[1], brush.decalUv[2]))
im.NextColumn()
im.TextUnformatted("alphaMaskInvert")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(string.format("%s", (brush.alphaMaskInvert and "true" or "false")))
im.NextColumn()
im.TextUnformatted("mirrored")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(string.format("%s", (brush.mirrored or false) and "true" or "false"))
im.NextColumn()
im.TextUnformatted("flipMirroredDecal")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(string.format("%s", (brush.flipMirroredDecal or false) and "true" or "false"))
im.NextColumn()
im.TextUnformatted("metallicIntensity")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(string.format("%.2f", brush.metallicIntensity or 1.0))
im.NextColumn()
im.TextUnformatted("normalIntensity")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(string.format("%.2f", brush.normalIntensity or 1.0))
im.NextColumn()
im.TextUnformatted("roughnessIntensity")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(string.format("%.2f", brush.roughnessIntensity or 1.0))
im.NextColumn()
im.TextUnformatted("wrapAlphaMaskX")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(string.format("%s", (brush.wrapAlphaMaskX and "true" or "false")))
im.NextColumn()
im.TextUnformatted("wrapAlphaMaskY")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(string.format("%s", (brush.wrapAlphaMaskY and "true" or "false")))
im.NextColumn()
im.TextUnformatted("wrapColorTextureX")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(string.format("%s", (brush.wrapColorTextureX and "true" or "false")))
im.NextColumn()
im.TextUnformatted("wrapColorTextureY")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(string.format("%s", (brush.wrapColorTextureY and "true" or "false")))
im.NextColumn()
if im.TreeNodeEx1("color##inspectorGuiBrush", im.TreeNodeFlags_DefaultOpen) then
im.TextUnformatted("texture path:")
im.SameLine()
im.SameLine()
im.TextUnformatted(brush.decalColorTexturePath)
im.Image(editor.getTempTextureObj(brush.decalColorTexturePath).texId, im.ImVec2(imageWidth, imageWidth), im.ImVec2(0,0), im.ImVec2(1,1), nil, editor.color.beamng.Value)
im.Image(editor.getTempTextureObj(brush.decalColorTexturePath).texId, im.ImVec2(imageWidth, imageWidth), im.ImVec2(0,0), im.ImVec2(1,1), nil, editor.color.beamng.Value)
im.TextUnformatted("Decal Color")
im.TextUnformatted("Use color gradient: " .. (brush.decalUseGradientColor and "true" or "false"))
im.TextUnformatted("Decal Color")
im.TextUnformatted("Use color gradient: " .. (brush.decalUseGradientColor and "true" or "false"))
if brush.decalUseGradientColor then
if im.TreeNodeEx1("normal##inspectorGuiBrush", im.TreeNodeFlags_DefaultOpen) then
im.TextUnformatted("texture path:")
im.SameLine()
im.SameLine()
im.TextUnformatted(brush.decalNormalTexturePath)
im.Image(editor.getTempTextureObj(brush.decalNormalTexturePath).texId, im.ImVec2(imageWidth, imageWidth), im.ImVec2(0,0), im.ImVec2(1,1), nil, editor.color.beamng.Value)
if im.TreeNodeEx1("metallic##inspectorGuiBrush", im.TreeNodeFlags_DefaultOpen) then
im.TextUnformatted("texture path:")
im.SameLine()
im.SameLine()
im.TextUnformatted(brush.decalMetallicTexturePath)
im.Image(editor.getTempTextureObj(brush.decalMetallicTexturePath).texId, im.ImVec2(imageWidth, imageWidth), im.ImVec2(0,0), im.ImVec2(1,1), nil, editor.color.beamng.Value)
if im.TreeNodeEx1("roughness##inspectorGuiBrush", im.TreeNodeFlags_DefaultOpen) then
im.TextUnformatted("texture path:")
im.SameLine()
im.SameLine()
im.TextUnformatted(brush.decalRoughnessTexturePath)
im.Image(editor.getTempTextureObj(brush.decalRoughnessTexturePath).texId, im.ImVec2(imageWidth, imageWidth), im.ImVec2(0,0), im.ImVec2(1,1), nil, editor.color.beamng.Value)
if im.TreeNodeEx1("alpha mask##inspectorGuiBrush", im.TreeNodeFlags_DefaultOpen) then
im.TextUnformatted("texture path:")
im.SameLine()
im.SameLine()
im.TextUnformatted(brush.decalAlphaTexturePath)
im.Image(editor.getTempTextureObj(brush.decalAlphaTexturePath).texId, im.ImVec2(imageWidth, imageWidth), im.ImVec2(0,0), im.ImVec2(1,1), nil, editor.color.beamng.Value)
if im.TreeNode1("data##inspectorGuiBrush") then
im.TextUnformatted(dumps(brush))
im.TreePop()
if #brushesData == 0 then
im.TextUnformatted("There are no brushes.")
else
im.PushTextWrapPos(textSpace)
im.TextUnformatted("LMB: Select brush; Double-click: Load brush; RMB: Open brush context menu")
im.SetCursorPos(im.ImVec2(cPos.x + textSpace, cPos.y))
@/lua/ge/extensions/editor/dynamicDecals/textures.lua
im.SetDragDropPayload("DynDecalTextureDrapDrop", payload, im.ArraySize(payload))
im.TextUnformatted(filePath)
im.Image(editor.getTempTextureObj(filePath).texId, im.ImVec2(64, 64), im.ImVec2Zero, im.ImVec2One)
im.PushTextWrapPos(textSpace)
im.TextUnformatted("Hover over a texture and hit the right mouse button in order to open a context menu.")
im.SetCursorPos(im.ImVec2(cPos.x + textSpace, cPos.y))
-- for _, tag in ipairs(tags) do
-- im.TextUnformatted(string.format("%s [%d]", tag, #tagsWithReferences[tag]))
-- end
im.TextUnformatted("type")
im.NextColumn()
im.TextUnformatted("SDF compatible")
im.NextColumn()
im.TextUnformatted("tags")
im.NextColumn()
im.SameLine()
im.TextUnformatted(tag)
end
im.TextUnformatted("vehicle")
im.NextColumn()
im.Columns(3, "dynDecalTexturesInspectorColumns")
im.TextUnformatted("version")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(tostring(selectedTexturesSidecarContent[file].version))
im.NextColumn()
im.TextUnformatted("texture resolution")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(string.format("x: %d y: %d", img.size.x, img.size.y))
im.NextColumn()
im.TextUnformatted("type")
im.NextColumn()
im.TextUnformatted("SDF compatible")
im.NextColumn()
im.TextUnformatted("tags")
im.NextColumn()
im.SameLine()
im.TextUnformatted(tag)
end
im.TextUnformatted("vehicle")
helper.iconTooltip("Is this decal texture bound to a specific set of vehicles?", true)
im.PushTextWrapPos(im.GetContentRegionAvailWidth())
im.TextUnformatted([[
The Textures tab serves as a comprehensive directory of all accessible textures.
im.SameLine()
im.TextUnformatted(file)
end
im.SameLine()
im.TextUnformatted(file)
end
@/lua/ge/extensions/editor/fileDialog.lua
if selectedFile.name then
im.TextUnformatted("Name")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(selectedFile.name)
im.NextColumn()
if selectedFile.filesize then
im.TextUnformatted("Filesize")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(bytes_to_string(selectedFile.filesize))
im.NextColumn()
im.Columns(2, "FilePreviewColumns")
im.TextUnformatted("Dimensions")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(string.format("%d x %d", imgSize.x, imgSize.y))
im.Columns(1, "FilePreviewColumns")
if file.filesize then
im.TextUnformatted(bytes_to_string(file.filesize))
end
if file.filetype == "folder" then
im.TextUnformatted("folder")
elseif file.filetype == "file" then
if file.extension then
im.TextUnformatted(file.extension)
end
if file.filetype == "file" and file.createtime then
im.TextUnformatted(os.date("%Y/%m/%d %I:%M %p", file.createtime))
end
if file.filetype == "file" and file.modtime then
im.TextUnformatted(os.date("%Y/%m/%d %I:%M %p", file.createtime))
end
if im.Begin(fileDialogTitle, editor.getWindowVisibleBoolPtr(toolWindowName), im.WindowFlags_NoDocking + im.WindowFlags_NoCollapse + im.WindowFlags_UnsavedDocument) then
im.TextUnformatted(overwriteDialogText or "Are you sure you want to overwrite this file")
if im.Button("YES") then
@/lua/ge/extensions/flowgraph/nodes/debug/display.lua
builder:Middle()
im.TextUnformatted(dumpsz(self._lastVal, 2))
@/lua/ge/extensions/editor/dynamicDecals/docs.lua
im.TextUnformatted([[
im.TextColored(editor.color.beamng.Value, "Please keep in mind that this tool is work-in-progress. We're actively working to enhance and refine the experience based on your feedback.")
im.TextUnformatted("We can't wait to see the incredible liveries you create and share with the community!")
im.TextUnformatted([[
Get ready to rev up your creativity and make your vehicles stand out on the track!
im.TextUnformatted([[
This guide helps you getting started with this tool.
im.TableNextColumn()
im.TextUnformatted(inputAction.controlCap)
im.TableNextColumn()
im.TableNextColumn()
im.TextUnformatted(inputAction.title)
im.TableNextColumn()
im.TableNextColumn()
im.TextUnformatted(inputAction.desc)
end
@/lua/ge/extensions/editor/cameraBookmarks.lua
imgui.TextUnformatted("Clipboard: ")
imgui.SameLine()
imgui.SameLine()
imgui.TextUnformatted(bookmark:getInternalName())
imgui.PopID()
@/lua/ge/extensions/editor/terrainMaterialsEditor.lua
if label then
im.TextUnformatted(label)
im.SameLine()
local propertyName = string.format(property, map)
im.TextUnformatted(widgetName)
if editor.uiButtonRightAlign("Bulk Change Texture", nil, true, "bulkChangeTexture_" .. map .. property) then
-- im.TextUnformatted(val)
inputText("Path", propertyName, -(2 * inputWidgetHeight * im.uiscale[0] + 2 * im.GetStyle().ItemSpacing.x))
local function widgetFloat(propertyName, widgetName)
im.TextUnformatted(widgetName)
im.SameLine()
local propertyName = string.format(property, map)
im.TextUnformatted(widgetName)
im.SameLine()
im.PushTextWrapPos(300)
im.TextUnformatted(tooltip)
im.PopTextWrapPos()
obj = obj or terrainMtlCopyProxy.material
im.TextUnformatted(widgetName)
im.SameLine()
obj = obj or terrainMtlCopyProxy.material
im.TextUnformatted(widgetName)
im.SameLine()
local function widgetDistances(propertyName, widgetName)
im.TextUnformatted(widgetName)
local tempBoolPtr = editor.getTempBool_BoolBool(false)
im.TextUnformatted("Start Fade In")
local posX = im.GetCursorPosX()
im.TextUnformatted("Near")
im.SameLine()
im.TextUnformatted("Far")
im.SameLine()
im.TextUnformatted("End Fade Out")
im.SameLine()
local function materialPropertiesGuiBase()
im.TextUnformatted("Material Properties")
im.ShowHelpMarker("When using the Upgraded Material System, all textures must be of the same size specified in the TextureSet properties. \n" ..
local function matNameInputWidget(widthMod)
im.TextUnformatted("Name")
im.SameLine()
im.BeginGroup()
im.TextUnformatted("Diffuse")
im.SameLine()
im.BeginGroup()
im.TextUnformatted("Macro")
im.SameLine()
im.BeginGroup()
im.TextUnformatted("Detail")
im.SameLine()
im.BeginGroup()
im.TextUnformatted("Normal")
im.SameLine()
if bulkChange and bulkChange.textures then
im.TextUnformatted("Found the following textures:")
im.Dummy(im.ImVec2(0, 10))
if bulkChange.textures.b then
im.TextUnformatted("Base Color")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(bulkChange.textures.b.file)
im.NextColumn()
if bulkChange.textures.nm then
im.TextUnformatted("Normal")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(bulkChange.textures.nm.file)
im.NextColumn()
if bulkChange.textures.r then
im.TextUnformatted("Roughness")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(bulkChange.textures.r.file)
im.NextColumn()
if bulkChange.textures.ao then
im.TextUnformatted("Ambient Occlusion")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(bulkChange.textures.ao.file)
im.NextColumn()
if bulkChange.textures.h then
im.TextUnformatted("Height")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(bulkChange.textures.h.file)
im.NextColumn()
im.Dummy(im.ImVec2(0, 10))
im.TextUnformatted("Would you like to bulk change them?")
end
im.PushTextWrapPos(im.GetContentRegionAvailWidth())
im.TextUnformatted("The following Terrain Materials will be moved to a new file using the the most recent file format.")
im.Dummy(im.ImVec2(0, 10))
im.Dummy(im.ImVec2(0, 10))
im.TextUnformatted("Old file path: " .. upgradeFileFormatMaterials.oldFile)
im.TextUnformatted("New file path: " .. upgradeFileFormatMaterials.newFile)
im.TextUnformatted("Old file path: " .. upgradeFileFormatMaterials.oldFile)
im.TextUnformatted("New file path: " .. upgradeFileFormatMaterials.newFile)
im.PopTextWrapPos()
for k, v in ipairs(upgradeFileFormatMaterials.terrainMaterials) do
im.TextUnformatted(tostring(v.id))
im.TableNextColumn()
im.TableNextColumn()
im.TextUnformatted(v.name)
im.TableNextColumn()
im.PushTextWrapPos(im.GetContentRegionAvailWidth())
im.TextUnformatted("This will create a TerrainMaterialTextureSet object and attach it to your Terrain Blocks.")
im.TextColored(editor.color.warning.Value, [[
im.TextColored(editor.color.warning.Value, "Once the terrain materials are upgraded you won't be able to fallback to the former system within this editor.")
im.TextUnformatted("Do not forget to save the level in order to apply the changes that have been made to the TerrainBlock object.")
im.Dummy(im.ImVec2(0,20))
if im.BeginChild1("Terrain Materials##Child", nil, true) then
im.TextUnformatted("Material Library")
im.SameLine()
end
im.TextUnformatted("Annotation:")
im.SameLine()
else
im.TextUnformatted("No Terrain Material selected")
end
@/lua/ge/extensions/editor/dynamicDecals/browser.lua
im.PushTextWrapPos(im.GetContentRegionAvailWidth())
im.TextUnformatted([[
The Browser Window serves as a central hub for various assets that seamlessly integrate with the dynamic decal system, enhancing your livery creation experience.
@/lua/ge/extensions/editor/dynamicDecals/layerTypes/decal.lua
local sdfExplanationTextWidget = function()
im.TextUnformatted("Signed Distance Fields (SDF) brings a range of improvements, allowing you to create more complex decals with ease.")
im.NewLine()
im.NewLine()
im.TextUnformatted("What are Signed Distance Fields?")
im.NewLine()
im.NewLine()
im.TextUnformatted("Signed Distance Fields are mathematical representations used in computer graphics to describe the shape of objects or regions. In the context of decals, SDF allows us to precisely define the boundaries and characteristics of decals.")
im.NewLine()
im.NewLine()
im.TextUnformatted("Benefits of SDF for Decals:")
im.BulletText("Crisp Outlines: With SDF, you can effortlessly add crisp outlines to your decals.\nThe distance information provided by SDF enables accurate edge detection, ensuring your outlines appear sharp and well-defined.")
im.NewLine()
im.TextUnformatted("Experiment with these features by by enaling SDF and checking out the SDF properties in the 'Decal Properties' section.")
end
im.TextUnformatted("Flip")
im.SameLine()
im.TextUnformatted("project using surface normal")
im.NextColumn()
im.TextUnformatted("color texture scale")
im.NextColumn()
im.TextUnformatted("alpha mask channel")
im.NextColumn()
im.TextUnformatted("alpha mask blend mode")
im.NextColumn()
im.TextUnformatted("alpha mask scale")
im.NextColumn()
im.TextUnformatted("alpha mask rotation")
im.NextColumn()
im.TextUnformatted("alpha mask intensity")
im.NextColumn()
im.TextUnformatted("wrap alpha mask X")
im.NextColumn()
im.TextUnformatted("wrap alpha mask Y")
im.NextColumn()
im.TextUnformatted("wrap color texture X")
im.NextColumn()
im.TextUnformatted("wrap color texture Y")
im.NextColumn()
im.TextUnformatted("alpha mask invert")
im.NextColumn()
-- SDF
im.TextUnformatted("SDF enabled")
im.NextColumn()
if layer.sdfEnabled == false then im.BeginDisabled() end
im.TextUnformatted("SDF thickness")
im.NextColumn()
im.TextUnformatted("SDF softness")
im.NextColumn()
im.TextUnformatted("sdf outline color")
im.NextColumn()
im.TextUnformatted("SDF outline thickness")
im.NextColumn()
im.TextUnformatted("SDF outline softness")
im.NextColumn()
im.TextUnformatted("decal color texture path")
im.NextColumn()
im.TextUnformatted("decal alpha texture path")
im.NextColumn()
--[[
im.TextUnformatted("decal normal texture path")
im.NextColumn()
im.TextUnformatted("decal metallic texture path")
im.NextColumn()
im.TextUnformatted("decal roughness texture path")
im.NextColumn()
--[[
im.TextUnformatted("blend mode")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(api.blendModes[layer.blendMode + 1].name)
im.NextColumn()
im.TextUnformatted("useZBufferDepth")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(layer.useZBufferDepth and "true" or "false")
im.NextColumn()
im.TextUnformatted("zBufferDepth")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(tostring(layer.zBufferDepth))
im.NextColumn()
im.TextUnformatted("worldToViewToScreen")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(layer.worldToViewToScreen:__tostring())
im.NextColumn()
local function decalTextureWidget(type, name, removeTextureOverridePath)
im.TextUnformatted("Decal " .. name .. " Texture Path")
im.PushItemWidth(im.GetContentRegionAvailWidth() - 2 * tool.getIconSize() - 2 * im.GetStyle().ItemSpacing.x)
im.PushTextWrapPos(800)
im.TextUnformatted("You've selected a SDF compatible texture.")
docs.verticalSpacing()
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.BeginPopup("SaveBrushPopup") then
im.TextUnformatted("Brush name")
if im.InputText("##SaveBrushNameTextInput", editor.getTempCharPtr(newBrushName), nil, im.InputTextFlags_AutoSelectAll) then
im.TextUnformatted("Flip")
im.SameLine()
im.TextUnformatted("Character")
im.SameLine()
im.TextUnformatted("Wrap Texture")
im.SameLine()
im.SameLine()
im.TextUnformatted("Horizontally")
im.SameLine()
im.SameLine()
im.TextUnformatted("Vertically")
im.SameLine()
im.PushTextWrapPos(im.GetContentRegionAvailWidth())
im.TextUnformatted([[
Decal Layers are the building blocks of your custom liveries, each representing a single decal element.
im.PushTextWrapPos(im.GetContentRegionAvailWidth())
im.TextUnformatted("What is SDF?")
docs.verticalSpacing()
im.TableNextColumn()
im.TextUnformatted(property.name)
if #property.description > 0 then
im.TableNextColumn()
im.TextUnformatted(property.id)
im.TableNextColumn()
im.TableNextColumn()
im.TextUnformatted(api.typesMap[property.type])
im.TableNextColumn()
@/lua/ge/extensions/editor/assetBrowser.lua
else
im.TextUnformatted(asset.path)
end
im.PushItemWidth(200)
im.TextUnformatted("Create new folder")
if im.InputText("##NewFolderName", var.newFolderName, nil, im.flags(im.InputTextFlags_EnterReturnsTrue)) then
im.BeginTooltip()
im.TextUnformatted(dir.path)
im.EndTooltip()
else
im.TextUnformatted(dirName)
end
if var.options.assetViewFilterType == var.assetViewFilterType_enum.current_folder_files then
im.TextUnformatted(set.name)
elseif var.options.assetViewFilterType == var.assetViewFilterType_enum.all_files then
elseif var.options.assetViewFilterType == var.assetViewFilterType_enum.all_files then
im.TextUnformatted(set.dir.path .. set.name)
end
im.TextUnformatted(set.name)
im.SetCursorPos(cursorPos)
icon(set, im.ImVec2(var.options.thumbnailSize/4, var.options.thumbnailSize/4), im.GetStyleColorVec4(im.Col_Text))
-- if file.selected then im.TextColored(im.GetStyleColorVec4(im.Col_ButtonActive), file.fullFileName) else im.TextUnformatted(file.fullFileName) end
end
end
if material.selectedInABView then im.TextColored(im.GetStyleColorVec4(im.Col_ButtonActive), material.name) else im.TextUnformatted(material.name) end
im.EndChild()
if file.selectedInABView == true then im.PushStyleColor2(im.Col_Text, im.GetStyleColorVec4(im.Col_ButtonActive)) end
im.TextUnformatted(file.fullFileName)
if file.selectedInABView == true then im.PopStyleColor(1) end
im.BeginTooltip()
im.TextUnformatted(file.path)
if file.type == 'image' and var.options.showThumbnailWhenHoveringAsset == true then
else
im.TextUnformatted(file.fullFileName)
end
im.SetCursorPos(im.ImVec2(cPosStart.x + var.fontSize + 3 * var.style.FramePadding.x, cPosStart.y + var.style.FramePadding.y))
im.TextUnformatted(group.identifier .. " (" .. tostring(#var.filteredAssetGroups[group.identifier]) .. ")")
im.SetCursorPos(cPosEnd)
if var.selectedDirectory.processing then
im.TextUnformatted("Refreshing ...")
else
else
im.TextUnformatted("Loading assets (" .. tostring(var.assetsProcessed) .. "/" .. tostring(var.numberOfAllAssetsAndDirs) ..")")
im.TextUnformatted(string.format("%0.2f",(var.assetsProcessed/var.numberOfAllAssetsAndDirs)*100) .. '%')
im.TextUnformatted("Loading assets (" .. tostring(var.assetsProcessed) .. "/" .. tostring(var.numberOfAllAssetsAndDirs) ..")")
im.TextUnformatted(string.format("%0.2f",(var.assetsProcessed/var.numberOfAllAssetsAndDirs)*100) .. '%')
end
local function displayFloat(name, value)
im.TextUnformatted(name)
im.NextColumn()
im.NextColumn()
im.TextUnformatted(tostring(value))
im.NextColumn()
local function displayVec2(name, value)
im.TextUnformatted(name)
im.NextColumn()
im.NextColumn()
im.TextUnformatted("x: " .. tostring(value.x) .. " y: " .. tostring(value.y))
im.NextColumn()
local function displayBool(name, value)
im.TextUnformatted(name)
im.NextColumn()
im.NextColumn()
im.TextUnformatted(value==true and 'true' or 'false')
im.NextColumn()
im.SameLine()
if var.imageInspectorImageSize then im.TextUnformatted("Image preview size x: " .. tostring(var.imageInspectorImageSize.x) .. " y: " .. tostring(var.imageInspectorImageSize.y)) end
end
if im.TreeNode1('rawdata##' .. asset.path) then
im.TextUnformatted(asset.inspectorData.rawdata)
im.TreePop()
im.Columns(1)
im.TextUnformatted("Materials:")
for matName, _ in pairs(asset.inspectorData.materials) do
if im.TreeNode1('rawdata##' .. asset.path) then
im.TextUnformatted(asset.inspectorData.rawdata)
im.TreePop()
-- Asset Name
im.TextUnformatted("Name")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(asset.name)
im.NextColumn()
im.NextColumn()
im.TextUnformatted("Type")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(asset.type)
im.NextColumn()
im.Columns(1)
im.TextUnformatted("Material Preview")
local matPreviewSize = im.GetContentRegionAvailWidth()
if im.TreeNode1('rawdata##' .. asset.path) then
im.TextUnformatted(asset.inspectorData.rawdata)
im.TreePop()
if im.TreeNode1('rawdata##' .. asset.path) then
im.TextUnformatted(asset.inspectorData.rawdata)
im.TreePop()
if im.TreeNode1('rawdata##' .. asset.path) then
im.TextUnformatted(asset.inspectorData.rawdata)
im.TreePop()
if im.TreeNode1('rawdata##' .. asset.path) then
im.TextUnformatted(asset.inspectorData.rawdata)
im.TreePop()
if im.TreeNode1('rawdata##' .. asset.path) then
im.TextUnformatted(asset.inspectorData.rawdata)
im.TreePop()
if mapName then
im.TextUnformatted(mapName)
end
-- Image Resolution
im.TextUnformatted("Dimensions")
editor.uiTextUnformattedRightAlign(img.size.x .. ' x ' .. img.size.y, true)
if img.format and img.format ~= "" then
im.TextUnformatted("Format")
editor.uiTextUnformattedRightAlign(img.format, true)
im.Columns(1)
im.TextUnformatted("Preview:")
local width = im.GetContentRegionAvailWidth()
if var.meshPreview.mDetailPolys then
im.TextUnformatted("Polygons")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(tostring(var.meshPreview.mDetailPolys))
im.NextColumn()
if var.meshPreview.mColPolys then
im.TextUnformatted("Collision Polygons")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(tostring(var.meshPreview.mColPolys))
im.NextColumn()
im.NewLine()
im.TextUnformatted("Mesh preview")
im.ShowHelpMarker("Doubleclick = focus obj\nMMB = pan cam\nRMB = orbit cam \nScroll wheel = zoom\nCtrl + Scroll wheel = fast zoom", true)
-- Asset Name
im.TextUnformatted("Name")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(inspector_selectedAsset.name)
im.NextColumn()
-- Asset Path
im.TextUnformatted("Path")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(inspector_selectedAsset.dir.path)
im.NextColumn()
-- Asset Type
im.TextUnformatted("Type")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(inspector_selectedAsset.type)
im.NextColumn()
im.Columns(1)
im.TextUnformatted("Texture Maps")
if inspector_selectedAsset.d then
-- Asset Name
im.TextUnformatted("Name")
im.NextColumn()
local assetName = inspector_selectedAsset.fullFileName or inspector_selectedAsset.name
im.TextUnformatted(assetName)
if maxWidth < im.CalcTextSize(assetName).x then
-- Asset Path
im.TextUnformatted("Path")
im.NextColumn()
maxWidth = im.GetContentRegionAvailWidth()
im.TextUnformatted(inspector_selectedAsset.path)
if maxWidth < im.CalcTextSize(inspector_selectedAsset.path).x then
-- Asset Type
im.TextUnformatted("Type")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(inspector_selectedAsset.type or "directory")
im.NextColumn()
if inspector_selectedAsset.type ~= nil then
im.TextUnformatted("File type")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(inspector_selectedAsset.simpleFileType)
im.NextColumn()
-- Asset Filetype
im.TextUnformatted("")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(inspector_selectedAsset.fileType)
im.NextColumn()
-- Asset access time
im.TextUnformatted("Access time")
im.NextColumn()
maxWidth = im.GetContentRegionAvailWidth()
im.TextUnformatted(inspector_selectedAsset.filestats.accesstimeString)
if maxWidth < im.CalcTextSize(inspector_selectedAsset.filestats.accesstimeString).x then
-- Asset create time
im.TextUnformatted("Creation time")
im.NextColumn()
maxWidth = im.GetContentRegionAvailWidth()
im.TextUnformatted(inspector_selectedAsset.filestats.createtimeString)
if maxWidth < im.CalcTextSize(inspector_selectedAsset.filestats.createtimeString).x then
-- Asset mod time
im.TextUnformatted("Modification time")
im.NextColumn()
maxWidth = im.GetContentRegionAvailWidth()
im.TextUnformatted(inspector_selectedAsset.filestats.modtimeString)
if maxWidth < im.CalcTextSize(inspector_selectedAsset.filestats.modtimeString).x then
-- Asset file size
im.TextUnformatted("File size")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(inspector_selectedAsset.filestats.filesizeString)
im.NextColumn()
if inspector_selectedAsset.filesize then
im.TextUnformatted("File size")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(string.format("%0.0fkb", inspector_selectedAsset.filesize/1024))
im.NextColumn()
im.Columns(3, "DirectoriesToLoadColumns")
im.TextUnformatted("Name")
im.NextColumn()
im.NextColumn()
im.TextUnformatted("Path")
im.NextColumn()
im.BeginDisabled()
im.TextUnformatted("%level_name%")
im.NextColumn()
im.NextColumn()
im.TextUnformatted("%level_path%")
im.NextColumn()
for _, typeName in ipairs(sortedTbl) do
im.TextUnformatted(typeName)
im.NextColumn()
@/lua/ge/extensions/editor/dynamicDecals/colorHistory.lua
im.PushTextWrapPos(im.GetContentRegionAvailWidth())
im.TextUnformatted([[
The Color History section keeps track of the colors you've used in your design.
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/veStaticRenderView.lua
-- Create renderview if it doesn't exist for window
im.TextUnformatted('...')
@/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.TextColored(editor.color.warning.Value, selectedPaintMaterialProxy.internalName) im.SameLine()
im.TextUnformatted("layer mask.")
-- TERRAIN: NAME
im.TextUnformatted("Terrain Name")
im.SameLine()
-- TERRAIN: METERS PER PIXEL
im.TextUnformatted("Meters per Pixel")
im.SameLine()
-- TERRAIN: MAX HEIGHT
im.TextUnformatted("Max Height")
im.SameLine()
im.Separator()
im.TextUnformatted("Height Map Image:")
local inputTextWidth = im.GetContentRegionAvailWidth() - (var.inputWidgetHeight or 24) - var.style.ItemSpacing.x
--TERRAIN: HOLE MAP IMAGE
im.TextUnformatted("Hole Map Image:")
im.PushItemWidth(inputTextWidth)
if im.CollapsingHeader1("Additional Data", im.TreeNodeFlags_DefaultOpen) then
im.TextUnformatted("Apply Transform")
im.SameLine()
im.TextUnformatted("Position")
im.SameLine()
im.TextUnformatted("Flip Y Axis? (old exporter)")
im.SameLine()
-- EXPORT PATH
im.TextUnformatted("Export path:")
local inputTextWidth = im.GetContentRegionAvailWidth() - var.inputWidgetHeight - var.style.ItemSpacing.x
im.TextUnformatted("Hard")
im.SetCursorPosY(im.GetCursorPosY() + var.sc_curveWidgetSize - 2*var.fontSize - var.style.ItemSpacing.y)
im.SetCursorPosY(im.GetCursorPosY() + var.sc_curveWidgetSize - 2*var.fontSize - var.style.ItemSpacing.y)
im.TextUnformatted("Soft")
-- draw background
im.SetCursorPos(im.ImVec2(textWidthLeftBound + var.style.WindowPadding.x, var.menuBarHeight + var.style.WindowPadding.y + var.sc_curveWidgetSize + 1*var.style.ItemSpacing.y + var.inputWidgetHeight))
im.TextUnformatted("Inside")
editor.uiTextUnformattedRightAlign("Outside", true, var.sc_curveWidgetSize - im.GetContentRegionAvailWidth() + textWidthLeftBound)
local function sliderFloat(text, id, val, vmin, vmax, format, power, editEnded, fn, tooltip)
im.TextUnformatted(text)
im.SameLine()
local function inputFloat(text, id, val, vmin, vmax, step, stepFast, format, extra_flags, editEnded, tooltip)
im.TextUnformatted(text)
im.SameLine()
im.SameLine()
im.TextUnformatted("Slope Mask")
im.SameLine()
-- Domain of Influence.
im.TextUnformatted("Domain of Influence (m)")
im.SameLine()
im.SameLine()
im.TextUnformatted("Margin (m)")
im.SameLine()
im.SameLine()
im.TextUnformatted("Falloff")
im.SameLine()
im.SameLine()
im.TextUnformatted("Roughness")
im.SameLine()
im.SameLine()
im.TextUnformatted("Scale")
im.SameLine()
@/lua/ge/extensions/editor/flowgraph/nodePreview.lua
if self.mode == "node" then
im.TextUnformatted(self.hover.node.name .. ' (' .. self.hover.path .. ')')
elseif self.mode == "graph" then
if editor.getPreference("flowgraph.debug.displayIds") then
im.TextUnformatted(self.hover.id .. " - " .. self.hover.name)
else
else
im.TextUnformatted(self.hover.name)
end
if self.hover.node.description then
im.TextUnformatted(self.hover.node.description)
end
if self.hover.node.todo then
im.TextUnformatted("TODO: " .. self.hover.node.todo)
end
--if self.hover.node.author then
-- im.TextUnformatted('Author: ' .. self.hover.node.author)
--end
if self.mode == "macro" then
im.TextUnformatted(self.hover.name .. " - " .. self.hover.type)
if self.hover.description then
if self.hover.description then
im.TextUnformatted(self.hover.description)
end
@/lua/ge/extensions/editor/dynamicDecals/loadSave.lua
im.PushTextWrapPos(im.GetContentRegionAvailWidth())
im.TextUnformatted([[
The Save & Load section offers a way to manage your design projects.
@/lua/ge/extensions/editor/dynamicDecals/history.lua
im.Columns(2)
im.TextUnformatted("Undo Stack")
if im.Button("Undo Selected##DynamicDecalsTool") then history:undo(tableSize(history.undoStack) - undoStackSelectedIndex + 1) end
im.NextColumn()
im.TextUnformatted("Redo Stack")
if im.Button("Redo Selected##DynamicDecalsTool") then history:redo(tableSize(history.redoStack) - redoStackSelectedIndex + 1) end
@/lua/ge/extensions/flowgraph/nodes/logic/edgeDetect.lua
builder:Middle()
im.TextUnformatted(dumpsz(self.lastSignal, 2))
end
@/lua/ge/extensions/editor/biomeTool.lua
if imgui.BeginPopupModal("No Forest Item Selected") then
imgui.TextUnformatted("No Central Forest Item Selected!")
if imgui.Button("OK") then
end
imgui.TextUnformatted(progressStr)
if var.forestBrushTool:isBiomeProcCompleted() and errCode ~= 0 then
end
imgui.TextUnformatted(progressStr)
if var.forestBrushTool:isBiomeProcCompleted() and errCode ~= 0 then
imgui.PushStyleColor2(imgui.Col_Text, imgui.ImVec4(1, 0, 0, 1))
imgui.TextUnformatted("Please make brush selection!")
imgui.PopStyleColor()
imgui.PushStyleColor2(imgui.Col_Text, imgui.ImVec4(1, 0, 0, 1))
imgui.TextUnformatted("Please create at least one lasso area!")
imgui.PopStyleColor()
imgui.PushStyleColor2(imgui.Col_Text, imgui.ImVec4(1, 0, 0, 1))
imgui.TextUnformatted("You need to select a border brush element!")
imgui.PopStyleColor()
if imgui.BeginPopupModal("Delete Lasso Area##"..area.lassoAreaID) then
imgui.TextUnformatted("Are you sure you want to delete \"".."Area "..area.lassoAreaID.."\"?")
if imgui.Button("Cancel") then
if imgui.BeginPopupModal("Delete Layer") then
imgui.TextUnformatted("Are you sure you want to delete \""..layer.layerName.."\"?")
if imgui.Button("Cancel") then
end
imgui.TextUnformatted(progressStr)
if var.forestBrushTool:isBiomeProcCompleted() and errCode ~= 0 then
@/lua/ge/extensions/editor/dynamicDecals/layerTypes/textureFill.lua
im.PushTextWrapPos(im.GetContentRegionAvailWidth())
im.TextUnformatted([[
Fill layers let you apply patterns or textures to the vehicle.
@/lua/ge/extensions/editor/sceneTree.lua
imgui.TableNextColumn()
imgui.TextUnformatted(string.format('%0.1f', node.cameraDistance) .. 'm')
end
end
imgui.TextUnformatted(label)
end
@/lua/ge/extensions/editor/dynamicDecals/colorPresets.lua
im.PushTextWrapPos(im.GetContentRegionAvailWidth())
im.TextUnformatted([[
The Color Presets section comes with a number of predefined colors which you can use to enhance your design.
@/lua/ge/extensions/editor/dynamicDecals/export.lua
-- todo: get the vehicle name based on the selected vehicle
im.TextUnformatted("Vehicle Name")
im.SameLine()
-- export name
im.TextUnformatted("Skin Name")
im.SameLine()
-- export name
im.TextUnformatted("Export Name")
im.PushItemWidth(im.GetContentRegionAvailWidth())
-- export dir
im.TextUnformatted("Export Directory")
im.PushItemWidth(im.GetContentRegionAvailWidth() - tool.getIconSize() - im.GetStyle().ItemSpacing.x)
-- TODO: Disabled for now. We always export in png format.
-- im.TextUnformatted("Export Filetype")
-- im.PushItemWidth(im.GetContentRegionAvailWidth())
for _, exportPath in ipairs(texturesExport_exportPaths) do
im.TextUnformatted(exportPath[1])
if exportPath[2] then
im.PushTextWrapPos(im.GetContentRegionAvailWidth())
im.TextUnformatted([[
The Export section offers you to bring your designs into the game or continue refining them in external programs.
@/lua/ge/extensions/editor/physicsReloader.lua
if not BeamEngine and im.Button("createPhysics") then
im.TextUnformatted("Please replace libbeamng.dll now")
BeamEngine = Engine.createPhysics()
@/lua/ge/extensions/editor/resourceChecker.lua
end
im.TextUnformatted(n.pctStr or "0.00%")
im.NextColumn()
@/lua/ge/extensions/editor/decalEditor.lua
im.TextUnformatted("Id")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(tostring(selectedInstance.id))
im.NextColumn()
im.TextUnformatted("Uid")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(tostring(selectedInstance.uid))
im.NextColumn()
@/lua/ge/extensions/editor/rendererComponents.lua
if field.format then
im.TextUnformatted(string.format(field.format, value))
else
else
im.TextUnformatted(value)
end
if field.readonly then
im.TextUnformatted(value)
else
if field.readonly then
im.TextUnformatted(value)
else
for _, field in ipairs(data.fields) do
if field.name then im.TextUnformatted(field.name) end
if field.description then
else
im.TextUnformatted('-type not implemented-')
end
else
im.TextUnformatted("TODO: unknown type: " .. tostring(nodeType))
end
im.Separator()
im.TextUnformatted("Brightness")
im.Dummy(im.ImVec2(0, 5))
local rangeMax = 1
im.TextUnformatted("Tone Mapping Contrast")
im.SameLine()
end
im.TextUnformatted("Key Value")
im.SameLine()
end
im.TextUnformatted("Minimum Luminance")
im.SameLine()
end
im.TextUnformatted("White Cutoff")
im.SameLine()
end
im.TextUnformatted("Brightness Adapted Rate")
im.SameLine()
im.Separator()
im.TextUnformatted("Bloom")
im.Dummy(im.ImVec2(0, 5))
end
im.TextUnformatted("Bright Pass Threshold")
im.SameLine()
end
im.TextUnformatted("Blur Multiplier")
im.SameLine()
end
im.TextUnformatted("Blur 'Mean' value")
im.SameLine()
end
im.TextUnformatted("Blur 'Std Mean' value")
im.SameLine()
im.Separator()
im.TextUnformatted("Effects")
im.Dummy(im.ImVec2(0, 5))
im.Separator()
im.TextUnformatted("Focus Settings")
im.Dummy(im.ImVec2(0, 5))
im.Dummy(im.ImVec2(0, 5))
im.TextUnformatted("Focus Blur (Near)")
im.SameLine()
end
im.TextUnformatted("Focus Blur (Far)")
im.SameLine()
end
im.TextUnformatted("Aperture (Focus Width)")
im.SameLine()
end
im.TextUnformatted("Falloff Sharpness")
im.SameLine()
end
im.TextUnformatted("Focus Distance (meters)")
im.SameLine()
im.Separator()
im.TextUnformatted("Debug Stats")
im.Dummy(im.ImVec2(0, 5))
local inFocusWidth = (aperture / math.max(steepness, 0.01))
im.TextUnformatted(string.format("Estimated In-Focus Width: %.2f units", inFocusWidth))
if im.Button("Reset to defaults") then
tempFloatPtr[0] = lightraysSettings['brightness'].value
im.TextUnformatted("Brightness")
im.SameLine()
for _, field in ipairs(data.fields) do
if field.name then im.TextUnformatted(field.name) end
if field.description then
else
im.TextUnformatted('-type not implemented-')
end
@/lua/ge/extensions/editor/materialEditor.lua
if im.BeginPopup(popupId(suf)) then
im.TextUnformatted(titleText[suf])
im.Separator()
if not data or not data.lastMat then
im.TextUnformatted("No data. Use the button in Material Info to scan usage.")
else
else
im.TextUnformatted("Material: " .. tostring(data.lastMat))
im.SameLine()
im.Separator()
im.TextUnformatted(string.format(
"TSStatic: %d ForestItemData: %d",
im.NextColumn()
im.TextUnformatted(tostring(row.count or 0))
im.NextColumn()
im.NextColumn()
im.TextUnformatted(tostring(row.count or 0))
im.NextColumn()
local size = getGPUSize(tex)
if path ~= absPath then im.TextUnformatted(path) end
im.TextUnformatted(absPath)
if path ~= absPath then im.TextUnformatted(path) end
im.TextUnformatted(absPath)
im.TextUnformatted(string.format("Dimensions (loaded MIP): %d x %d\nFormat: %s", tex.size.x, tex.size.y, tex.format))
im.TextUnformatted(absPath)
im.TextUnformatted(string.format("Dimensions (loaded MIP): %d x %d\nFormat: %s", tex.size.x, tex.size.y, tex.format))
im.TextUnformatted(string.format("Size (estimated): %.2f MB", size / 1e6))
im.TextUnformatted(string.format("Dimensions (loaded MIP): %d x %d\nFormat: %s", tex.size.x, tex.size.y, tex.format))
im.TextUnformatted(string.format("Size (estimated): %.2f MB", size / 1e6))
im.PopTextWrapPos()
if label then
im.TextUnformatted(label)
im.SameLine()
im.TextUnformatted((label or property))
drawTextureIssueIcons(property, layer)
if columnsId then im.Columns(2, columnsId) end
im.TextUnformatted((label or property))
if columnsId then im.NextColumn() end
if label and #label > 0 then
im.TextUnformatted(label)
if labelSameLine then im.SameLine() end
tempBoolPtr[0] = false
im.TextUnformatted(label)
im.SameLine()
tempBoolPtr[0] = false
im.TextUnformatted(label)
im.SameLine()
layer = layer or o.layer[0]
im.TextUnformatted(label)
if tooltip then
local animFlags = tobit(currentMaterial:getField(property, layer))
im.TextUnformatted(label)
im.SameLine()
tempBoolPtr[0] = false
im.TextUnformatted(label)
if tooltip then
tempBoolPtr[0] = false
im.TextUnformatted(label)
im.SameLine()
layer = layer or o.layer[0]
if label then im.TextUnformatted(label) end
im.TextUnformatted(labelA)
if label then im.TextUnformatted(label) end
im.TextUnformatted(labelA)
local fltArr2 = editor.getTempFloatArray2_StringString(currentMaterial:getField(property, layer))
local valueB = editor.getTempFloat_StringString(fltArr2[1])
im.TextUnformatted(labelB)
im.SameLine()
if columnsId then im.Columns(2, columnsId) end
im.TextUnformatted(label)
if columnsId then
local function text(property, layer)
im.TextUnformatted(currentMaterial:getField(property, layer or o.layer[0]))
end
im.TextUnformatted("Name:")
im.SameLine()
setMaterialPropertiesColumnWidth()
im.TextUnformatted("Reflection Mode")
im.NextColumn()
im.NextColumn()
im.TextUnformatted("Cubemap")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(cubemapName == "" and "none" or cubemapName)
if cubemapName == "" then
if im.BeginPopup("EDITMATERIALNAME") then
im.TextUnformatted("Edit material name")
if im.InputText("Material name", editor.getTempCharPtr(editMatName), nil, im.flags(im.InputTextFlags_AutoSelectAll)) then
-- Name
im.TextUnformatted("Name")
im.NextColumn()
im.BeginTooltip()
im.TextUnformatted("Edit current material's name.\nChanges won't take effect until reloading the map.")
im.TextColored(editor.color.warning.Value, "Warning: Material can't be renamed.\nMaterial needs to reside in a json file.")
-- MapTo
im.TextUnformatted("Map To")
im.NextColumn()
im.TextUnformatted("Directory")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(dir)
im.NextColumn()
im.TextUnformatted("Filename")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(string.format("%s.%s", filename, ext))
if editor.uiButtonRightAlign("Open in explorer", nil, true) then
local version = tonumber(currentMaterial:getField('version', 0))
im.TextUnformatted("Version")
if version > 1 then
im.NextColumn()
im.TextUnformatted(currentMaterial:getField('version', 0))
im.SameLine()
if version and version > 1 then
im.TextUnformatted("Active Layers")
im.NextColumn()
im.NextColumn()
im.TextUnformatted(tostring(currentMaterial.activeLayers) .. ' of ' .. tostring(maxLayers))
im.SameLine()
end
im.TextUnformatted("Est. size")
im.ShowHelpMarker("Displays the estimated total GPU memory used by all textures in this material.\nActual usage varies with the MIP levels currently loaded.\nFor detailed statistics use Performance Graph GPU Memory Profiling (CTRL + SHIFT + F).", true)
local totalSize = computeTotalTextureSize(currentMaterial)
im.TextUnformatted(string.format("%.2f MB", totalSize / 1e6))
--
imageButton("Overlay Map", "overlayMap", nil, function()
im.TextUnformatted("This texture uses the 2nd UV channel")
end)
checkboxFlag("Wave Animation", "animFlags", enum_animFlags.wave, layer)
im.TextUnformatted("Wave Type")
radio("Wave Type", "Sin", "waveType", "Sin", layer)
im.TextUnformatted("Alpha Blend Mode")
im.SameLine()
im.Columns(2, "Material Properties")
im.TextUnformatted("Annotation")
im.NextColumn()
setMaterialPropertiesColumnWidth()
im.TextUnformatted("Material Tag 0")
im.NextColumn()
im.TextUnformatted("Material Tag 1")
im.NextColumn()
im.TextUnformatted("Material Tag 2")
im.NextColumn()
else
im.TextUnformatted("No material selected!")
end
if im.BeginPopup("DeleteCurrentMaterial") then
im.TextUnformatted("Are you sure you want to delete the current material?")
if im.Button("Cancel") then
im.BeginTooltip()
im.TextUnformatted("Delete current material.\nChanges won't take effect until reloading the map.")
im.TextColored(editor.color.warning.Value, "Warning: Material can't be deleted.\nMaterial needs to reside in a json file.")
if previewMeshes then
im.TextUnformatted("Preview Meshes")
im.ShowHelpMarker("RMB: Orbit view\nScroll Wheel (+ Ctrl): Zoom view\nShift + RMB: Move sun" , true)
end
im.TextUnformatted(tooltipMsg)
im.EndTooltip()
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/vePartTree.lua
im.PushStyleColor2(im.Col_Text, colorKey)
im.TextUnformatted(tostring(k))
im.PopStyleColor()
im.SameLine()
im.TextUnformatted(': ')
im.PopStyleColor()
im.PushStyleColor2(im.Col_Text, colorElement)
im.TextUnformatted(tostring(v))
im.PopStyleColor()
im.PushStyleColor2(im.Col_Text, colorElement)
im.TextUnformatted(label)
im.PopStyleColor()
@/lua/ge/extensions/core/vehicleTriggers.lua
end
im.TextUnformatted(title)
im.PopStyleColor()
local dir, filename, ext = path.splitWithoutExt(tostring(vData.config.partConfigFilename))
im.TextUnformatted(filename)
end
im.PushStyleColor2(im.Col_Text, im.ImVec4(1, 0, 1, 1))
im.TextUnformatted(vehId == be:getPlayerVehicleID(0) and ' [ACTIVE]' or '')
im.PopStyleColor()
im.PushStyleColor2(im.Col_Text, im.ImVec4(1, 1, 0, 1))
im.TextUnformatted(tostring(triggerCount))
im.PopStyleColor()
im.TableNextColumn()
im.TextUnformatted(tostring(trg.cid))
im.TableNextColumn()
-- triggers2
im.TextUnformatted(tostring(lnk.inputAction))
im.TableNextColumn()
im.TableNextColumn()
im.TextUnformatted(tostring(lnk.namespace))
if lnk.namespace == 'common' then
im.SameLine()
im.TextUnformatted(tostring(lnk.commonLua and "[LUA]" or "[C++]"))
end
im.SameLine()
im.TextUnformatted(' (' .. tostring(trg.originSection) .. ')')
end
-- triggers (1)
im.TextUnformatted(tostring(lnk.action) .. ' - ' .. tostring(lnk.targetEvent.name))
im.SameLine()
im.PushStyleColor2(im.Col_Text, im.ImVec4(1, 1, 0, 1))
im.TextUnformatted(tostring(eventsCount))
im.PopStyleColor()
im.TableNextColumn()
im.TextUnformatted(tostring(evt.cid))
im.TableNextColumn()
im.PushStyleColor2(im.Col_Text, im.ImVec4(1, 1, 0, 1))
im.TextUnformatted(tostring(eventsCount))
im.PopStyleColor()
im.TableNextColumn()
im.TextUnformatted(tostring(triggerId))
im.TableNextColumn()
-- triggers2
im.TextUnformatted(tostring(lnk.triggerInput) .. ' - ' .. tostring(lnk.inputAction))
im.SameLine()
-- triggers (1)
im.TextUnformatted(tostring(lnk.action) .. ' - ' .. tostring(lnk.targetEvent.name))
im.SameLine()
@/lua/ge/extensions/flowgraph/nodes/gameplay/traffic/pursuitMode.lua
if gameplay_traffic and gameplay_traffic.getState() ~= 'on' then
im.TextUnformatted('Traffic not active!')
end
@/lua/ge/extensions/flowgraph/nodes/logic/compare.lua
im.Columns(2, "layoutColumns")
im.TextUnformatted("Comparison Function")
im.NextColumn()
builder:Middle()
im.TextUnformatted(self.comparison.opSymbol)
end
@/lua/ge/extensions/editor/aiTests.lua
im.TextUnformatted(veh.model.." "..veh.config)
im.TextUnformatted("Current Vehicle")
im.Separator()
im.TextUnformatted("All Vehicles")
@/lua/ge/extensions/editor/trafficSignalsEditor.lua
im.TextUnformatted("Ordered States")
im.TextUnformatted("Flashing Lights Slot #"..selected.flashingLight)
else
im.TextUnformatted("Ordered Lights")
end
if currInstance then
im.TextUnformatted("Current Signal: "..currInstance.name.." ["..currInstance.id.."]")
im.SameLine()
im.Separator()
im.TextUnformatted("Signal Group")
im.Separator()
im.TextUnformatted("Signal Objects")
else
im.TextUnformatted(" ")
end
if not currInstance.tempSignalObjects[1] then
im.TextUnformatted("No linked objects found.")
else
if currController then
im.TextUnformatted("Current Controller: "..currController.name.." ["..currController.id.."]")
im.Separator()
im.TextUnformatted("States")
if stateData then
im.TextUnformatted(stateData.name)
end
im.Dummy(dummyVec)
im.TextUnformatted("No settings available for this controller.")
else
if stateData then
im.TextUnformatted(stateData.name)
im.TableNextColumn()
if currController.totalDuration ~= math.huge then
im.TextUnformatted(string.format("Total Duration: %0.2f s", currController.totalDuration))
else
else
im.TextUnformatted("Total Duration: Infinite")
end
if currSequence then
im.TextUnformatted("Current Sequence: "..currSequence.name.." ["..currSequence.id.."]")
im.Separator()
im.TextUnformatted("Phases")
for i, phase in ipairs(currSequence.phases) do
im.TextUnformatted(tostring(i))
im.TableNextColumn()
if phase.totalDuration ~= math.huge then
im.TextUnformatted(string.format("%0.2f s", phase.totalDuration))
else
else
im.TextUnformatted("Infinite")
end
if currSequence.totalDuration ~= math.huge then
im.TextUnformatted(string.format("Total Duration: %0.2f s", currSequence.totalDuration))
else
else
im.TextUnformatted("Total Duration: Infinite")
end
im.TableSetBgColor(im.TableBgTarget_CellBg, im.GetColorU322(imColors.black), columnIdx)
im.TextUnformatted("")
columnIdx = columnIdx + 1
im.TableSetBgColor(im.TableBgTarget_CellBg, im.GetColorU322(color), columnIdx)
im.TextUnformatted("")
columnIdx = columnIdx + 1
im.TableSetBgColor(im.TableBgTarget_CellBg, im.GetColorU322(imColors.black), columnIdx)
im.TextUnformatted("")
end
if debugData.nextTime then
im.TextUnformatted(string.format("Current timer: %.2f s", debugData.timer))
im.TextUnformatted(string.format("Next event time: %.2f s", debugData.nextTime))
im.TextUnformatted(string.format("Current timer: %.2f s", debugData.timer))
im.TextUnformatted(string.format("Next event time: %.2f s", debugData.nextTime))
end
for i, sequence in ipairs(core_trafficSignals.getSequences()) do
im.TextUnformatted(sequence.name)
im.TableNextColumn()
im.TextUnformatted(tostring(sequence.currStep))
im.TableNextColumn()
im.TextUnformatted(tostring(sequence.currPhase))
im.TableNextColumn()
for _, s in ipairs(simLogs) do
im.TextUnformatted(s)
end
else
im.TextUnformatted("Signals need to exist before running simulation.")
running = false
if im.BeginPopupModal("Confirm##trafficSignals", nil, im.WindowFlags_AlwaysAutoResize) then
im.TextUnformatted("Are you sure you want to clear signals data?")
im.Dummy(dummyVec)