GE Lua Documentation

Press F to search!

GetFontSize

Definition


-- @/=[C]:-1
function GetFontSize(...)

Callers

@/lua/ge/extensions/editor/dynamicDecals/layerTypes/brushStroke.lua
  im.NextColumn()
  im.PushItemWidth(im.GetContentRegionAvailWidth() - ((layer.colorPaletteMapId > 0) and (im.GetStyle().ItemSpacing.x + math.ceil(im.GetFontSize()) + 2 * im.GetStyle().FramePadding.y) or 0))
  if im.Combo2(string.format("##%s_%s_%s", layer.uid, guiId, "colorpalettemapid"), editor.getTempInt_NumberNumber(layer.colorPaletteMapId), "zero\0one\0two\0three\0\0") then
@/lua/ge/extensions/editor/flowgraph/properties.lua
  a.y = a.y - yy
  b = im.ImVec2(a.x + b.x + xx * 2, a.y + im.GetFontSize() + 16)
  local uv = im.ImVec2(0.5, 0.1)
@/lua/ge/extensions/editor/dynamicDecalsTool.lua
  im.PushStyleColor2(im.Col_Button, nodeColor or im.ImVec4(1,102/255, 0, 0.2))
  local buttonHeight = math.ceil(im.GetFontSize()) + imguiStyle.FramePadding.y
  local headerWidth = im.GetContentRegionAvailWidth() - (section.buttons and #section.buttons or 0) * (buttonHeight + imguiStyle.ItemSpacing.x)
  -- button icon
  local iconSize = math.ceil(im.GetFontSize())
  editor.uiIconImage(section.open and editor.icons.keyboard_arrow_down or editor.icons.keyboard_arrow_right, im.ImVec2(iconSize, iconSize), im.GetStyleColorVec4(im.Col_Text))
    imguiStyle = im.GetStyle()
    iconSize = math.ceil(im.GetFontSize()) + 2 * imguiStyle.FramePadding.y
    iconSizeVec2.x = iconSize
@/lua/ge/extensions/editor/dynamicDecals/fonts.lua

  im.BeginChild1("BrowserFontsChild", im.ImVec2(0, im.GetContentRegionAvail().y - math.ceil(im.GetFontSize()) - im.GetStyle().ItemSpacing.y), true)
@/lua/ge/extensions/editor/dynamicDecals/docs.lua
        im.ImVec2(wpos.x + cPos.x - itemInnerSpacing - itemSpacing.x, wpos.y + cPos.y - itemSpacing.y/2 - scrollY),
        im.ImVec2(wpos.x + cPos.x - itemInnerSpacing, wpos.y + cPos.y + im.GetFontSize() + itemSpacing.y - scrollY),
        im.GetColorU322(editor.color.beamng.Value)
@/lua/ge/extensions/editor/resourceChecker.lua
  im.Separator()
  im.BeginChild1("##childResults", im.ImVec2(0, windowSize.y-textSize.y-(im.GetFontSize()*3.5)-30), false, im.WindowFlags_ChildWindow+im.WindowFlags_HorizontalScrollbar)
  local fontPushed = im.PushFont3("robotomono_regular")
@/lua/ge/extensions/ui/console.lua
      -- local displayEnd = im.IntPtr(0)
      -- local lines_height = math.floor( im.GetFontSize() + im.GetStyle().ItemSpacing.y )
      -- local lines_count = logsTail - (logsHead+1)
  --     local displayEnd = im.IntPtr(0)
  --     -- local lines_height = im.GetTextLineHeightWithSpacing() --math.floor( im.GetFontSize() + im.GetStyle().ItemSpacing.y ) + 0--10px spacing table
  --     local lines_height = math.ceil(im.GetTextLineHeightWithSpacing())
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/veAdjustableTechCarTuner.lua

    addVarFloatSlider((x1 + x2) * 0.5 - sliderSize * 0.5, my - im.GetFontSize() * 0.5, var)
  else

    addVarFloatSlider(mx - sliderSize * 0.5, (y1 + y2) * 0.5 - im.GetFontSize() * 0.5, var)
  end
@/lua/ge/extensions/editor/dynamicDecals/layerTypes/textureFill.lua
  local style = im.GetStyle()
  local colorButtonHeight = math.ceil(im.GetFontSize()) + 2 * style.FramePadding.y
  if widgets.draw(layer.colorPaletteMapId, api.propertiesMap["textureFill_colorPaletteMapId"], widgetId, nil, {widthMod = -(style.ItemSpacing.x + colorButtonHeight)}) then
  local style = im.GetStyle()
  local colorButtonHeight = math.ceil(im.GetFontSize()) + 2 * style.FramePadding.y
  local colorPaletteMapId = api.getFillLayerColorPaletteMapId()
@/lua/ge/extensions/editor/terrainEditor.lua
        if im.BeginChild1("MaterialSelectorChild", childSize) and tableSize(paintMaterialProxies) then
          local btnHeight = math.ceil(im.GetFontSize()) + 2
          local thisFrameHoveredIndex = nil
              end
              local previewPx = math.max(32 * im.uiscale[0], math.floor(im.GetFontSize()))  -- small but readable
              local drewPreview = false
  var.io = im.GetIO()
  var.fontSize = math.ceil(im.GetFontSize())
  var.menuBarHeight = 2*var.style.FramePadding.y + var.fontSize
@/lua/ge/extensions/editor/flowgraph/nodelibrary.lua
  local itemSize = im.CalcTextSize((read and "Get " or "Set ")..var.name)
  itemSize.x = itemSize.x + im.GetFontSize() + padding.x * 3
  local itemSize = im.CalcTextSize(macroName)
  itemSize.x = itemSize.x + im.GetFontSize() + padding.x * 3
  if im.InvisibleButton("invBtn_" .. macroName, itemSize) then
  local itemSize = im.CalcTextSize(btnText)
  itemSize.x = itemSize.x + im.GetFontSize() + padding.x * 3
  local itemSize = im.CalcTextSize(btnText)
  itemSize.x = itemSize.x + im.GetFontSize() + padding.x * 3
  local itemSize = im.CalcTextSize(stateName)
  itemSize.x = itemSize.x + im.GetFontSize() + padding.x * 3
  self.buttonListIndex = self.buttonListIndex + 1
    local itemSize = im.CalcTextSize(nodeName)
    itemSize.x = itemSize.x + im.GetFontSize() + padding.x * 3
@/lua/ge/extensions/editor/camPathEditor.lua
      end
      im.BeginChild1('replay', im.ImVec2(0, im.GetFontSize() * h * im.uiscale[0]), im.WindowFlags_ChildWindow)
      linkReplay[0] = M.currentPath.replay == '' or M.currentPath.replay ~= nil and replayExists(M.currentPath.replay)

      im.BeginChild1('M.currentPath', im.ImVec2(0, im.GetFontSize() * 6 * im.uiscale[0]), im.WindowFlags_ChildWindow)
      im.Text('Current Path')
@/lua/ge/extensions/editor/preferences.lua
          windowPos.x + cPos.x - style.ItemSpacing.x/2 + 5,
          windowPos.y + cPos.y + math.ceil(imgui.GetFontSize() + style.ItemSpacing.y/2) - scrollY
        ),
