#region UI
void OnPlayerSleepEnded(BasePlayer player) => CreateButton(player);
private void CreateButton(BasePlayer player)
{
CuiHelper.DestroyUi(player, PanelName);
CuiElementContainer elements = new CuiElementContainer();
var panel = elements.Add(new CuiButton
{
Button = {
Command = "chat.say /info",
Color = "0.9686275 0.9215686 0.8823529 0.03529412"
},
RectTransform = {
AnchorMin = Amin,
AnchorMax = Amax
},
Text = {
Text = Text,
FontSize = 14,
Align = TextAnchor.MiddleCenter,
Color = "167, 166, 166",
Font = "robotocondensed-regular.ttf"
}
}, "Overlay", PanelName);
CuiHelper.AddUi(player, elements);
}
#endregion
Нате Gui-шку на c#. А хули нет, ты не сказал, для софта/Для плагинов. Чё доебались?