public GConsole(GUIBase B) : base(B) { Background = new RectangleShape(); Position = Background.Position = new Vector2f(); Size = Background.Size = new Vector2f(B.Renderer.Size.X, 350); Background.FillColor = new Color(12, 12, 12, 100); KeyPressed += KeyPressedEvent; }
public Button(GUIBase UI, String Txt, Font F, float TextOffsetX = 0, float TextOffsetY = -10) : base(UI) { ButtonText = Txt; FontObj = F; UI.AddElement(this); this.TextOffsetX = TextOffsetX; this.TextOffsetY = TextOffsetY; TextObj = new Text(); TextObj.Font = F; TextObj.Style = Text.Styles.Bold; TextObj.CharacterSize = 30; TextObj.DisplayedString = ButtonText; TextObj.Color = Color.Black; Rect = new RectangleShape(); Rect.OutlineColor = Color.Black; Rect.OutlineThickness = 4; Tick = AudioMgr.GetSound("tick.wav"); }
public UIElement(GUIBase UI) { Elements = new LinkedList <UIElement>(); this.UI = UI; Active = true; }
public ButtonOutlined(GUIBase UI, String Txt, Font F, float TextOffsetX = 0, float TextOffsetY = -10) : base(UI, Txt, F, TextOffsetX, TextOffsetY) { }