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