Пример #1
0
 public Button(Texture2D Texture, Texture2D HoverTexture)
 {
     this.Texture      = Texture;
     this.HoverTexture = HoverTexture;
     RenderColor       = Color.White;
     _textDisplay      = new TextDisplay("");
 }
Пример #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("");
 }
Пример #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("");
        }
Пример #4
0
 public Button()
 {
     Texture      = GameContent.GetTexture(DEF_NORMAL_TEXTURE);
     HoverTexture = GameContent.GetTexture(DEF_HOVER_TEXTURE);
     _textDisplay = new TextDisplay("");
 }