equal
deleted
inserted
replaced
46 Form->ui.pageOptions->CBFrontendFullscreen->setChecked(ffscr); |
46 Form->ui.pageOptions->CBFrontendFullscreen->setChecked(ffscr); |
47 |
47 |
48 Form->ui.pageOptions->CBReduceQuality->setChecked(value("video/reducequality", false).toBool()); |
48 Form->ui.pageOptions->CBReduceQuality->setChecked(value("video/reducequality", false).toBool()); |
49 Form->ui.pageOptions->CBFrontendEffects->setChecked(frontendEffects); |
49 Form->ui.pageOptions->CBFrontendEffects->setChecked(frontendEffects); |
50 Form->ui.pageOptions->CBEnableSound->setChecked(value("audio/sound", true).toBool()); |
50 Form->ui.pageOptions->CBEnableSound->setChecked(value("audio/sound", true).toBool()); |
|
51 Form->ui.pageOptions->CBHardwareSound->setChecked(value("audio/hardware", false).toBool()); |
51 Form->ui.pageOptions->CBEnableMusic->setChecked(value("audio/music", true).toBool()); |
52 Form->ui.pageOptions->CBEnableMusic->setChecked(value("audio/music", true).toBool()); |
52 Form->ui.pageOptions->volumeBox->setValue(value("audio/volume", 100).toUInt()); |
53 Form->ui.pageOptions->volumeBox->setValue(value("audio/volume", 100).toUInt()); |
53 |
54 |
54 QString netNick = value("net/nick", "").toString(); |
55 QString netNick = value("net/nick", "").toString(); |
55 if (netNick.isEmpty()) |
56 if (netNick.isEmpty()) |
118 } else { |
119 } else { |
119 //resizeToConfigValues(); // TODO: why this has been made? |
120 //resizeToConfigValues(); // TODO: why this has been made? |
120 } |
121 } |
121 |
122 |
122 setValue("audio/sound", isSoundEnabled()); |
123 setValue("audio/sound", isSoundEnabled()); |
|
124 setValue("audio/hardware", isSoundHardware()); |
123 setValue("audio/music", isMusicEnabled()); |
125 setValue("audio/music", isMusicEnabled()); |
124 setValue("audio/volume", Form->ui.pageOptions->volumeBox->value()); |
126 setValue("audio/volume", Form->ui.pageOptions->volumeBox->value()); |
125 |
127 |
126 setValue("net/nick", netNick()); |
128 setValue("net/nick", netNick()); |
127 setValue("net/ip", *netHost); |
129 setValue("net/ip", *netHost); |
175 bool GameUIConfig::isSoundEnabled() |
177 bool GameUIConfig::isSoundEnabled() |
176 { |
178 { |
177 return Form->ui.pageOptions->CBEnableSound->isChecked(); |
179 return Form->ui.pageOptions->CBEnableSound->isChecked(); |
178 } |
180 } |
179 |
181 |
|
182 bool GameUIConfig::isSoundHardware() |
|
183 { |
|
184 return Form->ui.pageOptions->CBHardwareSound->isChecked(); |
|
185 } |
|
186 |
180 bool GameUIConfig::isMusicEnabled() |
187 bool GameUIConfig::isMusicEnabled() |
181 { |
188 { |
182 return Form->ui.pageOptions->CBEnableMusic->isChecked(); |
189 return Form->ui.pageOptions->CBEnableMusic->isChecked(); |
183 } |
190 } |
184 |
191 |