Example #1
0
 public Gui(Game game, Gui holder, Rectangle bounds)
 {
     this.bounds = bounds;
     init(game);
     this.holder = holder;
     if(holder == null){
         this.renderGroup = new RenderGroup(game);
     }
     dirty = true;
 }
Example #2
0
 public virtual void loadFromOtherGui(Game game, Gui other)
 {
     if (holder == null) {
         distributeEvent(new GuiEvent(GuiEventType.mouseMoved, game.inputControl.mousePosition), game);
     }
 }
Example #3
0
 public GuiButton(Game game, Gui holder, Rectangle rectangle, String text, Func<Gui, Game, bool> function)
     : base(game, holder, rectangle)
 {
     this.text = text;
     this.function = function;
 }
Example #4
0
 public GuiTextInput(Game game, Gui holder, Rectangle rectangle, String text)
     : base(game, holder, rectangle)
 {
     this.text = text;
 }
Example #5
0
 private bool buttonQT(Gui arg, Game game)
 {
     game.currentGui = null;
     game.Exit();
     return true;
 }
Example #6
0
 private bool buttonSP(Gui arg, Game game)
 {
     game.currentGui = null;
     game.startSinglePlayer();
     return true;
 }
Example #7
0
 private bool buttonMP(Gui arg, Game game)
 {
     game.currentGui = new GuiMPMenu(game, this);
     return true;
 }
Example #8
0
 private bool buttonR(Gui arg1, Game game)
 {
     game.currentGui = null;
     return true;
 }
Example #9
0
 private bool buttonMM(Gui arg1, Game game)
 {
     game.currentGui = new GuiMainMenu(game, null);
     game.leaveServer();
     return true;
 }
Example #10
0
 private bool buttonJoin(Gui arg1, Game game)
 {
     game.currentGui = null;
     game.joinServer(Dns.GetHostAddresses("72.208.52.99"), 7777);
     return true;
 }
Example #11
0
 private bool buttonBack(Gui arg1, Game game)
 {
     game.currentGui = previous;
     return true;
 }