private bool isValidSetDeck(RebellionFleetType iType, DeckModel model) { DebugUtils.Log("isValidSetDeck::" + iType); bool flag = !_uiParticipatingFleetSelector.IsAlreadySetFleet(_uiFleetSelector.nowSelectedDeck) && _uiFleetSelector.nowSelectedDeck.GetFlagShip() != null; RebellionManager rebellionManager = StrategyTaskManager.GetStrategyRebellion().GetRebellionManager(); bool flag2 = false; List <IsGoCondition> list = null; switch (iType) { case RebellionFleetType.VanguardSupportFleet: list = rebellionManager.IsValidMissionSub(model.Id); break; case RebellionFleetType.DecisiveBattleSupportFleet: list = rebellionManager.IsValid_MissionMain(model.Id); break; } if (list == null || list.Count == 0) { flag2 = true; } else { CommonPopupDialog.Instance.StartPopup(Util.getCancelReason(list[0])); } return(flag && flag2); }
public bool Init(RebellionFleetType iType, DelDicideRebellionOrganizeSelectBtn decideDelegate) { this._iType = iType; this._uiLabel.text = this.GetLabelString(iType); this.index = (int)iType; this.SetFleetInfo(null); this.delDicideRebellionOrganizeSelectBtn = decideDelegate; this._clsDelta.isFlasing = false; this.SetScale(iType); return(true); }
private bool SetRebellionParticipatingFleet(RebellionFleetType iType, DeckModel model) { if (isValidSetDeck(iType, model)) { SoundUtils.PlaySE(SEFIleInfos.CommonEnter1); _uiParticipatingFleetSelector.SetFleetInfo(iType, _uiFleetSelector.nowSelectedDeck); _uiParticipatingFleetSelector.ChkSortieStartState(); return(true); } return(false); }
private string GetLabelString(RebellionFleetType iType) { switch (iType) { case RebellionFleetType.VanguardFleet: return("前衛艦隊"); case RebellionFleetType.VanguardSupportFleet: return("前衛支援艦隊"); case RebellionFleetType.DecisiveBattlePrimaryFleet: return("決戦主力艦隊"); case RebellionFleetType.DecisiveBattleSupportFleet: return("決戦支援艦隊"); default: return(string.Empty); } }
private void SetScale(RebellionFleetType iType) { base.get_transform().set_localScale((iType != RebellionFleetType.DecisiveBattleSupportFleet && iType != RebellionFleetType.VanguardSupportFleet) ? Vector3.get_one() : (Vector3.get_one() * 0.87f)); this._clsDelta.transform.set_localScale((iType != RebellionFleetType.DecisiveBattleSupportFleet && iType != RebellionFleetType.VanguardSupportFleet) ? Vector3.get_one() : (Vector3.get_one() * 1.13f)); this._uiLabel.get_transform().set_localScale((iType != RebellionFleetType.DecisiveBattleSupportFleet && iType != RebellionFleetType.VanguardSupportFleet) ? Vector3.get_one() : (Vector3.get_one() * 1.13f)); }
private void SetScale(RebellionFleetType iType) { base.transform.localScale = ((iType != RebellionFleetType.DecisiveBattleSupportFleet && iType != RebellionFleetType.VanguardSupportFleet) ? Vector3.one : (Vector3.one * 0.87f)); _clsDelta.transform.localScale = ((iType != RebellionFleetType.DecisiveBattleSupportFleet && iType != RebellionFleetType.VanguardSupportFleet) ? Vector3.one : (Vector3.one * 1.13f)); _uiLabel.transform.localScale = ((iType != RebellionFleetType.DecisiveBattleSupportFleet && iType != RebellionFleetType.VanguardSupportFleet) ? Vector3.one : (Vector3.one * 1.13f)); }
public void SetFleetInfo(RebellionFleetType iType, DeckModel model) { DebugUtils.Log(string.Format("{0} - {1}", iType, (model == null) ? "Null" : model.ToString())); _listFleetInfos[(int)iType].SetFleetInfo(model); }