Can anyone provide me with a link for coding CUIs?
Besides common info & best practices I'm looking for setting the LAYER of the UI.
GUIElement.Add(new CuiButtonI know it's addressable because I can doing it in other plugins differently. Perhaps I'm jsut putting that property setting in the wrong place?
{
Button =
{
Command = "adminpanel action radar",
Color = BTNColorRadar
},
Text =
{
Text = _("Radar", player.UserIDString),
FontSize = config.fontSize,
Align = TextAnchor.MiddleCenter,
Color = "1 1 1 1",
Layer = "HUD" <--------- Doesn't Work :(
},
RectTransform =
{
AnchorMin = "0.062 0.21",
AnchorMax = "0.51 0.37"
}
}, GUIPanel);