mirror of
https://github.com/glest/glest-source.git
synced 2025-08-30 03:09:49 +02:00
MouseMoveScrollsWorld in ingame options. lang file entry is still missing for "MouseScrollsWorld"
This commit is contained in:
@@ -349,6 +349,16 @@ MenuStateOptions::MenuStateOptions(Program *program, MainMenu *mainMenu):
|
||||
checkBoxDisableScreenshotConsoleText.init(currentColumnStart ,currentLine );
|
||||
checkBoxDisableScreenshotConsoleText.setValue(!config.getBool("DisableScreenshotConsoleText","false"));
|
||||
|
||||
currentLine-=lineOffset;
|
||||
|
||||
labelMouseMoveScrollsWorld.registerGraphicComponent(containerName,"labelMouseMoveScrollsWorld");
|
||||
labelMouseMoveScrollsWorld.init(currentLabelStart ,currentLine);
|
||||
labelMouseMoveScrollsWorld.setText(lang.get("MouseScrollsWorld"));
|
||||
|
||||
checkBoxMouseMoveScrollsWorld.registerGraphicComponent(containerName,"checkBoxMouseMoveScrollsWorld");
|
||||
checkBoxMouseMoveScrollsWorld.init(currentColumnStart ,currentLine );
|
||||
checkBoxMouseMoveScrollsWorld.setValue(config.getBool("MouseMoveScrollsWorld","true"));
|
||||
|
||||
currentLine-=lineOffset;
|
||||
currentLine-=lineOffset;
|
||||
currentLine-=lineOffset;
|
||||
@@ -640,6 +650,7 @@ void MenuStateOptions::mouseClick(int x, int y, MouseButton mouseButton){
|
||||
listBoxScreenShotType.mouseClick(x, y);
|
||||
|
||||
checkBoxDisableScreenshotConsoleText.mouseClick(x, y);
|
||||
checkBoxMouseMoveScrollsWorld.mouseClick(x, y);
|
||||
checkBoxVisibleHud.mouseClick(x, y);
|
||||
checkBoxRainEffect.mouseClick(x,y);
|
||||
}
|
||||
@@ -679,6 +690,7 @@ void MenuStateOptions::mouseMove(int x, int y, const MouseState *ms){
|
||||
checkBoxEnableTextureCompression.mouseMove(x, y);
|
||||
listBoxScreenShotType.mouseMove(x, y);
|
||||
checkBoxDisableScreenshotConsoleText.mouseMove(x, y);
|
||||
checkBoxMouseMoveScrollsWorld.mouseMove(x, y);
|
||||
checkBoxVisibleHud.mouseMove(x, y);
|
||||
checkBoxRainEffect.mouseMove(x, y);
|
||||
}
|
||||
@@ -821,6 +833,9 @@ void MenuStateOptions::render(){
|
||||
renderer.renderLabel(&labelDisableScreenshotConsoleText);
|
||||
renderer.renderCheckBox(&checkBoxDisableScreenshotConsoleText);
|
||||
|
||||
renderer.renderLabel(&labelMouseMoveScrollsWorld);
|
||||
renderer.renderCheckBox(&checkBoxMouseMoveScrollsWorld);
|
||||
|
||||
renderer.renderLabel(&labelVisibleHud);
|
||||
renderer.renderCheckBox(&checkBoxVisibleHud);
|
||||
|
||||
@@ -877,6 +892,7 @@ void MenuStateOptions::saveConfig(){
|
||||
config.setString("ScreenShotFileType", listBoxScreenShotType.getSelectedItem());
|
||||
|
||||
config.setBool("DisableScreenshotConsoleText", !checkBoxDisableScreenshotConsoleText.getValue());
|
||||
config.setBool("MouseMoveScrollsWorld", checkBoxMouseMoveScrollsWorld.getValue());
|
||||
config.setBool("VisibleHud", checkBoxVisibleHud.getValue());
|
||||
config.setBool("RainEffect", checkBoxRainEffect.getValue());
|
||||
|
||||
|
@@ -114,6 +114,9 @@ private:
|
||||
GraphicLabel labelDisableScreenshotConsoleText;
|
||||
GraphicCheckBox checkBoxDisableScreenshotConsoleText;
|
||||
|
||||
GraphicLabel labelMouseMoveScrollsWorld;
|
||||
GraphicCheckBox checkBoxMouseMoveScrollsWorld;
|
||||
|
||||
GraphicLabel labelVisibleHud;
|
||||
GraphicCheckBox checkBoxVisibleHud;
|
||||
|
||||
|
Reference in New Issue
Block a user