Пример #1
0
 public UIButtonDynamic(int x, int y, int width, int height, UIButtonDelegate onClick, UIDynamicSprite sprite, SpriteFont font, string label)
     : base(x, y, width, height, onClick)
 {
     Sprite       = sprite;
     TextFont     = font;
     TextColor    = Color.Black;
     Label        = label;
     CurrentColor = DarkerColor;
 }
Пример #2
0
 public UIButtonSimple(int x, int y, int width, int height, UIButtonDelegate onClick, BasicSprite sprite)
     : base(x, y, width, height, onClick)
 {
     Sprite = sprite;
 }
Пример #3
0
 public UIButton(int x, int y, int width, int height, UIButtonDelegate onClick)
     : base(x, y, width, height)
 {
     OnClick += onClick;
 }