소스 검색

限时累充ui

zhaoyang 2 년 전
부모
커밋
5cbcd27290

+ 2 - 1
FGUIProject/assets/CommonGame/components/BtnBack0.xml

@@ -4,7 +4,8 @@
   <displayList>
     <loader id="n4_uyux" name="loaBg" xy="-35,0" size="578,116" touchable="false" url="ui://eg2y0ldpuyuxtj8" autoSize="true"/>
     <loader id="n3_uyux" name="n3" xy="0,-11" size="111,96" url="ui://eg2y0ldpa0cftl1" autoSize="true"/>
-    <loader id="n5_uyux" name="icon" xy="99,10" pivot="0.5,0" size="213,57" url="ui://eg2y0ldpidkdtnb" autoSize="true"/>
+    <loader id="n5_uyux" name="icon" xy="112,16" pivot="0.5,0.5" size="157,45" align="center" vAlign="middle" fill="scale"/>
+    <text id="n6_idkd" name="title" xy="187,10" pivot="0.5,0.5" size="10,54" font="ui://eg2y0ldpa0cftkv" fontSize="40" color="#ffebc7" strokeColor="#c99954" strokeSize="2" text=""/>
   </displayList>
   <Button/>
 </component>

+ 16 - 16
FGUIProject/assets/DailyWelfare/LimitChargeUI.xml

@@ -1,11 +1,17 @@
 <?xml version="1.0" encoding="utf-8"?>
-<component size="1080,1920">
+<component size="1080,1920" overflow="hidden">
   <displayList>
-    <image id="n8_idkd" name="n8" src="nyhm8" fileName="imagesNew/qrhd_db.png" pkg="eg2y0ldp" xy="0,791">
-      <relation target="" sidePair="height-height,bottom-bottom"/>
-    </image>
-    <list id="n1_fqor" name="list" xy="15,983" size="1040,937" layout="flow_hz" overflow="scroll" lineGap="20" defaultItem="ui://t8nwuj7iidkd15">
-      <relation target="" sidePair="bottomext-bottom"/>
+    <loader id="n11_idkd" name="loaBg" xy="540,960" pivot="0.5,0.5" anchor="true" size="1080,2400" fill="scaleMatchWidth">
+      <relation target="" sidePair="width-width,height-height,center-center,middle-middle"/>
+    </loader>
+    <component id="n10_idkd" name="btnBack" src="9xlo8" fileName="components/BtnBack.xml" pkg="eg2y0ldp" xy="35,80"/>
+    <image id="n7_idkd" name="n7" src="nyhm5" fileName="imagesNew/sj_db.png" pkg="eg2y0ldp" xy="736,59" group="n6_idkd"/>
+    <text id="n5_idkd" name="txtTime" xy="820,58" pivot="0.5,0" size="193,44" group="n6_idkd" fontSize="32" color="#fffbf9" align="center" text="00天00时00分"/>
+    <group id="n6_idkd" name="n6" xy="736,58" size="366,45" advanced="true">
+      <relation target="" sidePair="top-top"/>
+    </group>
+    <image id="n8_idkd" name="n8" src="nyhm8" fileName="imagesNew/qrhd_db.png" pkg="eg2y0ldp" xy="0,791" group="n12_idkd"/>
+    <list id="n1_fqor" name="list" xy="15,974" size="1040,946" group="n12_idkd" layout="flow_hz" overflow="scroll" lineGap="20" defaultItem="ui://t8nwuj7iidkd15">
       <item/>
       <item/>
       <item/>
@@ -17,17 +23,11 @@
       <item/>
       <item/>
     </list>
-    <image id="n7_idkd" name="n7" src="nyhm5" fileName="imagesNew/sj_db.png" pkg="eg2y0ldp" xy="736,59" group="n6_idkd"/>
-    <text id="n5_idkd" name="txtTime" xy="790,58" pivot="0.5,0" size="193,44" group="n6_idkd" fontSize="32" color="#fffbf9" align="center" text="00天00时00分"/>
-    <group id="n6_idkd" name="n6" xy="736,58" size="366,45" advanced="true">
-      <relation target="" sidePair="top-top"/>
-    </group>
-    <component id="n2_fqor" name="btnCharge" src="idkdtna" fileName="components/BtnStyle004.xml" pkg="eg2y0ldp" xy="747,768">
+    <component id="n2_fqor" name="btnCharge" src="idkdtna" fileName="components/BtnStyle004.xml" pkg="eg2y0ldp" xy="747,768" group="n12_idkd">
       <Button title="前往充值"/>
     </component>
-    <component id="n9_idkd" name="btnRule" src="psphtkg" fileName="components/BtnRule.xml" pkg="eg2y0ldp" xy="1011,54" size="36,37" scale="1.5,1.5">
-      <Button icon="ui://eg2y0ldpo9gh4b"/>
-    </component>
-    <component id="n10_idkd" name="n10" src="uyuxtj5" fileName="components/BtnBack0.xml" pkg="eg2y0ldp" xy="35,80"/>
+    <group id="n12_idkd" name="n12" xy="0,768" size="1080,1152" advanced="true">
+      <relation target="" sidePair="bottom-bottom"/>
+    </group>
   </displayList>
 </component>

+ 2 - 2
FGUIProject/assets/DailyWelfare/components/Button1.xml

