91 lines
1.3 KiB
Lua
91 lines
1.3 KiB
Lua
--disable
|
|
if CLIENT then return end
|
|
AddCSLuaFile("ui.lua" )
|
|
if SERVER then return end
|
|
include("ui.lua")
|
|
if not ui then error("failed to load ui.lua") return end
|
|
local cont = {
|
|
name = "vertical",
|
|
{
|
|
name = "horizontal",
|
|
{
|
|
name = "label",
|
|
text = "Test1"
|
|
},
|
|
{
|
|
name = "label",
|
|
text = "Overlap"
|
|
}
|
|
},
|
|
{
|
|
name = "opaque",
|
|
material = "models/wireframe",
|
|
width = 40,
|
|
height = 40
|
|
},
|
|
{
|
|
name = "layer",
|
|
{
|
|
name = "color",
|
|
r = 200,
|
|
g = 100,
|
|
b = 200,
|
|
width = 40,
|
|
height = 40
|
|
},
|
|
{
|
|
name = "opaque",
|
|
material = "models/wireframe",
|
|
width = 40,
|
|
height = 40
|
|
},
|
|
},
|
|
{
|
|
name = "opaque",
|
|
material = "models/wireframe",
|
|
width = 40,
|
|
height = 40
|
|
},
|
|
{
|
|
name = "spacer",
|
|
width = 0,
|
|
height = 25,
|
|
},
|
|
{
|
|
name = "horizontal",
|
|
{
|
|
name = "opaque",
|
|
material = "models/wireframe",
|
|
width = 40,
|
|
height = 40
|
|
},
|
|
{
|
|
name = "layer",
|
|
{
|
|
name = "opaque",
|
|
material = "models/wireframe",
|
|
width = 40,
|
|
height = 40
|
|
},
|
|
{
|
|
name = "label",
|
|
text = "I am here!"
|
|
}
|
|
},
|
|
{
|
|
name = "layer",
|
|
{
|
|
name = "opaque",
|
|
material = "models/wireframe",
|
|
width = 40,
|
|
height = 40
|
|
},
|
|
{
|
|
name = "label",
|
|
text = "I am here!"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
hook.Add("HUDPaint","unique", function() ui.handle(cont, 400, 200) end)
|