mirror of
https://github.com/glest/glest-source.git
synced 2025-08-23 00:12:49 +02:00
Added update notifier option
This commit is contained in:
@@ -83,6 +83,8 @@ namespace Game {
|
|||||||
checkBoxShowDeveloperConsoleOnWindows("Options", "checkBoxShowDeveloperConsoleOnWindows"),
|
checkBoxShowDeveloperConsoleOnWindows("Options", "checkBoxShowDeveloperConsoleOnWindows"),
|
||||||
labelDefaultActionOnRightClick("Options", "labelDefaultActionOnRightClick"),
|
labelDefaultActionOnRightClick("Options", "labelDefaultActionOnRightClick"),
|
||||||
checkBoxDefaultActionOnRightClick("Options", "checkBoxDefaultActionOnRightClick"),
|
checkBoxDefaultActionOnRightClick("Options", "checkBoxDefaultActionOnRightClick"),
|
||||||
|
labelUpdateNotice("Options", "labelUpdateNotice"),
|
||||||
|
checkBoxUpdateNotice("Options", "checkBoxUpdateNotice"),
|
||||||
labelCustomTranslation("Options", "labelCustomTranslation"),
|
labelCustomTranslation("Options", "labelCustomTranslation"),
|
||||||
checkBoxCustomTranslation("Options", "checkBoxCustomTranslation"),
|
checkBoxCustomTranslation("Options", "checkBoxCustomTranslation"),
|
||||||
buttonGetNewLanguageFiles("Options", "buttonGetNewLanguageFiles"),
|
buttonGetNewLanguageFiles("Options", "buttonGetNewLanguageFiles"),
|
||||||
@@ -392,6 +394,14 @@ namespace Game {
|
|||||||
checkBoxDefaultActionOnRightClick.init(currentColumnStart, currentLine);
|
checkBoxDefaultActionOnRightClick.init(currentColumnStart, currentLine);
|
||||||
checkBoxDefaultActionOnRightClick.setValue(config.getBool("DefaultActionAttack", "true"));
|
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;
|
currentLine -= lineOffset / 2;
|
||||||
|
|
||||||
// buttons
|
// buttons
|
||||||
@@ -1084,8 +1094,9 @@ namespace Game {
|
|||||||
listBoxHealthBars.mouseClick(x, y);
|
listBoxHealthBars.mouseClick(x, y);
|
||||||
checkBoxChatStaysActive.mouseClick(x, y);
|
checkBoxChatStaysActive.mouseClick(x, y);
|
||||||
checkBoxTimeDisplay.mouseClick(x, y);
|
checkBoxTimeDisplay.mouseClick(x, y);
|
||||||
checkBoxDefaultActionOnRightClick.mouseClick(x, y);
|
|
||||||
checkBoxShowDeveloperConsoleOnWindows.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);
|
checkBoxVisibleHud.mouseMove(x, y);
|
||||||
checkBoxChatStaysActive.mouseMove(x, y);
|
checkBoxChatStaysActive.mouseMove(x, y);
|
||||||
checkBoxTimeDisplay.mouseMove(x, y);
|
checkBoxTimeDisplay.mouseMove(x, y);
|
||||||
checkBoxDefaultActionOnRightClick.mouseMove(x, y);
|
|
||||||
checkBoxShowDeveloperConsoleOnWindows.mouseMove(x, y);
|
checkBoxShowDeveloperConsoleOnWindows.mouseMove(x, y);
|
||||||
|
checkBoxUpdateNotice.mouseMove(x, y);
|
||||||
checkBoxCustomTranslation.mouseMove(x, y);
|
checkBoxCustomTranslation.mouseMove(x, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1224,11 +1235,14 @@ namespace Game {
|
|||||||
renderer.renderLabel(&labelChatStaysActive);
|
renderer.renderLabel(&labelChatStaysActive);
|
||||||
renderer.renderLabel(&labelTimeDisplay);
|
renderer.renderLabel(&labelTimeDisplay);
|
||||||
|
|
||||||
|
renderer.renderLabel(&labelShowDeveloperConsoleOnWindows);
|
||||||
|
renderer.renderCheckBox(&checkBoxShowDeveloperConsoleOnWindows);
|
||||||
|
|
||||||
renderer.renderLabel(&labelDefaultActionOnRightClick);
|
renderer.renderLabel(&labelDefaultActionOnRightClick);
|
||||||
renderer.renderCheckBox(&checkBoxDefaultActionOnRightClick);
|
renderer.renderCheckBox(&checkBoxDefaultActionOnRightClick);
|
||||||
|
|
||||||
renderer.renderLabel(&labelShowDeveloperConsoleOnWindows);
|
renderer.renderLabel(&labelUpdateNotice);
|
||||||
renderer.renderCheckBox(&checkBoxShowDeveloperConsoleOnWindows);
|
renderer.renderCheckBox(&checkBoxUpdateNotice);
|
||||||
|
|
||||||
renderer.renderCheckBox(&checkBoxVisibleHud);
|
renderer.renderCheckBox(&checkBoxVisibleHud);
|
||||||
renderer.renderCheckBox(&checkBoxChatStaysActive);
|
renderer.renderCheckBox(&checkBoxChatStaysActive);
|
||||||
@@ -1301,8 +1315,9 @@ namespace Game {
|
|||||||
config.setBool("VisibleHud", checkBoxVisibleHud.getValue());
|
config.setBool("VisibleHud", checkBoxVisibleHud.getValue());
|
||||||
config.setBool("ChatStaysActive", checkBoxChatStaysActive.getValue());
|
config.setBool("ChatStaysActive", checkBoxChatStaysActive.getValue());
|
||||||
config.setBool("TimeDisplay", checkBoxTimeDisplay.getValue());
|
config.setBool("TimeDisplay", checkBoxTimeDisplay.getValue());
|
||||||
config.setBool("DefaultActionAttack", checkBoxDefaultActionOnRightClick.getValue());
|
|
||||||
config.setBool("ShowConsoleWindows", checkBoxShowDeveloperConsoleOnWindows.getValue());
|
config.setBool("ShowConsoleWindows", checkBoxShowDeveloperConsoleOnWindows.getValue());
|
||||||
|
config.setBool("DefaultActionAttack", checkBoxDefaultActionOnRightClick.getValue());
|
||||||
|
config.setBool("UpdateNotifier", checkBoxUpdateNotice.getValue());
|
||||||
config.save();
|
config.save();
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
@@ -79,6 +79,9 @@ namespace Game {
|
|||||||
GraphicLabel labelDefaultActionOnRightClick;
|
GraphicLabel labelDefaultActionOnRightClick;
|
||||||
GraphicCheckBox checkBoxDefaultActionOnRightClick;
|
GraphicCheckBox checkBoxDefaultActionOnRightClick;
|
||||||
|
|
||||||
|
GraphicLabel labelUpdateNotice;
|
||||||
|
GraphicCheckBox checkBoxUpdateNotice;
|
||||||
|
|
||||||
map < string, string > languageList;
|
map < string, string > languageList;
|
||||||
|
|
||||||
GraphicLabel labelCustomTranslation;
|
GraphicLabel labelCustomTranslation;
|
||||||
|
Reference in New Issue
Block a user