@/lua/ge/extensions/trackbuilder/trackBuilder.lua
      im.BeginTooltip()
      im.PushTextWrapPos(im.GetFontSize() * 35.0)
      im.TextUnformatted(tex.path)
@/lua/ge/extensions/editor/terrainMaterialsEditor.lua
local function deleteMapButton(label, propertyName)
  local inputWidgetHeight = math.ceil(im.GetFontSize()) + 2 * im.GetStyle().FramePadding.y
  im.PushID1(propertyName .. '_RemoveMapButton')

  local inputWidgetHeight = math.ceil(im.GetFontSize()) + 2 * im.GetStyle().FramePadding.y

    local btnHeight = math.ceil(im.GetFontSize()) + 2
    --TODO: move to terrain.lua api
    --TODO: move to terrain.lua api
    fontSize = math.ceil(im.GetFontSize())
    if editor_terrainEditor then editor_terrainEditor.setupVars() end
    -- local size = im.ImVec2(0, materialEditorWindowSize.y - (fontSize + 2 * editor_terrainEditor.getVars().style.FramePadding.y + editor_terrainEditor.getVars().style.WindowPadding.y) - (fontSize + editor_terrainEditor.getVars().style.WindowPadding.y + editor_terrainEditor.getVars().style.ItemSpacing.y) - (fontSize + editor_terrainEditor.getVars().style.ItemSpacing.y))
    local size = im.ImVec2(0, im.GetContentRegionAvail().y - (im.GetFontSize() + 2 * im.GetStyle().FramePadding.y + im.GetStyle().ItemSpacing.y))
    if im.BeginChild1("Material Properties##Child", size, true) then
