public LoadWorldMenu(short width, short height) : base() { short centerX = (short)(Systems.screen.viewHalfWidth - (short)(width * 0.5)); short centerY = (short)(Systems.screen.viewHalfHeight - (short)(height * 0.5)); this.textBox = new TextBox(null, centerX, centerY, width, height); this.worldIdInput = new UICreoInput(this.textBox, 20, 50, 22); this.loadButton = new UICreoButton(this.textBox, "Load World", 20, 102, null); UIComponent.ComponentSelected = this.worldIdInput; }
public LoginMenu(short width, short height) : base() { short centerX = (short)(Systems.screen.viewHalfWidth - (short)(width * 0.5)); short centerY = (short)(Systems.screen.viewHalfHeight - (short)(height * 0.5)); this.textBox = new TextBox(null, centerX, centerY, width, height); this.loginInput = new UICreoInput(this.textBox, 20, 50, 22); this.emailInput = new UICreoInput(this.textBox, 20, 134); this.passInput = new UICreoInput(this.textBox, 20, 218, 45, true); this.loginButton = new UICreoButton(this.textBox, "Login", 20, 302, null); this.registerButton = new UICreoButton(this.textBox, "Register", 152, 302, null); }