Ejemplo n.º 1
0
 public TextBox(Vector2 l, Screen p, String t, float w, float h)
     : base(l, p)
 {
     width = w;
     height = h;
     text = Screen.FormatTextToWidth(t, w);
 }
Ejemplo n.º 2
0
 public ScreenObject(Vector2 l, Screen p)
 {
     parent = p;
     loc = l;
 }
Ejemplo n.º 3
0
 public TextBox(Vector2 l, Screen p, String t)
     : base(l, p)
 {
     text = Screen.FormatTextToWidth(t, 100.0f);
 }
Ejemplo n.º 4
0
 public Button(Vector2 l, Screen p, string t, OnClick oc)
     : base(l, p)
 {
     handler = oc;
     text = t;
 }
Ejemplo n.º 5
0
 public void SetCurrentScreenByName(string n)
 {
     foreach (Screen s in screens)
     {
         if (s.GetName() == n)
         {
             currentScreen = s;
         }
     }
 }
Ejemplo n.º 6
0
 public Button(Vector2 l, Screen p, string t)
     : base(l, p)
 {
     handler = null;
     text = t;
 }
Ejemplo n.º 7
0
 public void AddScreen(Screen s)
 {
     s.SetScreenManager(this);
     screens.Add(s);
 }
Ejemplo n.º 8
0
 public ScreenManager()
 {
     screens = new List<Screen>();
     currentScreen = null;
 }