From 7b626451592add8f9e080fd2bb06b0ba42aea8cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20K=C3=BCpper?= Date: Sun, 8 Dec 2013 14:19:44 +0100 Subject: [PATCH] Added button to game-options to open qr-screen. --- .../Ambient/Screens/ScreenOptionsGame.xml | 61 ++++++++++++++++++- .../Changelog/Changelog_ScreenOptionsGame.txt | 8 +++ Vocaluxe/Screens/CScreenOptionsGame.cs | 13 +++- 3 files changed, 77 insertions(+), 5 deletions(-) create mode 100644 Output/Themes/Changelog/Changelog_ScreenOptionsGame.txt diff --git a/Output/Themes/Ambient/Screens/ScreenOptionsGame.xml b/Output/Themes/Ambient/Screens/ScreenOptionsGame.xml index 6f758a46..49c9551a 100644 --- a/Output/Themes/Ambient/Screens/ScreenOptionsGame.xml +++ b/Output/Themes/Ambient/Screens/ScreenOptionsGame.xml @@ -1,7 +1,7 @@  - 1 + 2 Video @@ -385,6 +385,63 @@ 26 + + + Button + + Button + + 355 + 600 + 0,00 + 150 + 50 + + + ButtonColor + + + ButtonSColor + + + 75 + 12 + + 27 + + 142 + + + ButtonTextColor + + + ButtonTextSColor + + Center + + Center + + + + Outline + + TR_SCREENOGAME_BUTTON_SERVER + + + + + + 10 + 26 + + + + + + 10 + 26 + + Invisible @@ -788,4 +845,4 @@ 3 - \ No newline at end of file + diff --git a/Output/Themes/Changelog/Changelog_ScreenOptionsGame.txt b/Output/Themes/Changelog/Changelog_ScreenOptionsGame.txt new file mode 100644 index 00000000..e60b7e4a --- /dev/null +++ b/Output/Themes/Changelog/Changelog_ScreenOptionsGame.txt @@ -0,0 +1,8 @@ +ScreenOptionsGame + +++++++++++ +Version 2: + +Add: + +++++++++++ \ No newline at end of file diff --git a/Vocaluxe/Screens/CScreenOptionsGame.cs b/Vocaluxe/Screens/CScreenOptionsGame.cs index 16d2f30e..4ed5c752 100644 --- a/Vocaluxe/Screens/CScreenOptionsGame.cs +++ b/Vocaluxe/Screens/CScreenOptionsGame.cs @@ -27,7 +27,7 @@ namespace Vocaluxe.Screens // Version number for theme files. Increment it, if you've changed something on the theme files! protected override int _ScreenVersion { - get { return 1; } + get { return 2; } } private const string _SelectSlideLanguage = "SelectSlideLanguage"; @@ -38,12 +38,13 @@ namespace Vocaluxe.Screens private const string _SelectSlideTimerMode = "SelectSlideTimerMode"; private const string _ButtonExit = "ButtonExit"; + private const string _ButtonServer = "ButtonServer"; public override void Init() { base.Init(); - _ThemeButtons = new string[] {_ButtonExit}; + _ThemeButtons = new string[] {_ButtonExit, _ButtonServer}; _ThemeSelectSlides = new string[] {_SelectSlideLanguage, _SelectSlideDebugLevel, _SelectSlideSongMenu, _SelectSlideSongSorting, _SelectSlideTabs, _SelectSlideTimerMode}; } @@ -86,6 +87,8 @@ namespace Vocaluxe.Screens _SaveConfig(); CGraphics.FadeTo(EScreens.ScreenOptions); } + else if (_Buttons[_ButtonServer].Selected) + CGraphics.ShowPopup(EPopupScreens.PopupServerQR); break; case Keys.Left: @@ -112,9 +115,13 @@ namespace Vocaluxe.Screens if (mouseEvent.LB && _IsMouseOver(mouseEvent)) { - _SaveConfig(); if (_Buttons[_ButtonExit].Selected) + { CGraphics.FadeTo(EScreens.ScreenOptions); + _SaveConfig(); + } + else if (_Buttons[_ButtonServer].Selected) + CGraphics.ShowPopup(EPopupScreens.PopupServerQR); } return true; }