ImDrawList_AddRectFilled
Definition
-- @/lua/common/extensions/ui/imgui_gen_luaintf.lua:2031
function M.ImDrawList_AddRectFilled(ImDrawList_ctx, ImVec2_p_min, ImVec2_p_max, ImU32_col, float_rounding, ImDrawFlags_flags)
if float_rounding == nil then float_rounding = 0 end
if ImDrawFlags_flags == nil then ImDrawFlags_flags = 0 end
ImDrawList_ctx:AddRectFilled(ImVec2_p_min, ImVec2_p_max, ImU32_col, float_rounding, ImDrawFlags_flags)
end
Callers
@/lua/ge/extensions/editor/preferences.lua
local scrollY = imgui.GetScrollY()
imgui.ImDrawList_AddRectFilled(
imgui.GetWindowDrawList(),
@/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
local mColor = imgui.ColorConvertFloat4ToU32(not isOdd and mEvenColor or mOddColor)
imgui.ImDrawList_AddRectFilled(mDrawList, imgui.ImVec2(xMin, y - mStyle.ItemSpacing.y), imgui.ImVec2(xMax, y + mHeight), mColor)
@/lua/ge/extensions/flowgraph/utils.lua
im.ImDrawList_AddRectFilled(im.GetWindowDrawList(), rectMin, rectMax, im.GetColorU322(color), size.y * 0.15)
im.TextUnformatted(label)
@/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/inspector.lua
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 p2_BG = imgui.ImVec2(coloredBG_StartPos_X + size.x, coloredBG_StartPos_Y + size.y)
imgui.ImDrawList_AddRectFilled(drawlist, p1_BG, p2_BG, imgui.GetColorU322(groundCoverUVBgColors[groundCoverUVBgColorIndex].color))
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(drawlist, p1_BG, p2_BG, imgui.GetColorU322(val.color))
imgui.ImDrawList_AddRect(drawlist, imgui.ImVec2(p1_BG.x - 1, p1_BG.y - 1), imgui.ImVec2(p2_BG.x + 1, p2_BG.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)
imgui.ImDrawList_AddRectFilled(drawlist, p1_BG, p2_BG, imgui.GetColorU322(val.color))
imgui.ImDrawList_AddRect(drawlist, imgui.ImVec2(p1_BG.x - 1, p1_BG.y - 1), imgui.ImVec2(p2_BG.x + 1, p2_BG.y + 1), imgui.GetColorU322(imgui.ImVec4(0, 0, 0, 1)), nil, nil, 1)
imgui.ImDrawList_AddRectFilled(drawlist, p1_U_BG, p2_U_BG, labelBGColor)
imgui.ImDrawList_AddText1(drawlist, p1_U_Text, labelTextColor, "U", nil)
imgui.ImDrawList_AddRectFilled(drawlist, p1_V_BG, p2_V_BG, labelBGColor)
imgui.ImDrawList_AddText1(drawlist, p1_V_Text, labelTextColor, "V", nil)
imgui.ImDrawList_AddRectFilled(drawlist, p1_W_BG, p2_W_BG, labelBGColor)
imgui.ImDrawList_AddText1(drawlist, p1_W_Text, labelTextColor, "W", nil)
imgui.ImDrawList_AddRectFilled(drawlist, p1_H_BG, p2_H_BG, labelBGColor)
imgui.ImDrawList_AddText1(drawlist, p1_H_Text, labelTextColor, "H", nil)
@/lua/ge/extensions/flowgraph/builder.lua
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/terrainEditor.lua
-- draw background
im.ImDrawList_AddRectFilled(drawList, var.sc_curveWidgetPosA, im.ImVec2(var.sc_curveWidgetPosA.x+var.sc_curveWidgetSize, var.sc_curveWidgetPosA.y+var.sc_curveWidgetSize), var.sc_backgroundCol)
-- draw background frame
@/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)
@/lua/ge/extensions/editor/shortcutLegend.lua
im.ImDrawList_AddRectFilled(im.GetWindowDrawList(), topLeft, bottomRight, im.GetColorU321(im.Col_FrameBg), 2, nil, 2)
@/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/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/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/resourceChecker.lua
end
im.ImDrawList_AddRectFilled(im.GetWindowDrawList(), leftT, rightB, im.GetColorU322(color), 0, nil)
end
local c = _colorFor(path, false)
im.ImDrawList_AddRectFilled(dl, im.ImVec2(r.x, r.y), im.ImVec2(r.x+r.w, r.y+r.h), im.GetColorU322(c))
im.ImDrawList_AddRect(dl, im.ImVec2(r.x, r.y), im.ImVec2(r.x+r.w, r.y+r.h), im.GetColorU322(im.ImVec4(0,0,0,0.35)))
local max = im.ImVec2(x + w, y + barH)
im.ImDrawList_AddRectFilled(dl, min, max, im.GetColorU322(colors[k]))
local oldPos = im.GetCursorScreenPos()
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/editor/api/valueInspector.lua
imgui.ImDrawList_AddRectFilled(drawlist, p1_X_BG, p2_X_BG, color_X_BG)
imgui.ImDrawList_AddText1(drawlist, p1_X_Text, labelTextColor, "X", nil)
imgui.ImDrawList_AddRectFilled(drawlist, p1_Y_BG, p2_Y_BG, color_Y_BG)
imgui.ImDrawList_AddText1(drawlist, p1_Y_Text, labelTextColor, "Y", nil)
imgui.ImDrawList_AddRectFilled(drawlist, p1_Z_BG, p2_Z_BG, color_Z_BG)
imgui.ImDrawList_AddText1(drawlist, p1_Z_Text, labelTextColor, "Z", nil)
@/lua/ge/extensions/editor/vehicleEditor/staticEditor/vePartTextView.lua
local rMax = im.GetItemRectMax()
im.ImDrawList_AddRectFilled(
im.GetWindowDrawList(),
@/lua/ge/extensions/editor/forestEditor.lua
local cPos = im.GetCursorPos()
im.ImDrawList_AddRectFilled(
im.GetWindowDrawList(),
@/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/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/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/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),
@/lua/ge/extensions/editor/dynamicDecals/docs.lua
local scrollY = im.GetScrollY()
im.ImDrawList_AddRectFilled(
im.GetWindowDrawList(),
@/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/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),
@/lua/ge/extensions/editor/sensorConfigurationEditor.lua
im.ImDrawList_AddRectFilled(drawList, sliderStart, sliderEnd, bgColor)
im.ImDrawList_AddRect(drawList, sliderStart, sliderEnd, borderColor, 0, 0, 2)
@/lua/ge/extensions/util/maptiles.lua
-- Draw the tile rectangle
im.ImDrawList_AddRectFilled(drawList, im.ImVec2(x, y), im.ImVec2(x + cellWidth - 1, y + cellHeight - 1), color)
@/lua/ge/extensions/editor/scriptAIManager.lua
if p2.x > p1.x then
im.ImDrawList_AddRectFilled(dl, p1, p2, col)
if p2.x > p1.x then
im.ImDrawList_AddRectFilled(dl, p1, p2, col)
end
if p2.x > p1.x then
im.ImDrawList_AddRectFilled(dl, p1, p2, col)
end