protected override void OnPanelMessage(string panelName, string msgType, string[] msgParams)
		{
			if (FleetUI.HandleFleetAndPlanetWidgetInput(this.App, "fleetDetailsWidget", panelName))
				this.UpdateCanConfirmMission();
			else if (msgType == "list_sel_changed")
			{
				if (panelName == "gameFleetList" && msgParams.Length > 0 && !string.IsNullOrEmpty(msgParams[0]))
					this.SelectedFleet = int.Parse(msgParams[0]);
				this.UpdateCanConfirmMission();
			}
			else
				base.OnPanelMessage(panelName, msgType, msgParams);
		}
Exemple #2
0
 protected override void OnPanelMessage(string panelName, string msgType, string[] msgParams)
 {
     if (this._supportTripsSpinner.TryPanelMessage(panelName, msgType, msgParams, PanelBinding.PanelMessageTargetFlags.Self | PanelBinding.PanelMessageTargetFlags.Recursive))
     {
         this._supportTripsSpinner.SetValue(Math.Max(this._supportTripsSpinner.MinValue, Math.Min(this._supportTripsSpinner.MaxValue, this._supportTripsSpinner.Value)));
     }
     else if (FleetUI.HandleFleetAndPlanetWidgetInput(this.App, "fleetDetailsWidget", panelName))
     {
         this.UpdateCanConfirmMission();
     }
     else if (msgType == "mapicon_clicked")
     {
         if (!(panelName == "partMiniSystem") || !this.App.GameDatabase.IsSurveyed(this.App.LocalPlayer.ID, this.TargetSystem))
         {
             return;
         }
         this.SetSelectedPlanet(int.Parse(msgParams[0]), panelName);
     }
     else if (msgType == "list_sel_changed")
     {
         if (panelName == "overlayPlanetList")
         {
             int num = 0;
             if (msgParams.Length > 0 && !string.IsNullOrEmpty(msgParams[0]))
             {
                 num = int.Parse(msgParams[0]);
             }
             this.SetSelectedPlanet(num, panelName);
         }
         else if (panelName == "gameFleetList" && msgParams.Length > 0 && !string.IsNullOrEmpty(msgParams[0]))
         {
             this.SelectedFleet = int.Parse(msgParams[0]);
         }
         this.UpdateCanConfirmMission();
     }
     else
     {
         base.OnPanelMessage(panelName, msgType, msgParams);
     }
 }