@@ -2,10 +2,10 @@
 <component size="1080,328" overflow="hidden" extention="Button">
   <controller name="button" pages="0,up,1,down,2,over,3,selectedOver" selected="0"/>
   <displayList>
-    <image id="n0_qik1" name="n0" src="qik1l" fileName="images/mrqd_db.png" xy="0,-112" size="1080,1697">
+    <image id="n0_qik1" name="n0" src="ox5bg" fileName="images/yzhd_dyt_5.png" xy="0,-107" size="1080,961" aspect="true">
       <relation target="" sidePair="width-width,height-height"/>
     </image>
-    <text id="n1_qik1" name="title" xy="479,207" size="122,0" fontSize="30" align="center" vAlign="middle" singleLine="true" text="每日签到">
+    <text id="n1_qik1" name="title" xy="479,207" size="122,41" fontSize="30" align="center" vAlign="middle" singleLine="true" text="每日签到">
       <relation target="" sidePair="width-width,height-height"/>
     </text>
   </displayList>

+ 1 - 1
FGUIProject/assets/DailyWelfare/components/ListChargeItem.xml

@@ -12,7 +12,7 @@
       <item/>
       <item/>
     </list>
-    <text id="n4_mbf1" name="txtTitle" xy="59,10" size="448,44" fontSize="32" color="#a07c49" text="巴拉巴拉限定摘星99次(0/99)"/>
+    <text id="n4_mbf1" name="txtTitle" xy="59,11" size="448,44" fontSize="32" color="#a07c49" text="巴拉巴拉限定摘星99次(0/99)"/>
     <component id="n7_mbf1" name="btnGetNone" src="mbf1tn7" fileName="components/BtnStyle003.xml" pkg="eg2y0ldp" xy="799,70">
       <gearDisplay controller="c1" pages="0"/>
       <Button title="领取"/>

+ 9 - 6
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/DailyWelfare/UI_LimitChargeUI.cs

@@ -7,10 +7,11 @@ namespace UI.DailyWelfare
     public partial class UI_LimitChargeUI
     {
         public GComponent target;
-        public GList m_list;
+        public GLoader m_loaBg;
+        public GButton m_btnBack;
         public GTextField m_txtTime;
+        public GList m_list;
         public GButton m_btnCharge;
-        public GButton m_btnRule;
         public const string URL = "ui://t8nwuj7iidkd14";
         public const string PACKAGE_NAME = "DailyWelfare";
         public const string RES_NAME = "LimitChargeUI";
@@ -58,17 +59,19 @@ namespace UI.DailyWelfare
 
         private void Init(GComponent comp)
         {
-            m_list = (GList)comp.GetChild("list");
+            m_loaBg = (GLoader)comp.GetChild("loaBg");
+            m_btnBack = (GButton)comp.GetChild("btnBack");
             m_txtTime = (GTextField)comp.GetChild("txtTime");
+            m_list = (GList)comp.GetChild("list");
             m_btnCharge = (GButton)comp.GetChild("btnCharge");
-            m_btnRule = (GButton)comp.GetChild("btnRule");
         }
         public void Dispose(bool disposeTarget = false)
         {
-            m_list = null;
+            m_loaBg = null;
+            m_btnBack = null;
             m_txtTime = null;
+            m_list = null;
             m_btnCharge = null;
-            m_btnRule = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/DailyWelfare/DailyWelfareView.cs

@@ -87,7 +87,7 @@ namespace GFGGame
         }
         private void OnBtnLimitChargeAddUpClick()
         {
-            ViewManager.Show<LimitChargeView>();
+            ViewManager.Show<LimitChargeView>(new object[] { typeof(DailyWelfareView).FullName, this.viewData });
         }
         private void OnBtnSevenDayLoginClick()
         {

+ 8 - 4
GameClient/Assets/Game/HotUpdate/Views/DailyWelfare/LimitChargeView.cs

@@ -30,14 +30,14 @@ namespace GFGGame
             packageName = UI_LimitChargeUI.PACKAGE_NAME;
             _ui = UI_LimitChargeUI.Create();
             this.viewCom = _ui.target;
-            this.modal = true;
-            this.viewCom.Center();
-
-            viewAnimationType = EnumViewAnimationType.ZOOM_CENTER;
+            isfullScreen = true;
 
             _ui.m_list.itemRenderer = RenderListItem;
 
+            _ui.m_btnBack.onClick.Add(OnBtnBackClick);
             _ui.m_btnCharge.onClick.Add(OnBtnChargeClick);
+            ActivityOpenCfg openCfg = ActivityOpenCfgArray.Instance.GetCfg(ActivityDataManager.Instance.actLimitChargeId);
+            _ui.m_loaBg.url = ResPathUtil.GetBgImgPath(openCfg.res);
 
         }
 
@@ -55,6 +55,10 @@ namespace GFGGame
             Timers.inst.Remove(UpdateTime);
         }
 
+        private void OnBtnBackClick()
+        {
+            ViewManager.GoBackFrom(typeof(LimitChargeView).FullName);
+        }
         private void UpdateTime(object param)
         {
             ActivityOpenCfg openCfg = ActivityOpenCfgArray.Instance.GetCfg(ActivityDataManager.Instance.actLimitChargeId);

BIN
GameClient/Assets/ResIn/UI/DailyWelfare/DailyWelfare_fui.bytes