equal
deleted
inserted
replaced
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);; |
500 ((int*)&_opt_mod_temp.diff)[btn] = val; |
500 ((int*)&_opt_mod_temp.diff)[btn] = val; |
501 RaiseWindowWidget(w, _opt_mod_temp.diff_level + 3); |
501 RaiseWindowWidget(w, _opt_mod_temp.diff_level + 3); |
502 SetDifficultyLevel(3, &_opt_mod_temp); // set difficulty level to custom |
502 SetDifficultyLevel(3, &_opt_mod_temp); // set difficulty level to custom |
503 LowerWindowWidget(w, _opt_mod_temp.diff_level + 3); |
503 LowerWindowWidget(w, _opt_mod_temp.diff_level + 3); |
504 SetWindowDirty(w); |
504 SetWindowDirty(w); |
505 } break; |
505 } break; |
506 case 3: case 4: case 5: case 6: /* Easy / Medium / Hard / Custom */ |
506 case 3: case 4: case 5: case 6: /* Easy / Medium / Hard / Custom */ |
507 // temporarily change difficulty level |
507 // temporarily change difficulty level |
508 RaiseWindowWidget(w, _opt_mod_temp.diff_level + 3); |
508 RaiseWindowWidget(w, _opt_mod_temp.diff_level + 3); |
509 SetDifficultyLevel(e->we.click.widget - 3, &_opt_mod_temp); |
509 SetDifficultyLevel(e->we.click.widget - 3, &_opt_mod_temp); |
510 LowerWindowWidget(w, _opt_mod_temp.diff_level + 3); |
510 LowerWindowWidget(w, _opt_mod_temp.diff_level + 3); |