src/settings_gui.cpp
changeset 6492 286a52449b54
parent 6486 7d2ae0a167fb
child 6543 57dfb0d16b10
equal deleted inserted replaced
6491:00dc414c909d 6492:286a52449b54
   113 		SetDParam(8, SPECSTR_SCREENSHOT_START + _cur_screenshot_format);
   113 		SetDParam(8, SPECSTR_SCREENSHOT_START + _cur_screenshot_format);
   114 		SetWindowWidgetLoweredState(w, 28, _fullscreen);
   114 		SetWindowWidgetLoweredState(w, 28, _fullscreen);
   115 
   115 
   116 		DrawWindowWidgets(w);
   116 		DrawWindowWidgets(w);
   117 		DrawString(20, 175, STR_OPTIONS_FULLSCREEN, 0); // fullscreen
   117 		DrawString(20, 175, STR_OPTIONS_FULLSCREEN, 0); // fullscreen
   118 	}	break;
   118 	} break;
   119 
   119 
   120 	case WE_CLICK:
   120 	case WE_CLICK:
   121 		switch (e->we.click.widget) {
   121 		switch (e->we.click.widget) {
   122 		case 4: case 5: /* Setup currencies dropdown */
   122 		case 4: case 5: /* Setup currencies dropdown */
   123 			ShowDropDownMenu(w, BuildCurrencyDropdown(), _opt_ptr->currency, 5, _game_mode == GM_MENU ? 0 : ~GetMaskOfAllowedCurrencies(), 0);;
   123 			ShowDropDownMenu(w, BuildCurrencyDropdown(), _opt_ptr->currency, 5, _game_mode == GM_MENU ? 0 : ~GetMaskOfAllowedCurrencies(), 0);;
   496 			((int*)&_opt_mod_temp.diff)[btn] = val;
   496 			((int*)&_opt_mod_temp.diff)[btn] = val;
   497 			RaiseWindowWidget(w, _opt_mod_temp.diff_level + 3);
   497 			RaiseWindowWidget(w, _opt_mod_temp.diff_level + 3);
   498 			SetDifficultyLevel(3, &_opt_mod_temp); // set difficulty level to custom
   498 			SetDifficultyLevel(3, &_opt_mod_temp); // set difficulty level to custom
   499 			LowerWindowWidget(w, _opt_mod_temp.diff_level + 3);
   499 			LowerWindowWidget(w, _opt_mod_temp.diff_level + 3);
   500 			SetWindowDirty(w);
   500 			SetWindowDirty(w);
   501 		}	break;
   501 		} break;
   502 		case 3: case 4: case 5: case 6: /* Easy / Medium / Hard / Custom */
   502 		case 3: case 4: case 5: case 6: /* Easy / Medium / Hard / Custom */
   503 			// temporarily change difficulty level
   503 			// temporarily change difficulty level
   504 			RaiseWindowWidget(w, _opt_mod_temp.diff_level + 3);
   504 			RaiseWindowWidget(w, _opt_mod_temp.diff_level + 3);
   505 			SetDifficultyLevel(e->we.click.widget - 3, &_opt_mod_temp);
   505 			SetDifficultyLevel(e->we.click.widget - 3, &_opt_mod_temp);
   506 			LowerWindowWidget(w, _opt_mod_temp.diff_level + 3);
   506 			LowerWindowWidget(w, _opt_mod_temp.diff_level + 3);