Beispiel #1
0
 public Button(SpriteMapDrawer smd, Vector2 pos, int width = 400, int height = 50, String color = "blue")
 {
     this.smd       = smd;
     this.pos       = pos;
     this.width     = width;
     this.height    = height;
     this.color     = color;
     this.isHovered = false;
 }
Beispiel #2
0
 public FillableBar(SpriteMapDrawer smd, Vector2 pos, int width = 400, int height = 50, String color = "blue")
 {
     this.smd    = smd;
     this.pos    = pos;
     this.width  = width;
     this.height = height;
     this.color  = color;
     value       = .005f;
     if (value < 0.02)
     {
         marginValue = value * 50;
     }
 }