nephele
/
glua-mod-ui
Archived
0
0
Fork 0
This repository has been archived on 2019-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
glua-mod-ui/lua/autorun/test.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)