浏览代码

每日任务

zhaoyang 3 年之前
父节点
当前提交
fbe68ac71e

+ 6 - 5
FGUIProject/assets/DailyTask/DailyTaskUI.xml

@@ -12,11 +12,12 @@
       <item/>
       <item/>
     </list>
-    <image id="n3_wet2" name="n3" src="wet22h" fileName="images/mrqd_kdi.png" xy="253,494" group="n10_wet2"/>
-    <text id="n7_wet2" name="txtDesc0" xy="280,501" size="214,44" group="n10_wet2" fontSize="32" color="#d5c9a5" text="今日活跃度40 "/>
-    <text id="n8_wet2" name="txtDesc1" xy="523,501" size="300,44" group="n10_wet2" fontSize="32" color="#d5c9a5" autoSize="none" text=",满40活跃度可领奖"/>
-    <loader id="n9_wet2" name="loaIcon" xy="485,501" size="42,42" group="n10_wet2" url="ui://eg2y0ldply9g8m" autoSize="true"/>
-    <group id="n10_wet2" name="n10" xy="253,494" size="588,58" advanced="true">
+    <image id="n3_wet2" name="n3" src="wet22h" fileName="images/mrqd_kdi.png" xy="246,494" group="n10_wet2"/>
+    <text id="n7_wet2" name="txtDesc0" xy="262,501" size="214,44" group="n11_slkg" fontSize="32" color="#d5c9a5" text="今日活跃度40 "/>
+    <loader id="n9_wet2" name="loaIcon" xy="476,501" size="42,42" group="n11_slkg" url="ui://eg2y0ldply9g8m" autoSize="true"/>
+    <text id="n8_wet2" name="txtDesc1" xy="518,501" size="300,44" group="n11_slkg" fontSize="32" color="#d5c9a5" autoSize="none" text=",满40活跃度可领奖"/>
+    <group id="n11_slkg" name="n11" xy="262,501" size="556,44" group="n10_wet2" advanced="true" layout="hz" excludeInvisibles="true"/>
+    <group id="n10_wet2" name="n10" xy="246,494" size="588,58" advanced="true">
       <relation target="" sidePair="center-center,top-top"/>
     </group>
     <list id="n0_lh8v" name="list" xy="70,659" size="940,1040" overflow="scroll" lineGap="40" defaultItem="ui://5mpsibzzlh8v5" align="center" autoClearItems="true">

+ 3 - 3
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/DailyTask/UI_DailyTaskUI.cs

@@ -10,8 +10,8 @@ namespace UI.DailyTask
         public GImage m_bg;
         public GList m_listReward;
         public GTextField m_txtDesc0;
-        public GTextField m_txtDesc1;
         public GLoader m_loaIcon;
+        public GTextField m_txtDesc1;
         public GList m_list;
         public UI_Button3 m_btnGetAll;
         public GComponent m_comValueBar;
@@ -66,8 +66,8 @@ namespace UI.DailyTask
             m_bg = (GImage)comp.GetChild("bg");
             m_listReward = (GList)comp.GetChild("listReward");
             m_txtDesc0 = (GTextField)comp.GetChild("txtDesc0");
-            m_txtDesc1 = (GTextField)comp.GetChild("txtDesc1");
             m_loaIcon = (GLoader)comp.GetChild("loaIcon");
+            m_txtDesc1 = (GTextField)comp.GetChild("txtDesc1");
             m_list = (GList)comp.GetChild("list");
             m_btnGetAll = (UI_Button3)UI_Button3.Create(comp.GetChild("btnGetAll"));
             m_comValueBar = (GComponent)comp.GetChild("comValueBar");
@@ -78,8 +78,8 @@ namespace UI.DailyTask
             m_bg = null;
             m_listReward = null;
             m_txtDesc0 = null;
-            m_txtDesc1 = null;
             m_loaIcon = null;
+            m_txtDesc1 = null;
             m_list = null;
             m_btnGetAll.Dispose();
             m_btnGetAll = null;

+ 2 - 1
GameClient/Assets/Game/HotUpdate/Views/DailyTask/DailyTaskView.cs

@@ -43,10 +43,11 @@ namespace GFGGame
         {
             base.OnShown();
             _valueBarController.OnShown();
-
             _rewardCfgs = new List<DailyActiveRewardCfg>(DailyActiveRewardCfgArray.Instance.dataArray);
             UpdateList();
             UpdateReward();
+            _ui.m_list.ScrollToView(0);
+
         }
 
         protected override void OnHide()

二进制
GameClient/Assets/ResIn/UI/DailyTask/DailyTask_fui.bytes