iw7-mod/data/cdata/ui_scripts/debug/__init__.lua

65 lines
1.3 KiB
Lua
Raw Normal View History

2024-08-06 16:00:14 -04:00
LUI.UIElement.debugDraw = function ( f84_arg0, f84_arg1 )
if not f84_arg1 then
f84_arg1 = 1
end
f84_arg0:addElement( LUI.UIImage.new( {
topAnchor = true,
bottomAnchor = true,
leftAnchor = true,
rightAnchor = true,
material = RegisterMaterial( "white" ),
red = 0,
blue = 0,
green = 1,
alpha = 0.2
} ) )
f84_arg0:addElement( LUI.UIImage.new( {
topAnchor = true,
bottomAnchor = false,
leftAnchor = true,
rightAnchor = true,
material = RegisterMaterial( "white" ),
red = 1,
blue = 0,
green = 0,
alpha = 1,
bottom = f84_arg1
} ) )
f84_arg0:addElement( LUI.UIImage.new( {
topAnchor = true,
bottomAnchor = true,
leftAnchor = false,
rightAnchor = true,
material = RegisterMaterial( "white" ),
red = 1,
blue = 0,
green = 0,
alpha = 1,
left = -1 * f84_arg1
} ) )
f84_arg0:addElement( LUI.UIImage.new( {
topAnchor = false,
bottomAnchor = true,
leftAnchor = true,
rightAnchor = true,
material = RegisterMaterial( "white" ),
red = 1,
blue = 0,
green = 0,
alpha = 1,
top = -1 * f84_arg1
} ) )
f84_arg0:addElement( LUI.UIImage.new( {
topAnchor = true,
bottomAnchor = true,
leftAnchor = true,
rightAnchor = false,
material = RegisterMaterial( "white" ),
red = 1,
blue = 0,
green = 0,
alpha = 1,
right = f84_arg1
} ) )
end