diff --git a/source/game/menu/menu_state_options.cpp b/source/game/menu/menu_state_options.cpp index b7598a7ae..6e529d7b6 100644 --- a/source/game/menu/menu_state_options.cpp +++ b/source/game/menu/menu_state_options.cpp @@ -83,6 +83,8 @@ namespace Game { checkBoxShowDeveloperConsoleOnWindows("Options", "checkBoxShowDeveloperConsoleOnWindows"), labelDefaultActionOnRightClick("Options", "labelDefaultActionOnRightClick"), checkBoxDefaultActionOnRightClick("Options", "checkBoxDefaultActionOnRightClick"), + labelUpdateNotice("Options", "labelUpdateNotice"), + checkBoxUpdateNotice("Options", "checkBoxUpdateNotice"), labelCustomTranslation("Options", "labelCustomTranslation"), checkBoxCustomTranslation("Options", "checkBoxCustomTranslation"), buttonGetNewLanguageFiles("Options", "buttonGetNewLanguageFiles"), @@ -392,6 +394,14 @@ namespace Game { checkBoxDefaultActionOnRightClick.init(currentColumnStart, currentLine); checkBoxDefaultActionOnRightClick.setValue(config.getBool("DefaultActionAttack", "true")); + currentLine -= lineOffset; + + labelUpdateNotice.init(currentLabelStart, currentLine); + labelUpdateNotice.setText(lang.getString("UpdateNoticeOption")); + + checkBoxUpdateNotice.init(currentColumnStart, currentLine); + checkBoxUpdateNotice.setValue(config.getBool("UpdateNotifier", "true")); + currentLine -= lineOffset / 2; // buttons @@ -1084,8 +1094,9 @@ namespace Game { listBoxHealthBars.mouseClick(x, y); checkBoxChatStaysActive.mouseClick(x, y); checkBoxTimeDisplay.mouseClick(x, y); - checkBoxDefaultActionOnRightClick.mouseClick(x, y); checkBoxShowDeveloperConsoleOnWindows.mouseClick(x, y); + checkBoxDefaultActionOnRightClick.mouseClick(x, y); + checkBoxUpdateNotice.mouseClick(x, y); } } @@ -1115,8 +1126,8 @@ namespace Game { checkBoxVisibleHud.mouseMove(x, y); checkBoxChatStaysActive.mouseMove(x, y); checkBoxTimeDisplay.mouseMove(x, y); - checkBoxDefaultActionOnRightClick.mouseMove(x, y); checkBoxShowDeveloperConsoleOnWindows.mouseMove(x, y); + checkBoxUpdateNotice.mouseMove(x, y); checkBoxCustomTranslation.mouseMove(x, y); } @@ -1224,11 +1235,14 @@ namespace Game { renderer.renderLabel(&labelChatStaysActive); renderer.renderLabel(&labelTimeDisplay); + renderer.renderLabel(&labelShowDeveloperConsoleOnWindows); + renderer.renderCheckBox(&checkBoxShowDeveloperConsoleOnWindows); + renderer.renderLabel(&labelDefaultActionOnRightClick); renderer.renderCheckBox(&checkBoxDefaultActionOnRightClick); - renderer.renderLabel(&labelShowDeveloperConsoleOnWindows); - renderer.renderCheckBox(&checkBoxShowDeveloperConsoleOnWindows); + renderer.renderLabel(&labelUpdateNotice); + renderer.renderCheckBox(&checkBoxUpdateNotice); renderer.renderCheckBox(&checkBoxVisibleHud); renderer.renderCheckBox(&checkBoxChatStaysActive); @@ -1301,8 +1315,9 @@ namespace Game { config.setBool("VisibleHud", checkBoxVisibleHud.getValue()); config.setBool("ChatStaysActive", checkBoxChatStaysActive.getValue()); config.setBool("TimeDisplay", checkBoxTimeDisplay.getValue()); - config.setBool("DefaultActionAttack", checkBoxDefaultActionOnRightClick.getValue()); config.setBool("ShowConsoleWindows", checkBoxShowDeveloperConsoleOnWindows.getValue()); + config.setBool("DefaultActionAttack", checkBoxDefaultActionOnRightClick.getValue()); + config.setBool("UpdateNotifier", checkBoxUpdateNotice.getValue()); config.save(); #ifdef _WIN32 diff --git a/source/game/menu/menu_state_options.h b/source/game/menu/menu_state_options.h index 3e9b8242b..a778f2e84 100644 --- a/source/game/menu/menu_state_options.h +++ b/source/game/menu/menu_state_options.h @@ -79,6 +79,9 @@ namespace Game { GraphicLabel labelDefaultActionOnRightClick; GraphicCheckBox checkBoxDefaultActionOnRightClick; + GraphicLabel labelUpdateNotice; + GraphicCheckBox checkBoxUpdateNotice; + map < string, string > languageList; GraphicLabel labelCustomTranslation;