How to add text right next to the icon??Code:elements.Add(new CuiElement { Name = GuiInfo[player.userID], Components = { new CuiRawImageComponent { Color = "1 1 1 1", Url = Icon, Sprite = "assets/content/textures/generic/fulltransparent.tga" }, //new CuiRectTransformComponent { AnchorMin = "0.025 0.04", AnchorMax = "0.075 0.12" } new CuiRectTransformComponent { AnchorMin = "0.425 0.97", AnchorMax = "0.439 0.99" } } });
RustCUI
Discussion in 'Rust Development' started by Rusty, Apr 28, 2016.
-
I would just create a text feature right next to it,
Code:elements.Add(new CuiLabel { Text = { Text = "Insert Text Here", FontSize = 16, Align = TextAnchor.MiddleCenter, Color = "255 255 0" }, RectTransform = { AnchorMin = $"0.00 0.00", AnchorMax = $"0.00 0.00" } }, GUIBackground); -
Thanks
