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