15 lines
382 B
Lua
15 lines
382 B
Lua
|
|
local currentPath = (...):match('(.-)[^%./]+$')
|
||
|
|
local parentPath = currentPath:match('(.-)[^%./]+%.$')
|
||
|
|
|
||
|
|
--- @class IUILib
|
||
|
|
local iui = require(parentPath .. "iui")
|
||
|
|
|
||
|
|
--- @param color? IUIColor
|
||
|
|
function iui.panelBackground(color)
|
||
|
|
color = color or iui.colors.sysGray50
|
||
|
|
local x, y, w, h = iui.layout.getPanelBounds()
|
||
|
|
|
||
|
|
color:set()
|
||
|
|
iui.draw.panelBackground(x, y, w, h)
|
||
|
|
end
|