public static void SetSkillPanelPivot(SkillPanelPivot _param) { MobaMessage message = MobaMessageManager.GetMessage((ClientMsg)26020, _param, 0f); MobaMessageManager.ExecuteMsg(message); Singleton <HUDModuleManager> .Instance.SetSkillPanelPivot(_param); }
public void SetSkillPivot(SkillPanelPivot skillPanelPivot) { if (skillPanelPivot == SkillPanelPivot.Bottom) { this.levelUpBtn = this.levelUpBtn_b; this.levelUpBtn_r.gameObject.SetActive(false); this.levelUpBtn_l.gameObject.SetActive(false); this.pointsGrid.transform.localPosition = Vector3.zero; this.MagicLabel.transform.parent.localPosition = new Vector3(39f, -55f, 0f); this.MagicLabel.transform.parent.GetComponent <UISprite>().flip = UISprite.Flip.Nothing; } else if (skillPanelPivot == SkillPanelPivot.Left) { this.levelUpBtn = this.levelUpBtn_l; this.levelUpBtn_r.gameObject.SetActive(false); this.levelUpBtn_b.gameObject.SetActive(false); this.pointsGrid.transform.localPosition = new Vector3(0f, 21f, 0f); this.MagicLabel.transform.parent.localPosition = new Vector3(39f, 52f, 0f); this.MagicLabel.transform.parent.GetComponent <UISprite>().flip = UISprite.Flip.Horizontally; } else if (skillPanelPivot == SkillPanelPivot.Right) { this.levelUpBtn = this.levelUpBtn_r; this.levelUpBtn_l.gameObject.SetActive(false); this.levelUpBtn_b.gameObject.SetActive(false); this.pointsGrid.transform.localPosition = new Vector3(0f, 21f, 0f); this.MagicLabel.transform.parent.localPosition = new Vector3(39f, 52f, 0f); this.MagicLabel.transform.parent.GetComponent <UISprite>().flip = UISprite.Flip.Horizontally; } UIEventListener.Get(this.levelUpBtn).onClick = new UIEventListener.VoidDelegate(this.OnClickLevelUpBtn); if (NewbieManager.Instance.IsForbidShowSkillLevelUp()) { if (this.levelUpBtn_b != null) { this.levelUpBtn_b.SetActive(false); } if (this.levelUpBtn_l != null) { this.levelUpBtn_l.SetActive(false); } if (this.levelUpBtn_r != null) { this.levelUpBtn_r.SetActive(false); } } }
public override void HandleAfterOpenView() { this.mModules.Clear(); this.JudgeIsVastMap(); this.skillPanelPivot = (SkillPanelPivot)ModelManager.Instance.Get_SettingData().skillPanelPivot; bool isReplayStart = GameManager.Instance.ReplayController.IsReplayStart; if (!Singleton <PvpManager> .Instance.IsObserver) { if (!isReplayStart) { this.OpenModule(EHUDModule.FPS, HUDModuleManager.ModuleCategory.HighFrequencyRefresh); this.OpenModule(EHUDModule.ActionIndicator, 0); this.OpenModule(EHUDModule.FunctionBtns, 0); } this.OpenModule(EHUDModule.BattleExploit, 0); this.OpenModule(EHUDModule.DeathTimer, HUDModuleManager.ModuleCategory.HighFrequencyRefresh); this.OpenModule(EHUDModule.Buff, HUDModuleManager.ModuleCategory.HighFrequencyRefresh); if (LevelManager.CurLevelId != "80007") { this.OpenModule(EHUDModule.PlayersIndicator, HUDModuleManager.ModuleCategory.Unstatic); } else { this.OpenModule(EHUDModule.ChaosBattleExploit, HUDModuleManager.ModuleCategory.Unstatic); } this.OpenModule(EHUDModule.AttackIndicator, 0); } this.OpenModule(EHUDModule.SiderTips, HUDModuleManager.ModuleCategory.HighFrequencyRefresh); this.OpenModule(EHUDModule.BattleEvent, HUDModuleManager.ModuleCategory.HighFrequencyRefresh); if (GlobalSettings.Instance.PvpSetting.isDebugSpeed) { this.OpenModule(EHUDModule.Debug, 0); } if (this.corManager == null) { this.corManager = new CoroutineManager(); } this.corManager.StartCoroutine(this.DelayControlStatic(2f), true); }
private void OnMsg_SetSkillPanelPivot(MobaMessage msg) { SkillPanelPivot skillPanelPivot = (SkillPanelPivot)((int)msg.Param); this.RefreshUI_rItemsPos(); }