private void InitHelpWindow() { _HelpWindow = new Window(); _HelpWindow.CenterText = true; _HelpWindow.Height = _HelpWindow.FittingHeight(1); _HelpWindow.Text = "Press ENTER to continue"; _HelpWindow.Open(); }
private void InitHelpWindow() { _HelpWindow = new Window(); _HelpWindow.CenterText = true; _HelpWindow.Height = _HelpWindow.FittingHeight(1); _HelpWindow.Text = "Press ENTER to continue"; _HelpWindow.Open(); }
private void InitRuleWindow() { _RuleWindow = new Window(); _RuleWindow.Text = "Open: " + GameRule.Open + "\n"; _RuleWindow.Text += "Random: " + GameRule.Random + "\n"; _RuleWindow.Text += "Elemental: " + GameRule.Elemental + "\n"; _RuleWindow.Text += "Same: " + GameRule.Same + "\n"; _RuleWindow.Text += "Same Wall: " + GameRule.SameWall + "\n"; _RuleWindow.Text += "Plus: " + GameRule.Plus + "\n"; _RuleWindow.Text += "Plus Wall: " + GameRule.PlusWall + "\n"; _RuleWindow.Text += "--------------------\n"; _RuleWindow.Text += "Trade Rule: " + GameRule.TradingRule + "\n"; _RuleWindow.Open(); }
private void InitRuleWindow() { _RuleWindow = new Window(); _RuleWindow.Text = "Open: " + GameRule.Open + "\n"; _RuleWindow.Text += "Random: " + GameRule.Random + "\n"; _RuleWindow.Text += "Elemental: " + GameRule.Elemental + "\n"; _RuleWindow.Text += "Same: " + GameRule.Same + "\n"; _RuleWindow.Text += "Same Wall: " + GameRule.SameWall + "\n"; _RuleWindow.Text += "Plus: " + GameRule.Plus + "\n"; _RuleWindow.Text += "Plus Wall: " + GameRule.PlusWall + "\n"; _RuleWindow.Text += "--------------------\n"; _RuleWindow.Text += "Trade Rule: " + GameRule.TradingRule + "\n"; _RuleWindow.Open(); }
private void UpdateHelpWindow(GameTime gameTime) { _HelpWindow.Width = (int)(spriteBoard.ViewportWidth * Global.BoardScaleH - Global.BoardScaleH * 96 * 2); _HelpWindow.ScreenPosition = new Vector2(Global.BoardScaleH * 96, (int)(Global.ScreenHeight - _HelpWindow.Height - Global.BoardScaleV * 8)); _HelpWindow.Update(gameTime); if (_CurrMouseTarget != null && _PrevMouseTarget != _CurrMouseTarget) { Global.SFXManager.Card.Play(); _HelpWindow.Open(); _HelpWindow.Text = ((TripleTriadCard)_CurrMouseTarget).Name; } else if (_CurrMouseTarget == null) { _HelpWindow.Close(); } }