src/settings_gui.cpp
changeset 8512 33f0f6cac1a8
parent 8505 c175d34fe020
child 8551 f0bcd6753287
equal deleted inserted replaced
8511:abb116ef8cd8 8512:33f0f6cac1a8
   555 			for (uint i = 0; i != GAME_DIFFICULTY_NUM; i++) {
   555 			for (uint i = 0; i != GAME_DIFFICULTY_NUM; i++) {
   556 				const GameSettingData *gsd = &_game_setting_info[i];
   556 				const GameSettingData *gsd = &_game_setting_info[i];
   557 				value = ((GDType*)&_opt_mod_temp.diff)[i];
   557 				value = ((GDType*)&_opt_mod_temp.diff)[i];
   558 
   558 
   559 				DrawArrowButtons(5, y, 3,
   559 				DrawArrowButtons(5, y, 3,
   560 						(diffic_d->clicked_button == i) ? 1 << diffic_d->clicked_increase : 0,
   560 						(diffic_d->clicked_button == i) ? 1 + !!diffic_d->clicked_increase : 0,
   561 						!(HasBit(disabled, i) || gsd->min == value),
   561 						!(HasBit(disabled, i) || gsd->min == value),
   562 						!(HasBit(disabled, i) || gsd->max == value));
   562 						!(HasBit(disabled, i) || gsd->max == value));
   563 
   563 
   564 				value += _game_setting_info[i].str;
   564 				value += _game_setting_info[i].str;
   565 				if (i == 4) value *= 1000; // XXX - handle currency option
   565 				if (i == 4) value *= 1000; // XXX - handle currency option