| | |
| | | |
| | | m_TitleIcon.SetSprite(WindowConfig.GetTitleIconKey(name)); |
| | | m_TitleIcon.SetNativeSize(); |
| | | |
| | | PlayerDatas.Instance.playerDataRefreshEvent += OnPlayerDataUpdate; |
| | | |
| | | } |
| | | |
| | | protected override void AddListeners() |
| | |
| | | m_Diamond = this.GetComponent<Text>("Pivot/Container_BackGround/FollowStoreBottom/GoldCountBG/CountText"); |
| | | m_BindDiamond = this.GetComponent<Text>("Pivot/Container_BackGround/FollowStoreBottom/GoldPaperCountBG/CountText"); |
| | | |
| | | PlayerDatas.Instance.playerDataRefreshEvent += OnPlayerDataUpdate; |
| | | |
| | | UpdateMoney(); |
| | | } |
| | | |
| | |
| | | |
| | | protected override void OnPreClose() |
| | | { |
| | | PlayerDatas.Instance.playerDataRefreshEvent -= OnPlayerDataUpdate; |
| | | CloseSubWindows(); |
| | | } |
| | | |
| | |
| | | m_Group.SetFunctionButtonActive(order, isShow); |
| | | } |
| | | |
| | | public RedPointState GetFunctionButtonRedPointState(int order) |
| | | { |
| | | return m_Group.GetFunctionButtonRedPointState(order); |
| | | } |
| | | |
| | | public void FunctionButtonInvoke(int order) |
| | | { |
| | | m_Group.TriggerByOrder(order); |
| | | m_Group.GotoOrder(order); |
| | | } |
| | | |
| | | private void OnPlayerDataUpdate(PlayerDataType type) |
| | | { |
| | | switch (type) |