Ver código fonte

快速切换奖池列表背景异常

zhaoyang 2 anos atrás
pai
commit
c6d119b205

+ 4 - 4
FGUIProject/assets/Field/FieldTaskUI.xml

@@ -2,7 +2,7 @@
 <component size="900,993" overflow="hidden">
   <displayList>
     <component id="n1_ohun" name="n1" src="si5ztih" fileName="components/ComBg.xml" pkg="mk0fwx0x" xy="-31,0" size="962,993"/>
-    <list id="n0_s20j" name="list" xy="111,218" size="740,701" overflow="scroll" lineGap="20" defaultItem="ui://5oh3t798s20ja">
+    <list id="n0_s20j" name="list" xy="80,218" size="740,701" overflow="scroll" lineGap="20" defaultItem="ui://5oh3t798s20ja">
       <item/>
       <item/>
       <item/>
@@ -11,8 +11,8 @@
       <item/>
       <item/>
     </list>
-    <text id="n2_ohun" name="txtTitle" xy="380,40" size="202,66" fontSize="50" color="#9b7853" text="上限提升"/>
-    <image id="n3_ohun" name="n3" src="ehs99" fileName="images/yx_xiant_1.png" pkg="eg2y0ldp" xy="57,120"/>
-    <text id="n4_ohun" name="txtDecs" xy="242,137" size="478,42" fontSize="30" color="#c67764" text="完成指定目标后可提升每周奖励上限"/>
+    <text id="n2_ohun" name="txtTitle" xy="350,40" size="199,66" fontSize="50" color="#9b7853" text="上限提升"/>
+    <image id="n3_ohun" name="n3" src="ehs99" fileName="images/yx_xiant_1.png" pkg="eg2y0ldp" xy="26,120"/>
+    <text id="n4_ohun" name="txtDecs" xy="215,137" size="470,41" fontSize="30" color="#c67764" text="完成指定目标后可提升每周奖励上限"/>
   </displayList>
 </component>

+ 1 - 1
FGUIProject/assets/LuckyBox/combox/ComBox_2.xml

@@ -28,7 +28,7 @@
     <image id="n30_njmn" name="imgSpecial" src="ga16i" fileName="images/cj_anniu_ts.png" xy="873,1603" group="n31_njmn">
       <relation target="n29_njmn" sidePair="left-left,top-top"/>
     </image>
-    <text id="n37_njmn" name="txtRemainTimes" xy="540,1809" pivot="0.5,0" anchor="true" size="243,44" group="n31_njmn" fontSize="32" color="#fff7d4" align="center" vars="true" text="今日剩余次数:{v1=0}">
+    <text id="n37_njmn" name="txtRemainTimes" xy="540,1809" pivot="0.5,0" anchor="true" size="246,44" group="n31_njmn" font="ui://eg2y0ldpwonotj9" fontSize="32" color="#fff7d4" align="center" vars="true" strokeColor="#c89c5d" text="今日剩余次数:{v1=0}">
       <relation target="" sidePair="center-center"/>
     </text>
     <group id="n31_njmn" name="n31" xy="45,1603" size="989,250" advanced="true">

+ 1 - 1
FGUIProject/assets/LuckyBox/combox/ComBox_3.xml

@@ -28,7 +28,7 @@
     </component>
     <component id="n28_njmn" name="btnBuyOne" src="ga16b" fileName="components/Button1.xml" xy="90,1688" group="n31_njmn"/>
     <component id="n29_njmn" name="btnBuyTen" src="ga16c" fileName="components/Button2.xml" xy="576,1688" group="n31_njmn"/>
-    <text id="n38_njmn" name="txtRemainTimes" xy="540,1809" pivot="0.5,0" anchor="true" size="243,44" group="n31_njmn" fontSize="32" color="#fff7d4" align="center" vars="true" text="今日剩余次数:{v1=0}">
+    <text id="n38_njmn" name="txtRemainTimes" xy="540,1809" pivot="0.5,0" anchor="true" size="246,44" group="n31_njmn" font="ui://eg2y0ldpwonotj9" fontSize="32" color="#fff7d4" align="center" vars="true" strokeColor="#c89c5d" text="今日剩余次数:{v1=0}">
       <relation target="" sidePair="center-center"/>
     </text>
     <group id="n31_njmn" name="n31" xy="90,1635" size="898,218" advanced="true">

+ 3 - 1
GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxView.cs

@@ -208,7 +208,9 @@ namespace GFGGame
             string[] resArr = LuckyBoxCfgArray.Instance.GetCfg(LuckyBoxDataManager.Instance.currentBoxId).resArr;
             _bgIndex++;
             if (_bgIndex >= resArr.Length) _bgIndex = 0;
-            GLoader loaBg = _ui.m_listBg.GetChildAt(0).asCom.GetChild("loaBg").asLoader;
+            GComponent item = _ui.m_listBg.GetChildAt(0).asCom;
+            if (item.gameObjectName != "ComBox_2") return;
+            GLoader loaBg = item.GetChild("loaBg").asLoader;
             loaBg.url = ResPathUtil.GetBgImgPath(resArr[_bgIndex]);
         }
 

BIN
GameClient/Assets/ResIn/UI/Field/Field_fui.bytes


BIN
GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_fui.bytes