src/dock_gui.cpp
branchcustombridgeheads
changeset 5650 aefc131bf5ce
parent 5649 55c8267c933f
child 5933 0835f3342b79
equal deleted inserted replaced
5649:55c8267c933f 5650:aefc131bf5ce
   252 	case WE_CLICK:
   252 	case WE_CLICK:
   253 		switch (e->we.click.widget) {
   253 		switch (e->we.click.widget) {
   254 			case 3:
   254 			case 3:
   255 			case 4:
   255 			case 4:
   256 				RaiseWindowWidget(w, _station_show_coverage + 3);
   256 				RaiseWindowWidget(w, _station_show_coverage + 3);
   257 				_station_show_coverage = e->we.click.widget - 3;
   257 				_station_show_coverage = (e->we.click.widget != 3);
   258 				LowerWindowWidget(w, _station_show_coverage + 3);
   258 				LowerWindowWidget(w, _station_show_coverage + 3);
   259 				SndPlayFx(SND_15_BEEP);
   259 				SndPlayFx(SND_15_BEEP);
   260 				SetWindowDirty(w);
   260 				SetWindowDirty(w);
   261 				break;
   261 				break;
   262 		}
   262 		}
   326 	case WE_CLICK: {
   326 	case WE_CLICK: {
   327 		switch (e->we.click.widget) {
   327 		switch (e->we.click.widget) {
   328 		case 3:
   328 		case 3:
   329 		case 4:
   329 		case 4:
   330 			RaiseWindowWidget(w, _ship_depot_direction + 3);
   330 			RaiseWindowWidget(w, _ship_depot_direction + 3);
   331 			_ship_depot_direction = e->we.click.widget - 3;
   331 			_ship_depot_direction = (e->we.click.widget == 3 ? AXIS_X : AXIS_Y);
   332 			LowerWindowWidget(w, _ship_depot_direction + 3);
   332 			LowerWindowWidget(w, _ship_depot_direction + 3);
   333 			SndPlayFx(SND_15_BEEP);
   333 			SndPlayFx(SND_15_BEEP);
   334 			UpdateDocksDirection();
   334 			UpdateDocksDirection();
   335 			SetWindowDirty(w);
   335 			SetWindowDirty(w);
   336 			break;
   336 			break;