src/settings_gui.cpp
changeset 8319 80dc5454487b
parent 8284 ebdc5ba08874
child 8321 96c331ee5ac3
equal deleted inserted replaced
8318:74803dd94572 8319:80dc5454487b
   164 	switch (e->event) {
   164 	switch (e->event) {
   165 		case WE_PAINT: {
   165 		case WE_PAINT: {
   166 			int i;
   166 			int i;
   167 			StringID str = STR_02BE_DEFAULT;
   167 			StringID str = STR_02BE_DEFAULT;
   168 
   168 
   169 			w->SetWidgetDisabledState(21, !(_vehicle_design_names & 1));
   169 			w->SetWidgetDisabledState(GAMEOPT_VEHICLENAME_SAVE, !(_vehicle_design_names & 1));
   170 			if (!w->IsWidgetDisabled(21)) str = STR_02BF_CUSTOM;
   170 			if (!w->IsWidgetDisabled(GAMEOPT_VEHICLENAME_SAVE)) str = STR_02BF_CUSTOM;
   171 			SetDParam(0, str);
   171 			SetDParam(0, str);
   172 			SetDParam(1, _currency_specs[_opt_ptr->currency].name);
   172 			SetDParam(1, _currency_specs[_opt_ptr->currency].name);
   173 			SetDParam(2, STR_UNITS_IMPERIAL + _opt_ptr->units);
   173 			SetDParam(2, STR_UNITS_IMPERIAL + _opt_ptr->units);
   174 			SetDParam(3, STR_02E9_DRIVE_ON_LEFT + _opt_ptr->road_side);
   174 			SetDParam(3, STR_02E9_DRIVE_ON_LEFT + _opt_ptr->road_side);
   175 			SetDParam(4, TownName(_opt_ptr->town_name));
   175 			SetDParam(4, TownName(_opt_ptr->town_name));