GetWindowDrawList
Definition
-- @/lua/common/extensions/ui/imgui_gen_luaintf.lua:98
function M.GetWindowDrawList() return imgui.GetWindowDrawList() end
Callers
@/lua/ge/extensions/editor/biomeTool.lua
local p2 = imgui.ImVec2(imgui.GetCursorPos().x + 150 + 32, imgui.GetCursorPos().y + 30 + 32)
imgui.ImDrawList_AddRectFilled(imgui.GetWindowDrawList(), p1, p2, imgui.GetColorU322(imgui.ImVec4(1, 0, 0, 1)))
---imgui.BeginDisabled()
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/vePartTextView.lua
im.ImDrawList_AddRect(
im.GetWindowDrawList(),
rMin,
im.ImDrawList_AddRectFilled(
im.GetWindowDrawList(),
rMin,
@/lua/ge/extensions/editor/util/editorElementHelper.lua
local separatorDummySize = im.ImVec2(0,5)
local function decoSeparatorDraw(e, ctd) im.Dummy(separatorDummySize) im.ImDrawList_AddLine(im.GetWindowDrawList(), im.GetCursorScreenPos(), im.ImVec2(im.GetCursorScreenPos().x+im.GetContentRegionAvailWidth(), im.GetCursorScreenPos().y), separatorColor, 1) im.Dummy(separatorDummySize) end
local function decoDummyDraw(e, ctd) im.Dummy(im.ImVec2(0,e.height)) end
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/veJBeamModifierLeakVis.lua
im.ImDrawList_AddRect(
im.GetWindowDrawList(),
startPos,
@/lua/ge/extensions/flowgraph/builder.lua
im.ImDrawList_AddImageRounded(im.GetWindowDrawList(), self.headerTexture.texId, a, b, im.ImVec2(0, 0), uv, im.GetColorU322(self.HeaderColor), ui_flowgraph_editor.GetStyle().NodeRounding, 3)
im.ImDrawList_AddLine(im.GetWindowDrawList(), a, b, im.GetColorU322(im.ImVec4(0, 0, 0, 0.38 * (alpha / 2)), 1)) -- (alpha / 3)
end
if self.drawDebug then
if self.NodeRect then im.ImDrawList_AddRect(im.GetWindowDrawList(), self.NodeRect.top_left(), self.NodeRect.bottom_right(), im.GetColorU322(im.ImVec4(1, 0, 0, 1))) end
if self.HeaderRect then im.ImDrawList_AddRect(im.GetWindowDrawList(), self.HeaderRect.top_left(), self.HeaderRect.bottom_right(), im.GetColorU322(im.ImVec4(0, 1, 0, 1))) end
if self.NodeRect then im.ImDrawList_AddRect(im.GetWindowDrawList(), self.NodeRect.top_left(), self.NodeRect.bottom_right(), im.GetColorU322(im.ImVec4(1, 0, 0, 1))) end
if self.HeaderRect then im.ImDrawList_AddRect(im.GetWindowDrawList(), self.HeaderRect.top_left(), self.HeaderRect.bottom_right(), im.GetColorU322(im.ImVec4(0, 1, 0, 1))) end
if self.ContentRect then im.ImDrawList_AddRect(im.GetWindowDrawList(), self.ContentRect.top_left(), self.ContentRect.bottom_right(), im.GetColorU322(im.ImVec4(0, 0, 1, 1))) end
if self.HeaderRect then im.ImDrawList_AddRect(im.GetWindowDrawList(), self.HeaderRect.top_left(), self.HeaderRect.bottom_right(), im.GetColorU322(im.ImVec4(0, 1, 0, 1))) end
if self.ContentRect then im.ImDrawList_AddRect(im.GetWindowDrawList(), self.ContentRect.top_left(), self.ContentRect.bottom_right(), im.GetColorU322(im.ImVec4(0, 0, 1, 1))) end
end
if self.leftPinSize then
-- im.ImDrawList_AddRect(im.GetWindowDrawList(), im.ImVec2(self.ContentRect.x + self.leftPinSize, self.ContentRect.y), im.ImVec2(self.ContentRect.x + self.leftPinSize, self.ContentRect.y + self.ContentRect.h), im.GetColorU322(im.ImVec4(1, 1, 1, 0.2)))
end
if self.rightPinSize then
-- im.ImDrawList_AddRect(im.GetWindowDrawList(), im.ImVec2(self.ContentRect.x + self.ContentRect.w - self.rightPinSize, self.ContentRect.y), im.ImVec2(self.ContentRect.x + self.ContentRect.w - self.rightPinSize, self.ContentRect.y + self.ContentRect.h), im.GetColorU322(im.ImVec4(1,1,1, 0.2)))
end
if self.drawDebug then
im.ImDrawList_AddRect(im.GetWindowDrawList(), itemRect.top_left(), itemRect.bottom_right(), im.GetColorU322(im.ImVec4(1, 0.25, 0, 1)))
end
if self.drawDebug then
im.ImDrawList_AddRect(im.GetWindowDrawList(), itemRect.top_left(), itemRect.bottom_right(), im.GetColorU322(im.ImVec4(1, 1, 0.25, 1)))
end
local itemRect = GetItemRect()
im.ImDrawList_AddRect(im.GetWindowDrawList(), itemRect.top_left(), itemRect.bottom_right(), im.GetColorU322(im.ImVec4(1, 0, 1, 1)))
end
--if self.drawDebug then
-- im.ImDrawList_AddRect(im.GetWindowDrawList(), tempRect.top_left(), tempRect.bottom_right(), im.GetColorU322(im.ImVec4(1, 1, 1, 1)))
--end
--if self.drawDebug then
-- im.ImDrawList_AddRect(im.GetWindowDrawList(), tempRect.top_left(), tempRect.bottom_right(), im.GetColorU322(im.ImVec4(1, 1, 1, 1)))
--end
local tempRect = GetItemRect()
im.ImDrawList_AddRect(im.GetWindowDrawList(), tempRect.top_left(), tempRect.bottom_right(), im.GetColorU322(im.ImVec4(1, 0, 0, 1)))
end
local col = im.GetColorU322(im.ImVec4(1, 0, 0, 0.4))
--im.ImDrawList_AddRectFilled(im.GetWindowDrawList(), rMin, rMax, col)
end
local col = im.GetColorU322(im.ImVec4(0.6, 0.9, 0, 0.4))
im.ImDrawList_AddRectFilled(im.GetWindowDrawList(), rMin, rMax, col)
end
@/lua/ge/extensions/editor/flowgraph/properties.lua
local uv = im.ImVec2(0.5, 0.1)
im.ImDrawList_AddImageRounded(im.GetWindowDrawList(), self.headerTexture.texId, a, b, im.ImVec2(0, 0), uv, im.GetColorU322(item.color), 0, 0)
@/lua/ge/extensions/editor/sensorConfigurationEditor.lua
local sliderWidth, sliderHeight, padding = 350, 40, 10
local drawList = im.GetWindowDrawList()
local cursorPos = im.GetCursorScreenPos()
@/lua/ge/extensions/gameplay/missions/missionTypes/editorHelper.lua
local separatorDummySize = im.ImVec2(0,5)
local function decoSeparatorDraw(e, mtd) im.Dummy(separatorDummySize) im.ImDrawList_AddLine(im.GetWindowDrawList(), im.GetCursorScreenPos(), im.ImVec2(im.GetCursorScreenPos().x+im.GetContentRegionAvailWidth(), im.GetCursorScreenPos().y), separatorColor, 1) im.Dummy(separatorDummySize) end
local function decoDummyDraw(e, mtd) im.Dummy(im.ImVec2(0,e.height)) end
@/lua/ge/extensions/flowgraph/nodes/debug/comment.lua
local rMax = im.ImVec2(min.x + itemSize.x + 4, min.y + itemSize.y + 1)
im.ImDrawList_AddRectFilled(im.GetWindowDrawList(), rMin, rMax, col1, 4)
im.ImDrawList_AddRect(im.GetWindowDrawList(), rMin, rMax, col2, 4)
im.ImDrawList_AddRectFilled(im.GetWindowDrawList(), rMin, rMax, col1, 4)
im.ImDrawList_AddRect(im.GetWindowDrawList(), rMin, rMax, col2, 4)
im.SetCursorScreenPos(min)
@/lua/ge/extensions/editor/flowgraph/search.lua
if self.buttonListIndex == self.selectedButtonListIndex then
im.ImDrawList_AddRect(im.GetWindowDrawList(), im.ImVec2(cursor.x + im.GetWindowPos().x - 2,
cursor.y + im.GetWindowPos().y + (im.GetStyle().ItemSpacing.y/2) - 2 - im.GetScrollY()),
-- display blue rectangle when node is hovered
im.ImDrawList_AddRect(im.GetWindowDrawList(), im.ImVec2(cursor.x + im.GetWindowPos().x - 2,
cursor.y + im.GetWindowPos().y + (im.GetStyle().ItemSpacing.y/2) - 2 - im.GetScrollY()),
@/lua/ge/extensions/editor/dynamicDecals/brushes.lua
im.ImDrawList_AddRectFilledMultiColor(
im.GetWindowDrawList(),
im.ImVec2(windowPos.x + cursorPos.x - scrollPosX, windowPos.y + cursorPos.y - scrollPosY),
@/lua/ge/extensions/flowgraph/nodes/macro/io.lua
local itemSize = {x = 100, y = 100}
--[[im.ImDrawList_AddRect(im.GetWindowDrawList(), im.ImVec2(cursor.x + im.GetWindowPos().x - 2,
cursor.y + im.GetWindowPos().y + (im.GetStyle().ItemSpacing.y/2) - 2 - im.GetScrollY()),
@/lua/ge/extensions/flowgraph/utils.lua
im.ImDrawList_AddRectFilled(im.GetWindowDrawList(), rectMin, rectMax, im.GetColorU322(color), size.y * 0.15)
im.TextUnformatted(label)
@/lua/ge/extensions/editor/util/plotHelperUtil.lua
im.BeginChild1('curve_'..self.id, self.size)
self.dl = im.GetWindowDrawList()
self.screenPos = im.GetCursorScreenPos()
@/lua/ge/extensions/util/maptiles.lua
do
local drawList = im.GetWindowDrawList()
local cursorPos = im.GetCursorScreenPos()
@/lua/ge/extensions/flowgraph/basenode.lua
bgClr = im.ImVec4(bgClr.x*0.4, bgClr.y*0.4, bgClr.z*0.4, 1)
im.ImDrawList_AddRectFilled(im.GetWindowDrawList(), self.overDrawSize.top_left(), self.overDrawSize.bottom_right(), im.GetColorU322(bgClr),8)
editor.uiIconImage(editor.icons[icon], size, fgClr)
@/lua/ge/extensions/editor/dynamicDecals/inspector/utils.lua
im.ImDrawList_AddRectFilledMultiColor(
im.GetWindowDrawList(),
im.ImVec2(windowPos.x + cursorPos.x - scrollPosX, windowPos.y + cursorPos.y - scrollPosY),
@/lua/ge/extensions/editor/dynamicDecals/widgets.lua
im.ImDrawList_AddRect(
im.GetWindowDrawList(),
im.ImVec2(im.GetCursorPosX() + windowPos.x - scrollX - 1, im.GetCursorPosY() + windowPos.y - scrollY - 1),
im.ImDrawList_AddRectFilledMultiColor(
im.GetWindowDrawList(),
im.ImVec2(windowPos.x + cursorPos.x - scrollPosX, windowPos.y + cursorPos.y - scrollPosY),
local p2 = im.ImVec2(wpos.x + endCursorPos.x - scrollX + im.GetContentRegionAvailWidth() + style.ItemSpacing.x / 2, wpos.y + endCursorPos.y - scrollY)
im.ImDrawList_AddRect(im.GetWindowDrawList(), p1, p2, im.GetColorU322(editor.color.beamng.Value), nil, nil, 2)
end
@/lua/ge/extensions/editor/missionPlaybook/missionTreeViewer.lua
local itemRect = GetItemRect()
im.ImDrawList_AddRectFilled(im.GetWindowDrawList(), itemRect.top_left(), itemRect.bottom_right(), im.GetColorU322(clr), 3)
im.SameLine()
local outClr = im.ImVec4(1,1,1,1)
im.ImDrawList_AddRectFilled(im.GetWindowDrawList(), itemRect.top_left(), itemRect.bottom_right(), im.GetColorU322(outClr), 3)
im.SameLine()
local off = im.GetWindowPos()
im.ImDrawList_AddRectFilled(im.GetWindowDrawList(),
im.ImVec2(center.x - txtSize.x/2 + off.x, center.y - txtSize.y/2 + off.y),
)
im.ImDrawList_AddRect(im.GetWindowDrawList(),
im.ImVec2(center.x - txtSize.x/2 + off.x, center.y - txtSize.y/2 + off.y),
@/lua/ge/extensions/editor/sceneTree.lua
local p2 = imgui.ImVec2(imgui.GetWindowPos().x + winSize.x*2, p1.y)
local dl = imgui.GetWindowDrawList()
imgui.ImDrawList_AddLine(dl, p1, p2, imgui.GetColorU322(imgui.ImVec4(1,1,1,1)), 3)
imgui.ImDrawList_AddRect(imgui.GetWindowDrawList(), localMouseDragStartPos, mouseDragEndPos, imgui.GetColorU322(imgui.ImVec4(1, 1, 0, 1)))
end
@/lua/ge/extensions/editor/forestEditor.lua
local windowDrawList = im.GetWindowDrawList()
local windowPos = im.GetWindowPos()
im.ImDrawList_AddRectFilled(
im.GetWindowDrawList(),
im.ImVec2(windowPos.x + cPos.x - style.ItemSpacing.x/2, windowPos.y + cPos.y - math.floor(style.ItemSpacing.y/2) - scrollY),
@/lua/ge/extensions/editor/materialEditor.lua
local y2 = y1 + ts.y + ((smol == 1) and 4 or 1)
im.ImDrawList_AddRectFilled(im.GetWindowDrawList(), im.ImVec2(x1, y1), im.ImVec2(x2, y2), im.GetColorU322(color), 0, nil)
end
local p2 = im.ImVec2(wpos.x + cpos.x + im.GetContentRegionAvailWidth() + 2 * v.style.WindowPadding.x, wpos.y + cpos.y + v.inputWidgetHeight * 1.5)
im.ImDrawList_AddRectFilled(im.GetWindowDrawList(), p1, p2, im.GetColorU321(im.Col_MenuBarBg))
im.PushStyleVar2(im.StyleVar_WindowPadding, im.ImVec2(6, 2))
@/lua/ge/extensions/editor/gen/ui.lua
local color = im.GetColorU321(im.Col_WindowBg)
im.ImDrawList_AddRectFilled(im.GetWindowDrawList(), topLeft, bottomRight, color)
im.Dummy(im.ImVec2(0,0))
local bottomRight = im.ImVec2(topLeft.x + sz.x + 2*padding, topLeft.y + 20)
im.ImDrawList_AddRectFilled(im.GetWindowDrawList(),
im.ImVec2(topLeft.x, topLeft.y), bottomRight,
local bottomRight = im.ImVec2(topLeft.x + sz.x + 2*padding, topLeft.y + 20)
im.ImDrawList_AddRectFilled(im.GetWindowDrawList(),
im.ImVec2(topLeft.x, topLeft.y), bottomRight,
@/lua/common/extensions/ui/imguiUtils.lua
posY = posY or (imgui.GetWindowPos().y + imgui.GetCursorPosY())
imgui.ImDrawList_AddLine(imgui.GetWindowDrawList(), imgui.ImVec2(posX - 4, posY), imgui.ImVec2(posX + 4, posY) , imgui.GetColorU322(imgui.ImVec4(1, 0, 0, 0.75)))
imgui.ImDrawList_AddLine(imgui.GetWindowDrawList(), imgui.ImVec2(posX, posY - 4), imgui.ImVec2(posX, posY + 4) , imgui.GetColorU322(imgui.ImVec4(1, 0, 0, 0.75)))
imgui.ImDrawList_AddLine(imgui.GetWindowDrawList(), imgui.ImVec2(posX - 4, posY), imgui.ImVec2(posX + 4, posY) , imgui.GetColorU322(imgui.ImVec4(1, 0, 0, 0.75)))
imgui.ImDrawList_AddLine(imgui.GetWindowDrawList(), imgui.ImVec2(posX, posY - 4), imgui.ImVec2(posX, posY + 4) , imgui.GetColorU322(imgui.ImVec4(1, 0, 0, 0.75)))
end
@/lua/ge/extensions/editor/gen/exp_meshexplorer.lua
local inexp -- beam group expended
--local dl = im.GetWindowDrawList()
-- im.ImDrawList_AddLine(dl, localToGlobalPos(x1, y1), localToGlobalPos(x1, my), whiteColor, lineThickness)
-- im.ImDrawList_AddCircleFilled(im.GetWindowDrawList(), statusCirclePos, size, color, 12)
-- ImVec2 imgui_GetMousePos()
@/lua/ge/extensions/editor/dynamicDecals/docs.lua
im.ImDrawList_AddRectFilled(
im.GetWindowDrawList(),
im.ImVec2(wpos.x + cPos.x - itemInnerSpacing - itemSpacing.x, wpos.y + cPos.y - itemSpacing.y/2 - scrollY),
@/lua/ge/extensions/editor/shortcutLegend.lua
im.ImDrawList_AddRectFilled(im.GetWindowDrawList(), topLeft, bottomRight, im.GetColorU321(im.Col_FrameBg), 2, nil, 2)
@/lua/ge/extensions/editor/gen/lib/ui.lua
local color = im.GetColorU321(im.Col_WindowBg)
im.ImDrawList_AddRectFilled(im.GetWindowDrawList(), topLeft, bottomRight, color)
im.Dummy(im.ImVec2(0,0))
local bottomRight = im.ImVec2(cur.x + sz.x + padding+1, cur.y + 25 + padding)
im.ImDrawList_AddRectFilled(im.GetWindowDrawList(),
im.ImVec2(cur.x-padding-1, cur.y+padding+4), bottomRight,
local bottomRight = im.ImVec2(topLeft.x + sz.x + 2*padding, topLeft.y + 20)
im.ImDrawList_AddRectFilled(im.GetWindowDrawList(),
im.ImVec2(topLeft.x, topLeft.y), bottomRight,
@/lua/ge/extensions/editor/resourceChecker.lua
end
im.ImDrawList_AddRectFilled(im.GetWindowDrawList(), leftT, rightB, im.GetColorU322(color), 0, nil)
end
local dl = im.GetWindowDrawList()
local hovered = nil
local p0 = im.GetCursorScreenPos()
local dl = im.GetWindowDrawList()
local x = p0.x
local x, y = p0.x, p0.y
local dl = im.GetWindowDrawList()
local dl = im.GetWindowDrawList()
im.ImDrawList_AddRectFilled(dl, spPos, im.ImVec2(spPos.x + splitterWidth, spPos.y + splitterThickness), im.GetColorU322(im.ImVec4(0.3,0.3,0.3,1.0)))
@/lua/ge/extensions/flowgraph/nodes/scene/raceLineParking.lua
local rot = quat(self.pinIn.rotation.value)
dl = im.GetWindowDrawList()
-- draw U-shape
@/lua/ge/extensions/util/groundModelDebug.lua
local col = im.GetColorU322(im.ImVec4(cf[0], cf[1], cf[2], 1))
im.ImDrawList_AddRectFilled(im.GetWindowDrawList(), p1, p2, col)
im.NextColumn()
-- local col = im.GetColorU322( im.ImVec4(0.65, 0.2, 0.2, 1))
-- im.ImDrawList_AddRectFilled(im.GetWindowDrawList(), p1, p2, col)
-- -- then the text on top and the other columns
@/lua/ge/extensions/editor/assetBrowser.lua
im.ImDrawList_AddLine(im.GetWindowDrawList(), colorCodePosA, colorCodePosB, getAssetTypeColor(file), var.assetColorCodeHeight)
end
@/lua/ge/extensions/trackbuilder/trackBuilder.lua
local col = im.GetColorU322(im.ImVec4(0.5,0.5,0.5,1))
im.ImDrawList_AddRectFilled(im.GetWindowDrawList(), p, im.ImVec2(p.x+1,p.y+40), col)
im.SetCursorPosX(im.GetCursorPosX() + 1)
p = im.ImVec2(pos.x + im.GetCursorPosX() - 4 ,pos.y + im.GetCursorPosY()-4)
im.ImDrawList_AddRectFilled(im.GetWindowDrawList(), p, im.ImVec2(p.x+1,p.y+40), col)
im.SetCursorPosX(im.GetCursorPosX() + 1)
@/lua/ge/extensions/editor/dynamicDecals/layerTypes/decal.lua
local p2 = im.ImVec2(wpos.x + highlightSdfProperties.endCursorPos.x - scrollX + im.GetContentRegionAvailWidth(), wpos.y + highlightSdfProperties.endCursorPos.y - scrollY)
im.ImDrawList_AddRect(im.GetWindowDrawList(), p1, p2, im.GetColorU322(editor.color.beamng.Value), nil, nil, 3)
end
@/lua/ge/extensions/editor/flowgraph/welcome.lua
--im.EndChild()
--im.ImDrawList_AddRect(im.GetWindowDrawList(), im.GetItemRectMin(), im.GetItemRectMax(), im.GetColorU322(im.ImVec4(1, 0, 0, 1)))
end
im.Image(self.headerImage.texId, self.headerImageSize, im.ImVec2(0, 0), im.ImVec2(1, 1), col)
--im.ImDrawList_AddRect(im.GetWindowDrawList(), im.GetItemRectMin(), im.GetItemRectMax(), im.GetColorU322(im.ImVec4(1, 0, 0, 1)))
end
--im.ImDrawList_AddRect(im.GetWindowDrawList(), im.GetItemRectMin(), im.GetItemRectMax(), im.GetColorU322(im.ImVec4(1, 0, 1, 1)))
im.PopStyleVar()
--im.ImDrawList_AddRect(im.GetWindowDrawList(), im.GetItemRectMin(), im.GetItemRectMax(), im.GetColorU322(im.ImVec4(0.5, 0, 1, 1)))
@/lua/ge/extensions/editor/vehicleEditor/liveEditor/veAdjustableTechCarTuner.lua
local function addMeasurementLineAndSlider(view, isHorizontal, x1, y1, x2, y2, spacing, var)
local dl = im.GetWindowDrawList()
im.Image(leftView.img.texId, leftView.imgSize, im.ImVec2(0, 0), im.ImVec2(1, 1))
--im.ImDrawList_AddCircle(im.GetWindowDrawList(), localToGlobalPos(imgPos.x, imgPos.y), 2, whiteColor, 8, 2)
@/lua/common/extensions/ui/imgui_custom_luaintf.lua
local itemSize = M.GetItemRectSize()
M.ImDrawList_AddRectFilled(M.GetWindowDrawList(), M.ImVec2(cursor.x + M.GetWindowPos().x - 2,
cursor.y + M.GetWindowPos().y + (spacing.y/2) - 2 - M.GetScrollY()),
local itemSize = M.GetItemRectSize()
M.ImDrawList_AddRectFilled(M.GetWindowDrawList(), M.ImVec2(cursor.x + M.GetWindowPos().x - 2,
cursor.y + M.GetWindowPos().y + (spacing.y/2) - 2 - M.GetScrollY()),
@/lua/ge/extensions/editor/api/valueInspector.lua
local function drawInputFloat3ColoredIndicators(windowPos, cursorPos, withStepButtons)
local drawlist = imgui.GetWindowDrawList()
local coloredBGHeight = math.ceil(imgui.GetFontSize())
@/lua/ge/extensions/editor/preferences.lua
imgui.ImDrawList_AddRectFilled(
imgui.GetWindowDrawList(),
imgui.ImVec2(windowPos.x + cPos.x - style.ItemSpacing.x/2, windowPos.y + cPos.y - math.floor(style.ItemSpacing.y/2) - scrollY),
@/lua/ge/extensions/flowgraph/link.lua
local off = im.GetWindowPos()
im.ImDrawList_AddRectFilled(im.GetWindowDrawList(),
im.ImVec2(center.x - txtSize.x/2 + off.x, center.y - txtSize.y/2 + off.y),
)
im.ImDrawList_AddRect(im.GetWindowDrawList(),
im.ImVec2(center.x - txtSize.x/2 + off.x, center.y - txtSize.y/2 + off.y),
@/lua/common/extensions/ui/flowgraph/editor.lua
if im.IsItemHovered() then
im.ImDrawList_AddRect(im.GetWindowDrawList(), cPos, im.ImVec2(cPos.x + size.x, cPos.y + size.y), im.GetColorU322(im.ImVec4(1,0.6,0,0.5)), nil, nil, 1)
end
@/lua/ge/extensions/editor/flowgraph/variables.lua
if math.abs(mousePos.y - y) < dragReleaseVerticalDistance and mousePos.x > mouseXMin and mousePos.x < mouseXMax then
im.ImDrawList_AddLine(im.GetWindowDrawList(), im.ImVec2(im.GetCursorScreenPos().x+10, y-1), im.ImVec2(im.GetCursorScreenPos().x+im.GetContentRegionAvailWidth()-20, y-1), lineColor, 3)
if im.IsMouseReleased(0) then
@/lua/ge/extensions/editor/terrainEditor.lua
if editor.beginWindow(terrainBrushSoftnessCurveDialogName, "Brush Softness Curve##Dialog") then
local drawList = im.GetWindowDrawList()
local winPos = im.GetWindowPos()
@/lua/ge/extensions/editor/flowgraph/examples.lua
if self.buttonListIndex == self.selectedButtonListIndex then
im.ImDrawList_AddRect(im.GetWindowDrawList(), im.ImVec2(cursor.x + im.GetWindowPos().x - 2,
cursor.y + im.GetWindowPos().y + (im.GetStyle().ItemSpacing.y/2) - 2 - im.GetScrollY()),
-- display blue rectangle when node is hovered
im.ImDrawList_AddRect(im.GetWindowDrawList(), im.ImVec2(cursor.x + im.GetWindowPos().x - 2,
cursor.y + im.GetWindowPos().y + (im.GetStyle().ItemSpacing.y/2) - 2 - im.GetScrollY()),
@/lua/ge/extensions/editor/inspector.lua
imgui.ImDrawList_AddRect(imgui.GetWindowDrawList(), p_Min, p_Max, handleColor, nil, nil, 2)
imgui.ImDrawList_AddRectFilled(imgui.GetWindowDrawList(), p1_HandleSqTopLeft, p2_HandleSqTopLeft, handleColor)
imgui.ImDrawList_AddRectFilled(imgui.GetWindowDrawList(), p1_HandleSqTopMiddle, p2_HandleSqTopMiddle, handleColor)
imgui.ImDrawList_AddRectFilled(imgui.GetWindowDrawList(), p1_HandleSqTopLeft, p2_HandleSqTopLeft, handleColor)
imgui.ImDrawList_AddRectFilled(imgui.GetWindowDrawList(), p1_HandleSqTopMiddle, p2_HandleSqTopMiddle, handleColor)
imgui.ImDrawList_AddRectFilled(imgui.GetWindowDrawList(), p1_HandleSqTopRight, p2_HandleSqTopRight, handleColor)
imgui.ImDrawList_AddRectFilled(imgui.GetWindowDrawList(), p1_HandleSqTopMiddle, p2_HandleSqTopMiddle, handleColor)
imgui.ImDrawList_AddRectFilled(imgui.GetWindowDrawList(), p1_HandleSqTopRight, p2_HandleSqTopRight, handleColor)
imgui.ImDrawList_AddRectFilled(imgui.GetWindowDrawList(), p1_HandleSqMiddleLeft, p2_HandleSqMiddleLeft, handleColor)
imgui.ImDrawList_AddRectFilled(imgui.GetWindowDrawList(), p1_HandleSqCenter, p2_HandleSqCenter, handleColor)
imgui.ImDrawList_AddRectFilled(imgui.GetWindowDrawList(), p1_HandleSqMiddleLeft, p2_HandleSqMiddleLeft, handleColor)
imgui.ImDrawList_AddRectFilled(imgui.GetWindowDrawList(), p1_HandleSqCenter, p2_HandleSqCenter, handleColor)
imgui.ImDrawList_AddRectFilled(imgui.GetWindowDrawList(), p1_HandleSqMiddleRight, p2_HandleSqMiddleRight, handleColor)
imgui.ImDrawList_AddRectFilled(imgui.GetWindowDrawList(), p1_HandleSqCenter, p2_HandleSqCenter, handleColor)
imgui.ImDrawList_AddRectFilled(imgui.GetWindowDrawList(), p1_HandleSqMiddleRight, p2_HandleSqMiddleRight, handleColor)
imgui.ImDrawList_AddRectFilled(imgui.GetWindowDrawList(), p1_HandleSqBottomLeft, p2_HandleRectBottomLeft, handleColor)
imgui.ImDrawList_AddRectFilled(imgui.GetWindowDrawList(), p1_HandleSqBottomMiddle, p2_HandleSqBottomMiddle, handleColor)
imgui.ImDrawList_AddRectFilled(imgui.GetWindowDrawList(), p1_HandleSqBottomLeft, p2_HandleRectBottomLeft, handleColor)
imgui.ImDrawList_AddRectFilled(imgui.GetWindowDrawList(), p1_HandleSqBottomMiddle, p2_HandleSqBottomMiddle, handleColor)
imgui.ImDrawList_AddRectFilled(imgui.GetWindowDrawList(), p1_HandleSqBottomRight, p2_HandleSqBottomRight, handleColor)
imgui.ImDrawList_AddRectFilled(imgui.GetWindowDrawList(), p1_HandleSqBottomMiddle, p2_HandleSqBottomMiddle, handleColor)
imgui.ImDrawList_AddRectFilled(imgui.GetWindowDrawList(), p1_HandleSqBottomRight, p2_HandleSqBottomRight, handleColor)
local imageStartAbsCursorPos = imgui.GetCursorScreenPos()
local drawlist = imgui.GetWindowDrawList()
local coloredBG_StartPos_X = windowPos.x + imageStartCursorPos.x + imgui.GetStyle().ChildBorderSize
imgui.ImDrawList_AddRectFilled(imgui.GetWindowDrawList(), p1_HandleColorLabel, p2_HandleColorLabel, imgui.GetColorU322(groundCoverUVHandleColors[groundCoverUVHandleColorIndex].color))
imgui.ImDrawList_AddRect(imgui.GetWindowDrawList(), imgui.ImVec2(p1_HandleColorLabel.x - 1, p1_HandleColorLabel.y - 1), imgui.ImVec2(p2_HandleColorLabel.x + 1, p2_HandleColorLabel.y + 1), imgui.GetColorU322(imgui.ImVec4(0, 0, 0, 1)), nil, nil, 1)
imgui.ImDrawList_AddRectFilled(imgui.GetWindowDrawList(), p1_HandleColorLabel, p2_HandleColorLabel, imgui.GetColorU322(groundCoverUVHandleColors[groundCoverUVHandleColorIndex].color))
imgui.ImDrawList_AddRect(imgui.GetWindowDrawList(), imgui.ImVec2(p1_HandleColorLabel.x - 1, p1_HandleColorLabel.y - 1), imgui.ImVec2(p2_HandleColorLabel.x + 1, p2_HandleColorLabel.y + 1), imgui.GetColorU322(imgui.ImVec4(0, 0, 0, 1)), nil, nil, 1)
local comboCursorPos = imgui.GetCursorPos()
local drawlist = imgui.GetWindowDrawList()
local coloredBG_StartPos_X = windowPos.x + comboCursorPos.x
imgui.ImDrawList_AddRectFilled(imgui.GetWindowDrawList(), p1_bgColorLabel, p2_bgColorLabel, imgui.GetColorU322(groundCoverUVBgColors[groundCoverUVBgColorIndex].color))
imgui.ImDrawList_AddRect(imgui.GetWindowDrawList(), imgui.ImVec2(p1_bgColorLabel.x - 1, p1_bgColorLabel.y - 1), imgui.ImVec2(p2_bgColorLabel.x + 1, p2_bgColorLabel.y + 1), imgui.GetColorU322(imgui.ImVec4(0, 0, 0, 1)), nil, nil, 1)
imgui.ImDrawList_AddRectFilled(imgui.GetWindowDrawList(), p1_bgColorLabel, p2_bgColorLabel, imgui.GetColorU322(groundCoverUVBgColors[groundCoverUVBgColorIndex].color))
imgui.ImDrawList_AddRect(imgui.GetWindowDrawList(), imgui.ImVec2(p1_bgColorLabel.x - 1, p1_bgColorLabel.y - 1), imgui.ImVec2(p2_bgColorLabel.x + 1, p2_bgColorLabel.y + 1), imgui.GetColorU322(imgui.ImVec4(0, 0, 0, 1)), nil, nil, 1)
local cursorPos = imgui.GetCursorPos()
local drawlist = imgui.GetWindowDrawList()
local coloredBG_StartPos_X = windowPos.x + cursorPos.x
local function drawGroundCoverUVIndicators(windowPos, cursorPos, widgetWidth)
local drawlist = imgui.GetWindowDrawList()
local coloredBGHeight = math.ceil(imgui.GetFontSize())
@/lua/ge/extensions/editor/flowgraph/nodelibrary.lua
if self.buttonListIndex == self.selectedButtonListIndex then
im.ImDrawList_AddRect(im.GetWindowDrawList(), im.ImVec2(cursor.x + im.GetWindowPos().x - 2,
cursor.y + im.GetWindowPos().y + (im.GetStyle().ItemSpacing.y/2) - 2 - im.GetScrollY()),
if im.IsItemHovered() then
im.ImDrawList_AddRect(im.GetWindowDrawList(), im.ImVec2(cursor.x + im.GetWindowPos().x - 2,
cursor.y + im.GetWindowPos().y + (im.GetStyle().ItemSpacing.y/2) - 2 - im.GetScrollY()),
if im.IsItemHovered() then
im.ImDrawList_AddRect(im.GetWindowDrawList(), im.ImVec2(cursor.x + im.GetWindowPos().x - 2,
cursor.y + im.GetWindowPos().y + (im.GetStyle().ItemSpacing.y/2) - 2 - im.GetScrollY()),
if self.buttonListIndex == self.selectedButtonListIndex then
im.ImDrawList_AddRect(im.GetWindowDrawList(), im.ImVec2(cursor.x + im.GetWindowPos().x - 2,
cursor.y + im.GetWindowPos().y + (im.GetStyle().ItemSpacing.y/2) - 2 - im.GetScrollY()),
-- display blue rectangle when node is hovered
im.ImDrawList_AddRect(im.GetWindowDrawList(), im.ImVec2(cursor.x + im.GetWindowPos().x - 2,
cursor.y + im.GetWindowPos().y + (im.GetStyle().ItemSpacing.y/2) - 2 - im.GetScrollY()),
@/lua/ge/extensions/editor/scriptAIManager.lua
local dl = im.GetWindowDrawList()
--im.ImGuiStyle_ItemSpacing(tmpVecPos)
@/lua/ge/extensions/editor/api/gui.lua
local bottomRight = imgui.ImVec2(topLeft.x + textSize.x, topLeft.y + textSize.y)
imgui.ImDrawList_AddRectFilled(imgui.GetWindowDrawList(), topLeft, bottomRight, textBG, 0, nil)
end
imgui.ImDrawList_AddLine(
imgui.GetWindowDrawList(),
(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)),
-- End arguments handling
local mDrawList = imgui.GetWindowDrawList()
local mStyle = imgui.GetStyle()
@/lua/ge/extensions/editor/dynamicDecals/layerStack.lua
local p2 = im.ImVec2(wpos.x + cpos.x + im.GetContentRegionAvailWidth(), wpos.y + cpos.y + layerDropHeight - tool.getMainScrollY())
im.ImDrawList_AddRect(im.GetWindowDrawList(), p1, p2, im.GetColorU322(editor.getTempImVec4_TableTable(colorTbl or {1,1,1,1})))
end
@/lua/ge/extensions/flowgraph/baseStateNode.lua
--im.ImDrawList_AddRect(im.GetWindowDrawList(), builder.NodeRect.top_left(), builder.NodeRect.bottom_right(), im.GetColorU322(im.ImVec4(1, 1, 0, 1)))
-- setup link strengths for all of these pins.
@/lua/ge/extensions/editor/flowgraph/main.lua
self.dl = im.GetWindowDrawList()
self.pos = im.GetCursorScreenPos()
if im.Begin(name..'##'..gr.id, gr.showTab, windowFlags) then
--dump(im.GetWindowDrawList())
if not focussed and ((not self.mgr.graph) or (gr.id ~= self.mgr.graph.id)) and im.IsWindowFocused() then
-- display blue rectangle when node is hovered
im.ImDrawList_AddRect(im.GetWindowDrawList(), im.ImVec2(cursor.x + im.GetWindowPos().x - 2,
cursor.y + im.GetWindowPos().y + (im.GetStyle().ItemSpacing.y/2) - 2 - im.GetScrollY()),
local clr = im.IsItemHovered() and orangeColor or whiteColor
im.ImDrawList_AddRect(im.GetWindowDrawList(), im.ImVec2(cursor.x + im.GetWindowPos().x - 2,
cursor.y + im.GetWindowPos().y + (im.GetStyle().ItemSpacing.y/2) - 2 - im.GetScrollY()),