Esempio n. 1
0
 public UIElement(BaseMenu menu, Texture2D sprite, Rectangle dimensions, Rectangle source)
 {
     this.menu = menu;
     this.sprite = sprite;
     this.dimensions = dimensions;
     this.source = source;
 }
Esempio n. 2
0
 public UIStandardButton(BaseMenu menu, Point position, string text)
     : base(menu,null,new Rectangle(position.X,position.Y,0,0))
 {
     Text = text;
     dimensions.Width = 36 * 2 + (int)Resources.Menus.ButtonFont.MeasureString(text).X;
     dimensions.Height = 48;
 }
Esempio n. 3
0
 public UITextBox(BaseMenu menu, Texture2D sprite, Rectangle dimensions, bool isobfuscated)
     : base(menu, sprite,dimensions)
 {
     this.Clicked += new ClickEvent(UITextBox_Clicked);
     isObfuscated = isobfuscated;
 }
Esempio n. 4
0
 public UIStandardButton(BaseMenu menu, Point position, string text) : base(menu, null, new Rectangle(position.X, position.Y, 0, 0))
 {
     Text              = text;
     dimensions.Width  = 36 * 2 + (int)Resources.Menus.ButtonFont.MeasureString(text).X;
     dimensions.Height = 48;
 }
Esempio n. 5
0
 public UIElement(BaseMenu menu, Texture2D sprite, Rectangle dimensions)
 {
     this.menu       = menu;
     this.sprite     = sprite;
     this.dimensions = dimensions;
 }
Esempio n. 6
0
 public UIHealthIndicator(BaseMenu menu, Texture2D sprite, Rectangle dimensions)
     : base(menu, sprite, dimensions)
 {
 }
Esempio n. 7
0
 public UIHealthIndicator(BaseMenu menu, Texture2D sprite, Rectangle dimensions)
     : base(menu, sprite, dimensions)
 {
 }