public ConfirmPrompt(Engine engine, Screen parentScreen, String Name, String Text) : base(Name) { AddText(Text, engine.FontMain); AddElement(new ScreenButton(this, "Yes", engine.FontMain)); AddElement(new ScreenButton(this, "No", engine.FontMain)); this.parent = parentScreen; Center(engine); }
public InputPrompt(Engine engine, Screen parentScreen, String title, String text, String startText, bool CloseButton) : base(title) { DemandPriority = true; AddText(text, engine.FontMain); input = new ScreenInput(this, engine.FontMain); input.InputString = startText; AddElement(input); AddElement(new ScreenButton(this, "OK", engine.FontMain)); this.parentScreen = parentScreen; if (CloseButton) AddCloseButton(engine); Center(engine); }
public void RemoveScreen(Screen screen) { screenRemoveBuffer.Add(screen); }
public bool IsSelectedScreen(Screen screen) { return screen == screenStack[0]; }
public void AddScreen(Screen screen) { screenAddBuffer.Add(screen); }