zhangyuqian 1 жил өмнө
parent
commit
e8c6fad3b5

+ 3 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/TimeTracing/UI_TimeTracingLevelRankUI.cs

@@ -15,6 +15,7 @@ namespace UI.TimeTracing
         public GTextField m_txtTips;
         public GTextField m_timeText;
         public UI_TimeTracingLevelRankItem m_myRank;
+        public GLoader m_rulerBtn;
         public const string URL = "ui://gayfh946l8151f";
         public const string PACKAGE_NAME = "TimeTracing";
         public const string RES_NAME = "TimeTracingLevelRankUI";
@@ -70,6 +71,7 @@ namespace UI.TimeTracing
             m_txtTips = (GTextField)comp.GetChild("txtTips");
             m_timeText = (GTextField)comp.GetChild("timeText");
             m_myRank = (UI_TimeTracingLevelRankItem)UI_TimeTracingLevelRankItem.Create(comp.GetChild("myRank"));
+            m_rulerBtn = (GLoader)comp.GetChild("rulerBtn");
         }
         public void Dispose(bool disposeTarget = false)
         {
@@ -82,6 +84,7 @@ namespace UI.TimeTracing
             m_timeText = null;
             m_myRank.Dispose();
             m_myRank = null;
+            m_rulerBtn = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 2 - 0
GameClient/Assets/Game/HotUpdate/Views/TimeTracing/TimeTracingLevelRankView.cs

@@ -32,6 +32,7 @@ namespace GFGGame
             viewAnimationType = EnumViewAnimationType.ZOOM_CENTER;
             _ui.m_btnBack.onClick.Add(OnClickBtnBack);
             _ui.m_c1.onChanged.Add(OnTabChange);
+            _ui.m_rulerBtn.onClick.Add(RuleController.ShowRuleView);
             _ui.m_listRank.SetVirtual();
             _ui.m_listRank.itemRenderer = RenderListItem;
         }
@@ -40,6 +41,7 @@ namespace GFGGame
             base.OnShown();
             LevelID = (int)this.viewData;
             curTime = (int)(TimeTracingDataManager.RefreshTime - TimeHelper.ServerNow())/1000;
+            _ui.m_rulerBtn.data = 300031;
             UpdateView();
             if (curTime > 60)
             {

BIN
GameClient/Assets/ResIn/UI/TimeTracing/TimeTracing_fui.bytes