Beispiel #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);
 }
Beispiel #2
0
 public ScreenObject(Vector2 l, Screen p)
 {
     parent = p;
     loc = l;
 }
Beispiel #3
0
 public TextBox(Vector2 l, Screen p, String t)
     : base(l, p)
 {
     text = Screen.FormatTextToWidth(t, 100.0f);
 }
Beispiel #4
0
 public Button(Vector2 l, Screen p, string t, OnClick oc)
     : base(l, p)
 {
     handler = oc;
     text = t;
 }
Beispiel #5
0
 public void SetCurrentScreenByName(string n)
 {
     foreach (Screen s in screens)
     {
         if (s.GetName() == n)
         {
             currentScreen = s;
         }
     }
 }
Beispiel #6
0
 public Button(Vector2 l, Screen p, string t)
     : base(l, p)
 {
     handler = null;
     text = t;
 }
Beispiel #7
0
 public void AddScreen(Screen s)
 {
     s.SetScreenManager(this);
     screens.Add(s);
 }
Beispiel #8
0
 public ScreenManager()
 {
     screens = new List<Screen>();
     currentScreen = null;
 }