|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | protected override void SelectBottomTab(int index) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | bool isOtherBattleInProgress = BattleManager.Instance.IsOtherBattleInProgress(); | 
|---|
|  |  |  | if (isOtherBattleInProgress) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | // 如果正在非主线战斗中,没满足解锁条件则不允许切换 | 
|---|
|  |  |  | } | 
|---|
|  |  |  | DisplayTopBar(index); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (index == 3) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | //挑战特殊显示逻辑 | 
|---|
|  |  |  | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | TabChangeEvent?.Invoke(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 如果点击当前已选中的标签,不做处理 | 
|---|
|  |  |  | if (functionOrder == index && currentSubUI != null) | 
|---|
|  |  |  | 
|---|
|  |  |  | // 根据选中的标签打开对应的界面 | 
|---|
|  |  |  | OpenSubUIByTabIndex(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | TabChangeEvent?.Invoke(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //战斗按钮动画 | 
|---|
|  |  |  | 
|---|
|  |  |  | protected override void OnTabButtonClicked(int index) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | this.index = index; | 
|---|
|  |  |  | int funcId = 32; | 
|---|
|  |  |  | bool isOtherBattleInProgress = BattleManager.Instance.IsOtherBattleInProgress(); | 
|---|
|  |  |  | // 如果正在非主线战斗中,没满足解锁条件则不允许切换 | 
|---|
|  |  |  | if (isOtherBattleInProgress && !FuncOpen.Instance.IsFuncOpen(funcId)) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | string tip = FuncOpen.Instance.GetErrorTip(funcId); | 
|---|
|  |  |  | SysNotifyMgr.Instance.ShowTip("SwitchOutOfBattle", tip); | 
|---|
|  |  |  | tabButtons[functionOrder].SelectBtn(); | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (index == 0) | 
|---|
|  |  |  | 
|---|
|  |  |  | UIManager.Instance.OpenWindow<GuildJoinWin>(); | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | DisplayTopBar(index); | 
|---|
|  |  |  | SelectBottomTab(index); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|