- disable screenshot console text in options menu
This commit is contained in:
parent
09bead39db
commit
c0ad16d3d5
|
@ -257,6 +257,16 @@ MenuStateOptions::MenuStateOptions(Program *program, MainMenu *mainMenu):
|
||||||
listBoxScreenShotType.setSelectedItem(config.getString("ScreenShotFileType","jpg"));
|
listBoxScreenShotType.setSelectedItem(config.getString("ScreenShotFileType","jpg"));
|
||||||
|
|
||||||
currentLine-=30;
|
currentLine-=30;
|
||||||
|
|
||||||
|
labelDisableScreenshotConsoleText.registerGraphicComponent(containerName,"lavelDisableScreenshotConsoleText");
|
||||||
|
labelDisableScreenshotConsoleText.init(currentLabelStart ,currentLine);
|
||||||
|
labelDisableScreenshotConsoleText.setText(lang.get("ScreenShotConsoleText"));
|
||||||
|
|
||||||
|
checkBoxDisableScreenshotConsoleText.registerGraphicComponent(containerName,"checkBoxDisableScreenshotConsoleText");
|
||||||
|
checkBoxDisableScreenshotConsoleText.init(currentColumnStart ,currentLine );
|
||||||
|
checkBoxDisableScreenshotConsoleText.setValue(!config.getBool("DisableScreenshotConsoleText","false"));
|
||||||
|
currentLine-=30;
|
||||||
|
|
||||||
// end
|
// end
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////
|
||||||
|
@ -604,6 +614,9 @@ void MenuStateOptions::mouseClick(int x, int y, MouseButton mouseButton){
|
||||||
checkBoxEnableTextureCompression.mouseClick(x, y);
|
checkBoxEnableTextureCompression.mouseClick(x, y);
|
||||||
|
|
||||||
listBoxScreenShotType.mouseClick(x, y);
|
listBoxScreenShotType.mouseClick(x, y);
|
||||||
|
|
||||||
|
labelDisableScreenshotConsoleText.mouseClick(x, y);
|
||||||
|
checkBoxDisableScreenshotConsoleText.mouseClick(x, y);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -645,6 +658,9 @@ void MenuStateOptions::mouseMove(int x, int y, const MouseState *ms){
|
||||||
checkBoxEnableTextureCompression.mouseMove(x, y);
|
checkBoxEnableTextureCompression.mouseMove(x, y);
|
||||||
|
|
||||||
listBoxScreenShotType.mouseMove(x, y);
|
listBoxScreenShotType.mouseMove(x, y);
|
||||||
|
|
||||||
|
labelDisableScreenshotConsoleText.mouseMove(x, y);
|
||||||
|
checkBoxDisableScreenshotConsoleText.mouseMove(x, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MenuStateOptions::keyDown(char key){
|
void MenuStateOptions::keyDown(char key){
|
||||||
|
@ -769,6 +785,9 @@ void MenuStateOptions::render(){
|
||||||
|
|
||||||
renderer.renderLabel(&labelScreenShotType);
|
renderer.renderLabel(&labelScreenShotType);
|
||||||
renderer.renderListBox(&listBoxScreenShotType);
|
renderer.renderListBox(&listBoxScreenShotType);
|
||||||
|
|
||||||
|
renderer.renderLabel(&labelDisableScreenshotConsoleText);
|
||||||
|
renderer.renderCheckBox(&checkBoxDisableScreenshotConsoleText);
|
||||||
}
|
}
|
||||||
|
|
||||||
renderer.renderConsole(&console,false,true);
|
renderer.renderConsole(&console,false,true);
|
||||||
|
@ -818,6 +837,8 @@ void MenuStateOptions::saveConfig(){
|
||||||
|
|
||||||
config.setString("ScreenShotFileType", listBoxScreenShotType.getSelectedItem());
|
config.setString("ScreenShotFileType", listBoxScreenShotType.getSelectedItem());
|
||||||
|
|
||||||
|
config.setBool("DisableScreenshotConsoleText", !checkBoxDisableScreenshotConsoleText.getValue());
|
||||||
|
|
||||||
string currentResolution=config.getString("ScreenWidth")+"x"+config.getString("ScreenHeight");
|
string currentResolution=config.getString("ScreenWidth")+"x"+config.getString("ScreenHeight");
|
||||||
string selectedResolution=listBoxScreenModes.getSelectedItem();
|
string selectedResolution=listBoxScreenModes.getSelectedItem();
|
||||||
if(currentResolution!=selectedResolution){
|
if(currentResolution!=selectedResolution){
|
||||||
|
|
|
@ -111,6 +111,9 @@ private:
|
||||||
GraphicLabel labelScreenShotType;
|
GraphicLabel labelScreenShotType;
|
||||||
GraphicListBox listBoxScreenShotType;
|
GraphicListBox listBoxScreenShotType;
|
||||||
|
|
||||||
|
GraphicLabel labelDisableScreenshotConsoleText;
|
||||||
|
GraphicCheckBox checkBoxDisableScreenshotConsoleText;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
MenuStateOptions(Program *program, MainMenu *mainMenu);
|
MenuStateOptions(Program *program, MainMenu *mainMenu);
|
||||||
|
|
Loading…
Reference in New Issue