@/lua/ge/extensions/editor/dynamicDecals/widgets.lua
    im.TextColored(editor.color.beamng.Value, "Presets")
    local btnSize = math.ceil(im.GetFontSize())
    local availableWidth = 256 + im.GetStyle().WindowPadding.x * 2
  local prefSize = editor.getPreference("dynamicDecalsTool.widgets.multiColorWidgetWidth")
  local maxSize = im.GetContentRegionAvailWidth() - (2 * im.GetStyle().ItemSpacing.x + 2 * math.ceil(im.GetFontSize()))
  local size = prefSize > maxSize and maxSize or prefSize
@/lua/ge/extensions/editor/dynamicDecals/colorHistory.lua
  local data = editor.getPreference("dynamicDecalsTool.colorHistory.history")
  local uiIconSize = math.ceil(im.GetFontSize()) + 2 * im.GetStyle().FramePadding.y
  for k, color in ipairs(data) do
@/lua/ge/extensions/editor/dynamicDecals/layerTypes/path.lua
  im.NextColumn()
  im.PushItemWidth(im.GetContentRegionAvailWidth() - ((layer.colorPaletteMapId > 0) and (im.GetStyle().ItemSpacing.x + math.ceil(im.GetFontSize()) + 2 * im.GetStyle().FramePadding.y) or 0))
  if im.Combo2(string.format("##%s_%s_%s", layer.uid, guiId, "inspector_colorpalettemapid"), editor.getTempInt_NumberNumber(layer.colorPaletteMapId), "zero\0one\0two\0three\0\0") then
@/lua/ge/extensions/editor/fileDialog.lua
      if file.filetype == "dir" then
        editor.uiIconImage(editor.icons.folder, im.ImVec2(im.GetFontSize(), im.GetFontSize()))
        im.SameLine()
      if file.filetype == "dir" then
        editor.uiIconImage(editor.icons.folder, im.ImVec2(im.GetFontSize(), im.GetFontSize()))
        im.SameLine()
        if fileTypeIcons[file.extension] then
          editor.uiIconImage(fileTypeIcons[file.extension], im.ImVec2(im.GetFontSize(), im.GetFontSize()))
        else
        if fileTypeIcons[file.extension] then
          editor.uiIconImage(fileTypeIcons[file.extension], im.ImVec2(im.GetFontSize(), im.GetFontSize()))
        else
        else
          editor.uiIconImage(editor.icons.ab_asset_json, im.ImVec2(im.GetFontSize(), im.GetFontSize()))
        end
        else
          editor.uiIconImage(editor.icons.ab_asset_json, im.ImVec2(im.GetFontSize(), im.GetFontSize()))
        end
@/lua/common/extensions/ui/imgui_custom_luaintf.lua
      M.BeginTooltip()
      M.PushTextWrapPos(M.GetFontSize() * 35.0)
      M.TextUnformatted(desc)
@/lua/ge/extensions/editor/forestEditor.lua
  local scrollY = im.GetScrollY()
  local fontSize = im.GetFontSize()
  local cPos

  im.BeginChild1("parallaxMappingTextureSetEditor_textureSet_TexturePreview_Child", im.ImVec2(0, im.GetContentRegionAvail().y - (math.ceil(im.GetFontSize() + im.GetStyle().ItemSpacing.y * 2))), true)
  var.style = im.GetStyle()
  var.fontSize = math.ceil(im.GetFontSize())
