static bool AddButton(ref int ButtonCount, string Text, bool Active) { int ButtonHeight = (int)(GUIRectHeight * 0.8f); int ButtonWidth = 80; int ButtonPadding = 10; int ButtonX = ButtonPadding + (ButtonWidth * ButtonCount + ButtonPadding * ButtonCount); int ButtonY = (ScreenHeight - GUIRectHeight) + (GUIRectHeight - ButtonHeight) / 2; bool Ret = Raygui.GuiToggle(new Rectangle(ButtonX, ButtonY, ButtonWidth, ButtonHeight), Text, Active); ButtonCount++; return(Ret); }
static void GUILoadStyle(string Name) { Raygui.GuiLoadStyle(string.Format("data/gui_styles/{0}/{0}.rgs", Name)); }