예제 #1
0
 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);
 }
예제 #2
0
 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);
 }
예제 #3
0
 public void RemoveScreen(Screen screen)
 {
     screenRemoveBuffer.Add(screen);
 }
예제 #4
0
 public bool IsSelectedScreen(Screen screen)
 {
     return screen == screenStack[0];
 }
예제 #5
0
 public void AddScreen(Screen screen)
 {
     screenAddBuffer.Add(screen);
 }