浏览代码

田野调查增加规则描述,恭喜获得界面ui调整

huangxiaoyue 2 年之前
父节点
当前提交
f87390d2ba

+ 3 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Field/UI_FieldUI.cs

@@ -21,6 +21,7 @@ namespace UI.Field
         public GProgressBar m_proTaskReward;
         public GLoader m_loaTaskReward;
         public GGroup m_grpTaskReward;
+        public GButton m_btnRule;
         public GTextField m_txtTime;
         public GGroup m_grpTime;
         public const string URL = "ui://5oh3t7988jo90";
@@ -84,6 +85,7 @@ namespace UI.Field
             m_proTaskReward = (GProgressBar)comp.GetChild("proTaskReward");
             m_loaTaskReward = (GLoader)comp.GetChild("loaTaskReward");
             m_grpTaskReward = (GGroup)comp.GetChild("grpTaskReward");
+            m_btnRule = (GButton)comp.GetChild("btnRule");
             m_txtTime = (GTextField)comp.GetChild("txtTime");
             m_grpTime = (GGroup)comp.GetChild("grpTime");
         }
@@ -106,6 +108,7 @@ namespace UI.Field
             m_proTaskReward = null;
             m_loaTaskReward = null;
             m_grpTaskReward = null;
+            m_btnRule = null;
             m_txtTime = null;
             m_grpTime = null;
             if(disposeTarget && target != null)

+ 2 - 1
GameClient/Assets/Game/HotUpdate/Views/Field/FieldView.cs

@@ -48,7 +48,8 @@ namespace GFGGame
             _ui.m_btn2.target.onClick.Add(OnDifficultyChange);
             // _ui.m_c1.onChanged.Add(OnDifficultyChange);
             _valueBarController = new ValueBarController(_ui.m_comValueBar);
-
+            _ui.m_btnRule.onClick.Add(RuleController.ShowRuleView);
+            _ui.m_btnRule.data = 300016;
         }
         protected override void AddEventListener()
         {

二进制
GameClient/Assets/ResIn/UI/CommonGame/CommonGame_fui.bytes


二进制
GameClient/Assets/ResIn/UI/Field/Field_fui.bytes