public WaitingMenu(SpriteFont font, MenuManager manager) { mDotCount = 0; mTimer = 0.0f; mWaitingLabel = new ButtonItem(font, "Waiting for connection"); Vector2 wb = manager.GetWindowSize(); mWaitingLabel.SetPosition(wb.X / 2 - mWaitingLabel.GetItemSpan().X / 2, wb.Y / 2 - mWaitingLabel.GetItemSpan().Y / 2); mDotCycle = new ButtonItem(font, ""); mDotCycle.SetPosition(wb.X / 2 - 30, wb.Y / 2 + 10); }
public HostGameMenu(SpriteFont font, MenuManager manager) { mPortLabel = new ButtonItem(font, "Port: "); mHostPortTextField = new TextInputItem(font, "8090", ReadyHost); mHostPortTextField.SetPosition(mPortLabel.GetItemSpan().X + 10, 0); }