Esempio n. 1
0
 public Button(Texture2D Texture, Texture2D HoverTexture)
 {
     this.Texture      = Texture;
     this.HoverTexture = HoverTexture;
     RenderColor       = Color.White;
     _textDisplay      = new TextDisplay("");
 }
Esempio n. 2
0
 public Button(Vector2 Position, Texture2D Texture, Texture2D HoverTexture)
 {
     this.Position     = Position;
     this.Texture      = Texture;
     this.HoverTexture = HoverTexture;
     RenderColor       = Color.White;
     _textDisplay      = new TextDisplay("");
 }
Esempio n. 3
0
        public Button(Vector2 Position, Vector2 Size)
        {
            this.Position = Position;
            this.Size     = Size;

            Texture      = GameContent.GetTexture(DEF_NORMAL_TEXTURE);
            HoverTexture = GameContent.GetTexture(DEF_HOVER_TEXTURE);
            _textDisplay = new TextDisplay("");
        }
Esempio n. 4
0
 public Button()
 {
     Texture      = GameContent.GetTexture(DEF_NORMAL_TEXTURE);
     HoverTexture = GameContent.GetTexture(DEF_HOVER_TEXTURE);
     _textDisplay = new TextDisplay("");
 }