@/lua/ge/extensions/editor/dynamicDecals/textures.lua
  local spaceAvailable = im.GetContentRegionAvail()
  im.BeginChild1("DecalTexturesBrowserChild", im.ImVec2(spaceAvailable.x, spaceAvailable.y - (2 * im.GetStyle().ItemSpacing.y +  1 * math.ceil(im.GetFontSize()))), true)
  drawTextureTiles(textures.getTextureFiles(), decalTextureTextFilter)
@/lua/ge/extensions/editor/dynamicDecals/notification.lua
      local style = im.GetStyle()
      im.BeginChild1("DynamicDecals_Notification_NotificationsChild", im.ImVec2(0, im.GetContentRegionAvail().y - (math.ceil(im.GetFontSize()) + 2*style.ItemSpacing.y)), true)
      for sectionName, sectionData in pairs(notifications) do
@/lua/common/extensions/ui/imguiUtils.lua

  local fontSize = imgui.GetFontSize()
  -- hardcoded for the time being
@/lua/ge/extensions/editor/assetBrowser.lua

var.fontSize = math.ceil(im.GetFontSize())
var.minThumbnailSize = math.ceil(im.GetFontSize())
var.fontSize = math.ceil(im.GetFontSize())
var.minThumbnailSize = math.ceil(im.GetFontSize())
var.tooltipThumbnailSize = im.ImVec2(64,64)

    var.fontSize = math.ceil(im.GetFontSize())
    var.menuBarHeight = 2*var.style.FramePadding.y + var.fontSize
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/vePartTextView.lua
local function _renderASTLines(clipper)
  local fontSize = im.GetFontSize()
  local numLines = #vEditor.ast.transient.linesIndexes
@/lua/ge/extensions/editor/api/gui.lua
    (vec2_offset and imgui.ImVec2(winPos.x + cursor.x + vec2_offset.x, winPos.y + cursor.y + vec2_offset.y) or imgui.ImVec2(winPos.x + cursor.x, winPos.y + cursor.y)),
    (vec2_offset and imgui.ImVec2(winPos.x + cursor.x + vec2_offset.x, winPos.y + cursor.y + imgui.uiscale[0] * (float_height or imgui.GetFontSize()) + vec2_offset.y) or imgui.ImVec2(winPos.x + cursor.x, winPos.y + cursor.y + imgui.uiscale[0] * (float_height or imgui.GetFontSize()))),
    imgui.GetColorU321(imgui.Col_Separator),
    (vec2_offset and imgui.ImVec2(winPos.x + cursor.x + vec2_offset.x, winPos.y + cursor.y + vec2_offset.y) or imgui.ImVec2(winPos.x + cursor.x, winPos.y + cursor.y)),
    (vec2_offset and imgui.ImVec2(winPos.x + cursor.x + vec2_offset.x, winPos.y + cursor.y + imgui.uiscale[0] * (float_height or imgui.GetFontSize()) + vec2_offset.y) or imgui.ImVec2(winPos.x + cursor.x, winPos.y + cursor.y + imgui.uiscale[0] * (float_height or imgui.GetFontSize()))),
    imgui.GetColorU321(imgui.Col_Separator),
  local style = imgui.GetStyle()
  local fontSize = math.ceil(imgui.GetFontSize())
  local stepButtonSizeHeight = fontSize + style.FramePadding.y * 2
@/lua/common/extensions/ui/imgui_gen_luaintf.lua
function M.GetFont() return imgui.GetFont() end
function M.GetFontSize() return imgui.GetFontSize() end
function M.GetFontTexUvWhitePixel() return imgui.GetFontTexUvWhitePixel() end
function M.GetFont() return imgui.GetFont() end
function M.GetFontSize() return imgui.GetFontSize() end
function M.GetFontTexUvWhitePixel() return imgui.GetFontTexUvWhitePixel() end
@/lua/ge/extensions/editor/materialEditor.lua
      local avail = im.GetContentRegionAvail()
      im.BeginChild1("##mu_child", im.ImVec2(avail.x, avail.y - 4*im.GetFontSize()), false, im.WindowFlags_ChildWindow + im.WindowFlags_HorizontalScrollbar)
      im.BeginTooltip()
      im.PushTextWrapPos(im.GetFontSize() * 35.0)
      local size = getGPUSize(tex)
