Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
        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");
        }
Exemplo n.º 3
0
 public UIElement(GUIBase UI)
 {
     Elements = new LinkedList <UIElement>();
     this.UI  = UI;
     Active   = true;
 }
Exemplo n.º 4
0
 public ButtonOutlined(GUIBase UI, String Txt, Font F, float TextOffsetX = 0, float TextOffsetY = -10)
     : base(UI, Txt, F, TextOffsetX, TextOffsetY)
 {
 }