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; }
public virtual void loadFromOtherGui(Game game, Gui other) { if (holder == null) { distributeEvent(new GuiEvent(GuiEventType.mouseMoved, game.inputControl.mousePosition), game); } }
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; }
public GuiTextInput(Game game, Gui holder, Rectangle rectangle, String text) : base(game, holder, rectangle) { this.text = text; }
private bool buttonQT(Gui arg, Game game) { game.currentGui = null; game.Exit(); return true; }
private bool buttonSP(Gui arg, Game game) { game.currentGui = null; game.startSinglePlayer(); return true; }
private bool buttonMP(Gui arg, Game game) { game.currentGui = new GuiMPMenu(game, this); return true; }
private bool buttonR(Gui arg1, Game game) { game.currentGui = null; return true; }
private bool buttonMM(Gui arg1, Game game) { game.currentGui = new GuiMainMenu(game, null); game.leaveServer(); return true; }
private bool buttonJoin(Gui arg1, Game game) { game.currentGui = null; game.joinServer(Dns.GetHostAddresses("72.208.52.99"), 7777); return true; }
private bool buttonBack(Gui arg1, Game game) { game.currentGui = previous; return true; }