@/lua/ge/extensions/editor/dynamicDecals/layerTypes/linkedSet.lua
  im.SameLine()
  -- local btnSize = im.GetFontSize() + 2 * im.GetStyle().FramePadding.y
  -- if editor.uiIconImageButton(editor.icons.add, im.ImVec2(btnSize, btnSize), nil, nil, nil, string.format("PropertiesAddButton_%s_%s", guiId, layer.uid)) then
@/lua/ge/extensions/editor/dynamicDecals/brushes.lua

  im.BeginChild1("BrowserBrushesChild", im.ImVec2(spaceAvailable.x, spaceAvailable.y - (im.GetStyle().ItemSpacing.y +  1 * math.ceil(im.GetFontSize()) + 3)), true)
  local thumbnailSize = editor.getPreference("dynamicDecalsTool.textureBrowser.texturePreviewSize")
@/lua/ge/extensions/editor/roadEditor.lua
          im.BeginTooltip()
          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 ))
@/lua/ge/extensions/editor/api/valueInspector.lua
  local drawlist = imgui.GetWindowDrawList()
  local coloredBGHeight = math.ceil(imgui.GetFontSize())
  local textWidth = imgui.CalcTextSize("X").x
  local textWidth = imgui.CalcTextSize("X").x
  local textPadding = imgui.GetFontSize() - textWidth
  local coloredBGWidth = math.ceil(imgui.GetFontSize()) - textPadding / 2
  local textPadding = imgui.GetFontSize() - textWidth
  local coloredBGWidth = math.ceil(imgui.GetFontSize()) - textPadding / 2
  local stepButtonsWidth = 0
    if customData and customData.coloredLabelIndicator then drawColoredLabelIndicator = true end
    if drawColoredLabelIndicator then imgui.PushStyleVar2(imgui.StyleVar_FramePadding, imgui.ImVec2(imgui.GetFontSize(), 0)) end
      if customData and customData.coloredLabelIndicator then drawColoredLabelIndicator = true end
      if drawColoredLabelIndicator then imgui.PushStyleVar2(imgui.StyleVar_FramePadding, imgui.ImVec2(imgui.GetFontSize(), 0)) end
