43 Form->ui.pageOptions->CBFullscreen->setChecked(value("video/fullscreen", false).toBool()); |
43 Form->ui.pageOptions->CBFullscreen->setChecked(value("video/fullscreen", false).toBool()); |
44 bool ffscr=value("video/frontendfullscreen", false).toBool(); |
44 bool ffscr=value("video/frontendfullscreen", false).toBool(); |
45 Form->ui.pageOptions->CBFrontendFullscreen->setChecked(ffscr); |
45 Form->ui.pageOptions->CBFrontendFullscreen->setChecked(ffscr); |
46 |
46 |
47 Form->ui.pageOptions->CBReduceQuality->setChecked(value("video/reducequality", false).toBool()); |
47 Form->ui.pageOptions->CBReduceQuality->setChecked(value("video/reducequality", false).toBool()); |
|
48 Form->ui.pageOptions->CBFrontendEffects->setChecked(value("video/frontendeffects", true).toBool()); |
48 Form->ui.pageOptions->CBEnableSound->setChecked(value("audio/sound", true).toBool()); |
49 Form->ui.pageOptions->CBEnableSound->setChecked(value("audio/sound", true).toBool()); |
49 Form->ui.pageOptions->CBEnableMusic->setChecked(value("audio/music", true).toBool()); |
50 Form->ui.pageOptions->CBEnableMusic->setChecked(value("audio/music", true).toBool()); |
50 Form->ui.pageOptions->volumeBox->setValue(value("audio/volume", 100).toUInt()); |
51 Form->ui.pageOptions->volumeBox->setValue(value("audio/volume", 100).toUInt()); |
51 |
52 |
52 Form->ui.pageOptions->editNetNick->setText(value("net/nick", QLineEdit::tr("unnamed")).toString()); |
53 Form->ui.pageOptions->editNetNick->setText(value("net/nick", QLineEdit::tr("unnamed")).toString()); |
89 { |
90 { |
90 setValue("video/resolution", Form->ui.pageOptions->CBResolution->currentText()); |
91 setValue("video/resolution", Form->ui.pageOptions->CBResolution->currentText()); |
91 setValue("video/fullscreen", vid_Fullscreen()); |
92 setValue("video/fullscreen", vid_Fullscreen()); |
92 |
93 |
93 setValue("video/reducequality", isReducedQuality()); |
94 setValue("video/reducequality", isReducedQuality()); |
|
95 |
|
96 setValue("video/frontendeffects", isFrontendEffects()); |
94 |
97 |
95 bool ffscr=isFrontendFullscreen(); |
98 bool ffscr=isFrontendFullscreen(); |
96 setValue("video/frontendfullscreen", ffscr); |
99 setValue("video/frontendfullscreen", ffscr); |
97 emit frontendFullscreen(ffscr); |
100 emit frontendFullscreen(ffscr); |
98 if (!ffscr) { |
101 if (!ffscr) { |
137 } |
140 } |
138 |
141 |
139 bool GameUIConfig::isReducedQuality() const |
142 bool GameUIConfig::isReducedQuality() const |
140 { |
143 { |
141 return Form->ui.pageOptions->CBReduceQuality->isChecked(); |
144 return Form->ui.pageOptions->CBReduceQuality->isChecked(); |
|
145 } |
|
146 bool GameUIConfig::isFrontendEffects() const |
|
147 { |
|
148 return Form->ui.pageOptions->CBFrontendEffects->isChecked(); |
142 } |
149 } |
143 |
150 |
144 bool GameUIConfig::isFrontendFullscreen() const |
151 bool GameUIConfig::isFrontendFullscreen() const |
145 { |
152 { |
146 return Form->ui.pageOptions->CBFrontendFullscreen->isChecked(); |
153 return Form->ui.pageOptions->CBFrontendFullscreen->isChecked(); |