public void Invoke() { IsOpen = true; _difficultyOption = 1; _animMenuBg.Begin(); _animMenuBg.TextAnchor = TextAnchor.Center; _animMenuBg.SetMessage(0x432e); _animMenuWindow.Begin(); _animMenuTitle.Begin(); _animMenuTitle.TextAnchor = TextAnchor.BottomCenter; _animMenuTitle.SetMessage(0x4330); _animMenuOption1.Begin(); _animMenuOption1.TextAnchor = TextAnchor.BottomCenter; _animMenuOption1.SetMessage(DifficultyTitle[0]); _animMenuOption2.Begin(); _animMenuOption2.TextAnchor = TextAnchor.BottomCenter; _animMenuOption2.SetMessage(DifficultyTitle[1]); _animMenuOption3.Begin(); _animMenuOption3.TextAnchor = TextAnchor.BottomCenter; _animMenuOption3.SetMessage(DifficultyTitle[2]); _animMenuOption4.Begin(); _animMenuOption4.TextAnchor = TextAnchor.BottomCenter; _animMenuOption4.SetMessage(DifficultyTitle[3]); _animMenuOptionSelected.Begin(); }
private void DrawNewGameMenu() { const int OptionHDistance = 30; var subTitleBgY = _mainMenu.Kernel.IsFinalMix ? 180 : 188; var optionY = _mainMenu.Kernel.IsFinalMix ? 120 : 144; _animMenuBg.Draw(0, 0); _animMenuWindow.TextAnchor = TextAnchor.BottomCenter; _animMenuWindow.SetMessage(DifficultyDescription[_difficultyOption]); _animMenuWindow.Draw(0, 0); _animMenuTitle.Draw(256, subTitleBgY); _animMenuOption1.Draw(256, optionY + OptionHDistance * 0); _animMenuOption2.Draw(256, optionY + OptionHDistance * 1); _animMenuOption3.Draw(256, optionY + OptionHDistance * 2); if (_difficultyCount >= 4) { _animMenuOption4.Draw(256, optionY + OptionHDistance * 3); } _animMenuOptionSelected.TextAnchor = TextAnchor.BottomCenter; _animMenuOptionSelected.SetMessage(DifficultyTitle[_difficultyOption]); _animMenuOptionSelected.Draw(256, optionY + OptionHDistance * _difficultyOption); }