@/lua/ge/extensions/editor/inspector.lua
local groundCoverUVHandlesOnDragStart = nil
local handleSquareSize = math.ceil(imgui.GetFontSize())
local groundCoverUVHandle_enum = {
    if typeIndex == groundCoverUVTypeIndex then
      local fontSize = math.ceil(imgui.GetFontSize())
      local menuBarHeight = 2*imgui.GetStyle().FramePadding.y + fontSize
  local drawlist = imgui.GetWindowDrawList()
  local coloredBGHeight = math.ceil(imgui.GetFontSize())
  local textWidth = imgui.CalcTextSize("W").x
  local textWidth = imgui.CalcTextSize("W").x
  local textPadding = imgui.GetFontSize() - textWidth
  local coloredBGWidth = math.ceil(imgui.GetFontSize()) - textPadding/2 - 4
  local textPadding = imgui.GetFontSize() - textWidth
  local coloredBGWidth = math.ceil(imgui.GetFontSize()) - textPadding/2 - 4

  local buttonSize = imgui.GetFontSize() / imgui.uiscale[0]
  local uvValueWidgetWidth = imgui.GetContentRegionAvailWidth() - buttonSize * imgui.uiscale[0]

  imgui.PushStyleVar2(imgui.StyleVar_FramePadding, imgui.ImVec2(imgui.GetFontSize(), 0))
  imgui.PushItemWidth(uvValueWidgetWidth)
@/lua/ge/extensions/editor/forestView.lua
  if not obj then return end
  local fontSize = math.ceil(imgui.GetFontSize())
  local buttonColor_active = imgui.GetStyleColorVec4(imgui.Col_ButtonActive)
@/lua/ge/extensions/editor/dynamicDecals/colorPresets.lua
  local data = editor.getPreference("dynamicDecalsTool.colorPresets.presets")
  local uiIconSize = (math.ceil(im.GetFontSize()) + 2 * im.GetStyle().FramePadding.y) * im.uiscale[0]
  for k, color in ipairs(data) do
@/lua/ge/extensions/editor/biomeTool.lua
    --imgui.PushStyleColor2(imgui.Col_Button, (isForestBrushTempSelected(layerType, layerID, item.internalName, enum_forestBrushItemZone.central)) and var.buttonColor_active or var.buttonColor_inactive)
    editor.uiIconImage(editor.icons.forest_brushelement, imgui.ImVec2(math.ceil(imgui.GetFontSize()), math.ceil(imgui.GetFontSize())))
    imgui.SameLine()
    --imgui.PushStyleColor2(imgui.Col_Button, (isForestBrushTempSelected(layerType, layerID, item.internalName, enum_forestBrushItemZone.central)) and var.buttonColor_active or var.buttonColor_inactive)
    editor.uiIconImage(editor.icons.forest_brushelement, imgui.ImVec2(math.ceil(imgui.GetFontSize()), math.ceil(imgui.GetFontSize())))
    imgui.SameLine()
    local textPos = imgui.GetCursorPos()
    if imgui.Button("##CentralBrush"..item.id, imgui.ImVec2(imgui.GetContentRegionAvailWidth(), math.ceil(imgui.GetFontSize()))) then
      selectForestTempBrush(layerType, layerID, item.internalName, enum_forestBrushItemZone.central)
    if not isForestBrushSelected(layerType, layerID, item.internalName, enum_forestBrushItemZone.falloff) then goto continue end
    editor.uiIconImage(editor.icons.forest_brushelement, imgui.ImVec2(math.ceil(imgui.GetFontSize()), math.ceil(imgui.GetFontSize())))
    imgui.SameLine()
    if not isForestBrushSelected(layerType, layerID, item.internalName, enum_forestBrushItemZone.falloff) then goto continue end
    editor.uiIconImage(editor.icons.forest_brushelement, imgui.ImVec2(math.ceil(imgui.GetFontSize()), math.ceil(imgui.GetFontSize())))
    imgui.SameLine()
    local textPos = imgui.GetCursorPos()
    if imgui.Button("##FalloffBrush"..item.id, imgui.ImVec2(imgui.GetContentRegionAvailWidth(), math.ceil(imgui.GetFontSize()))) then
      selectForestTempBrush(layerType, layerID, item.internalName, enum_forestBrushItemZone.falloff)
    imgui.PushStyleColor2(imgui.Col_Button, (isNoneBrushSelected) and var.buttonColor_active or var.buttonColor_inactive)
    editor.uiIconImage(editor.icons.forest_brushelement, imgui.ImVec2(math.ceil(imgui.GetFontSize()), math.ceil(imgui.GetFontSize())))
    imgui.SameLine()
    imgui.PushStyleColor2(imgui.Col_Button, (isNoneBrushSelected) and var.buttonColor_active or var.buttonColor_inactive)
    editor.uiIconImage(editor.icons.forest_brushelement, imgui.ImVec2(math.ceil(imgui.GetFontSize()), math.ceil(imgui.GetFontSize())))
    imgui.SameLine()
    local textPos = imgui.GetCursorPos()
    if imgui.Button("##NoneCentral", imgui.ImVec2(imgui.GetContentRegionAvailWidth(), math.ceil(imgui.GetFontSize()))) then
      clearForestBrushTempSelection()
      imgui.PushStyleColor2(imgui.Col_Button, (isBrushSelected) and var.buttonColor_active or var.buttonColor_inactive)
      editor.uiIconImage(editor.icons.forest_brushelement, imgui.ImVec2(math.ceil(imgui.GetFontSize()), math.ceil(imgui.GetFontSize())))
      imgui.SameLine()
      imgui.PushStyleColor2(imgui.Col_Button, (isBrushSelected) and var.buttonColor_active or var.buttonColor_inactive)
      editor.uiIconImage(editor.icons.forest_brushelement, imgui.ImVec2(math.ceil(imgui.GetFontSize()), math.ceil(imgui.GetFontSize())))
      imgui.SameLine()
      local textPos = imgui.GetCursorPos()
      if imgui.Button("##Falloff"..item.id, imgui.ImVec2(imgui.GetContentRegionAvailWidth(), math.ceil(imgui.GetFontSize()))) then
        if isBrushSelected then
    imgui.PushStyleColor2(imgui.Col_Button, (isForestBrushTempSelected(layerType, layerID, noneBrushItemName, enum_forestBrushItemZone.falloff)) and var.buttonColor_active or var.buttonColor_inactive)
    editor.uiIconImage(editor.icons.forest_brushelement, imgui.ImVec2(math.ceil(imgui.GetFontSize()), math.ceil(imgui.GetFontSize())))
    imgui.SameLine()
    imgui.PushStyleColor2(imgui.Col_Button, (isForestBrushTempSelected(layerType, layerID, noneBrushItemName, enum_forestBrushItemZone.falloff)) and var.buttonColor_active or var.buttonColor_inactive)
    editor.uiIconImage(editor.icons.forest_brushelement, imgui.ImVec2(math.ceil(imgui.GetFontSize()), math.ceil(imgui.GetFontSize())))
    imgui.SameLine()
    local textPos = imgui.GetCursorPos()
    if imgui.Button("##NoneFalloff", imgui.ImVec2(imgui.GetContentRegionAvailWidth(), math.ceil(imgui.GetFontSize()))) then
      clearForestBrushTempSelection()
      imgui.PushStyleColor2(imgui.Col_Button, isBrushSelected and var.buttonColor_active or var.buttonColor_inactive)
      editor.uiIconImage(editor.icons.forest_brushelement, imgui.ImVec2(math.ceil(imgui.GetFontSize()), math.ceil(imgui.GetFontSize())))
      imgui.SameLine()
      imgui.PushStyleColor2(imgui.Col_Button, isBrushSelected and var.buttonColor_active or var.buttonColor_inactive)
      editor.uiIconImage(editor.icons.forest_brushelement, imgui.ImVec2(math.ceil(imgui.GetFontSize()), math.ceil(imgui.GetFontSize())))
      imgui.SameLine()
      local textPos = imgui.GetCursorPos()
      if imgui.Button("##Falloff"..item.id, imgui.ImVec2(imgui.GetContentRegionAvailWidth(), math.ceil(imgui.GetFontSize()))) then
        if isBrushSelected then
      if not isForestBrushSelected(layerType, layerID, item.internalName, enum_forestBrushItemZone.edge) then goto continue end
      editor.uiIconImage(editor.icons.forest_brushelement, imgui.ImVec2(math.ceil(imgui.GetFontSize()), math.ceil(imgui.GetFontSize())))
      imgui.SameLine()
      if not isForestBrushSelected(layerType, layerID, item.internalName, enum_forestBrushItemZone.edge) then goto continue end
      editor.uiIconImage(editor.icons.forest_brushelement, imgui.ImVec2(math.ceil(imgui.GetFontSize()), math.ceil(imgui.GetFontSize())))
      imgui.SameLine()
      local textPos = imgui.GetCursorPos()
      if imgui.Button("##EdgeBrush"..item.id, imgui.ImVec2(imgui.GetContentRegionAvailWidth(), math.ceil(imgui.GetFontSize()))) then
        selectForestTempBrush(layerType, layerID, item.internalName, enum_forestBrushItemZone.edge)
      imgui.PushStyleColor2(imgui.Col_Button, (isNoneBrushSelected) and var.buttonColor_active or var.buttonColor_inactive)
      editor.uiIconImage(editor.icons.forest_brushelement, imgui.ImVec2(math.ceil(imgui.GetFontSize()), math.ceil(imgui.GetFontSize())))
      imgui.SameLine()
      imgui.PushStyleColor2(imgui.Col_Button, (isNoneBrushSelected) and var.buttonColor_active or var.buttonColor_inactive)
      editor.uiIconImage(editor.icons.forest_brushelement, imgui.ImVec2(math.ceil(imgui.GetFontSize()), math.ceil(imgui.GetFontSize())))
      imgui.SameLine()
      local textPos = imgui.GetCursorPos()
      if imgui.Button("##NoneEdge", imgui.ImVec2(imgui.GetContentRegionAvailWidth(), math.ceil(imgui.GetFontSize()))) then
        clearForestBrushTempSelection()
        imgui.PushStyleColor2(imgui.Col_Button, (isBrushSelected) and var.buttonColor_active or var.buttonColor_inactive)
        editor.uiIconImage(editor.icons.forest_brushelement, imgui.ImVec2(math.ceil(imgui.GetFontSize()), math.ceil(imgui.GetFontSize())))
        imgui.SameLine()
        imgui.PushStyleColor2(imgui.Col_Button, (isBrushSelected) and var.buttonColor_active or var.buttonColor_inactive)
        editor.uiIconImage(editor.icons.forest_brushelement, imgui.ImVec2(math.ceil(imgui.GetFontSize()), math.ceil(imgui.GetFontSize())))
        imgui.SameLine()
        local textPos = imgui.GetCursorPos()
        if imgui.Button("##Edge"..item.id, imgui.ImVec2(imgui.GetContentRegionAvailWidth(), math.ceil(imgui.GetFontSize()))) then
          if isBrushSelected then
  local cursorPos = imgui.GetCursorPos()
  local tabIconWidth = imgui.GetFontSize() + 6
  local tabIconSize = imgui.ImVec2(tabIconWidth, tabIconWidth)
  local framePadding =  imgui.ImVec2(6, 6) --imgui.GetStyle().FramePadding
  imgui.PushStyleVar2(imgui.StyleVar_FramePadding, framePadding)--imgui.ImVec2(imgui.GetFontSize(), imgui.GetFontSize()))
  if imgui.BeginTabBar("BiomeToolTabBar") then
  local framePadding =  imgui.ImVec2(6, 6) --imgui.GetStyle().FramePadding
  imgui.PushStyleVar2(imgui.StyleVar_FramePadding, framePadding)--imgui.ImVec2(imgui.GetFontSize(), imgui.GetFontSize()))
  if imgui.BeginTabBar("BiomeToolTabBar") then
