equal
deleted
inserted
replaced
46 Form->ui.pageOptions->CBFullscreen->setChecked(value("video/fullscreen", false).toBool()); |
46 Form->ui.pageOptions->CBFullscreen->setChecked(value("video/fullscreen", false).toBool()); |
47 bool ffscr=value("frontend/fullscreen", false).toBool(); |
47 bool ffscr=value("frontend/fullscreen", false).toBool(); |
48 Form->ui.pageOptions->CBFrontendFullscreen->setChecked(ffscr); |
48 Form->ui.pageOptions->CBFrontendFullscreen->setChecked(ffscr); |
49 |
49 |
50 Form->ui.pageOptions->CBReduceQuality->setChecked(value("video/reducequality", false).toBool()); |
50 Form->ui.pageOptions->CBReduceQuality->setChecked(value("video/reducequality", false).toBool()); |
51 Form->ui.pageOptions->CBEnableStereo->setChecked(value("video/anaglyph", false).toBool()); |
|
52 Form->ui.pageOptions->CBFrontendEffects->setChecked(frontendEffects); |
51 Form->ui.pageOptions->CBFrontendEffects->setChecked(frontendEffects); |
53 Form->ui.pageOptions->CBEnableSound->setChecked(value("audio/sound", true).toBool()); |
52 Form->ui.pageOptions->CBEnableSound->setChecked(value("audio/sound", true).toBool()); |
54 Form->ui.pageOptions->CBEnableFrontendSound->setChecked(value("frontend/sound", true).toBool()); |
53 Form->ui.pageOptions->CBEnableFrontendSound->setChecked(value("frontend/sound", true).toBool()); |
55 #ifdef _WIN32 |
54 #ifdef _WIN32 |
56 // Form->ui.pageOptions->CBHardwareSound->setChecked(value("audio/hardware", false).toBool()); |
55 // Form->ui.pageOptions->CBHardwareSound->setChecked(value("audio/hardware", false).toBool()); |
115 { |
114 { |
116 setValue("video/resolution", Form->ui.pageOptions->CBResolution->currentText()); |
115 setValue("video/resolution", Form->ui.pageOptions->CBResolution->currentText()); |
117 setValue("video/fullscreen", vid_Fullscreen()); |
116 setValue("video/fullscreen", vid_Fullscreen()); |
118 |
117 |
119 setValue("video/reducequality", isReducedQuality()); |
118 setValue("video/reducequality", isReducedQuality()); |
120 setValue("video/anaglyph", isStereoEnabled()); |
|
121 |
119 |
122 setValue("frontend/effects", isFrontendEffects()); |
120 setValue("frontend/effects", isFrontendEffects()); |
123 |
121 |
124 setValue("misc/weaponTooltips", isWeaponTooltip()); |
122 setValue("misc/weaponTooltips", isWeaponTooltip()); |
125 |
123 |
236 bool GameUIConfig::isAltDamageEnabled() |
234 bool GameUIConfig::isAltDamageEnabled() |
237 { |
235 { |
238 return Form->ui.pageOptions->CBAltDamage->isChecked(); |
236 return Form->ui.pageOptions->CBAltDamage->isChecked(); |
239 } |
237 } |
240 |
238 |
241 bool GameUIConfig::isStereoEnabled() const |
|
242 { |
|
243 return Form->ui.pageOptions->CBEnableStereo->isChecked(); |
|
244 } |
|
245 |
|
246 bool GameUIConfig::appendDateTimeToRecordName() |
239 bool GameUIConfig::appendDateTimeToRecordName() |
247 { |
240 { |
248 return Form->ui.pageOptions->CBNameWithDate->isChecked(); |
241 return Form->ui.pageOptions->CBNameWithDate->isChecked(); |
249 } |
242 } |
250 |
243 |