equal
deleted
inserted
replaced
141 |
141 |
142 seedChanged(pMapContainer->getCurrentSeed()); |
142 seedChanged(pMapContainer->getCurrentSeed()); |
143 templateFilterChanged(pMapContainer->getTemplateFilter()); |
143 templateFilterChanged(pMapContainer->getTemplateFilter()); |
144 themeChanged(pMapContainer->getCurrentTheme()); |
144 themeChanged(pMapContainer->getCurrentTheme()); |
145 |
145 |
|
146 schemeChanged(GameSchemes->currentIndex()); |
|
147 |
146 // map must be the last |
148 // map must be the last |
147 QString map = pMapContainer->getCurrentMap(); |
149 QString map = pMapContainer->getCurrentMap(); |
148 if (map.size()) |
150 if (map.size()) |
149 mapChanged(map); |
151 mapChanged(map); |
150 } |
152 } |
164 } |
166 } |
165 if (param == "THEME") { |
167 if (param == "THEME") { |
166 pMapContainer->setTheme(value); |
168 pMapContainer->setTheme(value); |
167 return; |
169 return; |
168 } |
170 } |
169 if (param == "HEALTH") { |
|
170 // SB_InitHealth->setValue(value.toUInt()); |
|
171 return; |
|
172 } |
|
173 if (param == "TURNTIME") { |
|
174 // SB_TurnTime->setValue(value.toUInt()); |
|
175 return; |
|
176 } |
|
177 if (param == "SD_TURNS") { |
|
178 // SB_SuddenDeath->setValue(value.toUInt()); |
|
179 return; |
|
180 } |
|
181 if (param == "CASEFACTOR") { |
|
182 // SB_CaseProb->setValue(value.toUInt()); |
|
183 return; |
|
184 } |
|
185 if (param == "FORTSMODE") { |
|
186 // CB_mode_Forts->setChecked(value.toUInt() != 0); |
|
187 return; |
|
188 } |
|
189 if (param == "DIVIDETEAMS") { |
|
190 // CB_teamsDivide->setChecked(value.toUInt() != 0); |
|
191 return; |
|
192 } |
|
193 if (param == "SOLIDLAND") { |
|
194 // CB_solid->setChecked(value.toUInt() != 0); |
|
195 return; |
|
196 } |
|
197 if (param == "BORDER") { |
|
198 // CB_border->setChecked(value.toUInt() != 0); |
|
199 return; |
|
200 } |
|
201 if (param == "TEMPLATE") { |
171 if (param == "TEMPLATE") { |
202 pMapContainer->setTemplateFilter(value.toUInt()); |
172 pMapContainer->setTemplateFilter(value.toUInt()); |
203 return; |
173 return; |
204 } |
174 } |
205 } |
175 } |
209 if (param == "AMMO") { |
179 if (param == "AMMO") { |
210 setNetAmmo(slValue[0], slValue[1]); |
180 setNetAmmo(slValue[0], slValue[1]); |
211 return; |
181 return; |
212 } |
182 } |
213 } |
183 } |
|
184 |
|
185 qWarning("Got bad config param from net"); |
214 } |
186 } |
215 |
187 |
216 void GameCFGWidget::ammoChanged(int index) |
188 void GameCFGWidget::ammoChanged(int index) |
217 { |
189 { |
218 if (index >= 0) |
190 if (index >= 0) |