@/lua/ge/extensions/editor/dynamicDecals/news.lua
    local style = im.GetStyle()
    if im.BeginChild1("DynamicDecals_NewsWindow_Child", im.ImVec2(availableSpace.x, availableSpace.y - (math.ceil(im.GetFontSize()) + 3 * style.ItemSpacing.y)), true) then
    im.Dummy(spacing)
@/lua/ge/extensions/editor/roadTemplateEditor.lua
          im.BeginTooltip()
          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))
  if editor.beginWindow(toolWindowName, "Road Templates") then
    im.BeginChild1("templates", im.ImVec2(0, im.GetFontSize() * 7.2), true)
    im.Text("Road Templates")

    im.BeginChild1("decalroads", im.ImVec2(0, im.GetFontSize() * 10), true)
    im.Text("Template Decal Roads")

    im.BeginChild1("decorations", im.ImVec2(0, im.GetFontSize() * 10), true)
    im.Text("Template Decorations")

    im.BeginChild1("decals", im.ImVec2(0, im.GetFontSize() * 10), true)
    im.Text("Template Random Decals")
@/lua/ge/extensions/editor/dynamicDecals/layerTypes/fill.lua
  local style = im.GetStyle()
  local colorButtonHeight = math.ceil(im.GetFontSize()) + 2 * style.FramePadding.y
  if widgets.draw(layer.colorPaletteMapId, api.propertiesMap["fill_colorPaletteMapId"], widgetId, nil, {widthMod = -(style.ItemSpacing.x + colorButtonHeight)}) then
  local style = im.GetStyle()
  local colorButtonHeight = math.ceil(im.GetFontSize()) + 2 * style.FramePadding.y
  local colorPaletteMapId = api.getFillLayerColorPaletteMapId()
@/lua/ge/extensions/editor/dynamicDecals/layerTypes/decal.lua
  local style = im.GetStyle()
  local colorButtonHeight = math.ceil(im.GetFontSize()) + 2 * style.FramePadding.y
  if widgets.draw(layer.colorPaletteMapId, api.propertiesMap["colorPaletteMapId"], widgetId, nil, {widthMod = -(style.ItemSpacing.x + colorButtonHeight)}) then
    local style = im.GetStyle()
    local colorButtonHeight = math.ceil(im.GetFontSize()) + 2 * style.FramePadding.y
    local colorPaletteMapId = api.getColorPaletteMapId()