Sfoglia il codice sorgente

竞技场消耗同步公共消耗组件

zhaoyang 2 anni fa
parent
commit
bcc10b2bba

+ 3 - 2
FGUIProject/assets/Arena/components/ComCostCurrency.xml

@@ -1,9 +1,10 @@
 <?xml version="1.0" encoding="utf-8"?>
 <component size="160,46">
+  <controller name="c1" pages="0,,1," selected="0"/>
   <displayList>
-    <text id="n2_ojlz" name="n2" xy="0,2" size="63,42" group="n7_si5z" fontSize="30" color="#fbf6ed" text="消耗"/>
+    <text id="n2_ojlz" name="n2" xy="0,2" size="63,41" group="n7_si5z" fontSize="30" color="#fbf6ed" text="消耗"/>
     <loader id="n1_ojlz" name="loaIcon" xy="68,-2" size="50,50" group="n7_si5z" aspect="true" url="ui://eg2y0ldpq08x3" fill="scale"/>
-    <text id="n6_j5a5" name="txtNeed" xy="123,2" size="37,42" group="n7_si5z" fontSize="30" color="#fbf6ed" align="center" vAlign="middle" ubb="true" autoClearText="true" text="50"/>
+    <text id="n6_j5a5" name="txtNeed" xy="123,2" size="37,41" group="n7_si5z" fontSize="30" color="#fbf6ed" align="center" vAlign="middle" ubb="true" autoClearText="true" text="50"/>
     <group id="n7_si5z" name="n7" xy="0,-2" size="160,50" advanced="true" layout="hz" colGap="5" excludeInvisibles="true">
       <relation target="" sidePair="center-center"/>
     </group>

+ 3 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Arena/UI_ComCostCurrency.cs

@@ -7,6 +7,7 @@ namespace UI.Arena
     public partial class UI_ComCostCurrency
     {
         public GComponent target;
+        public Controller m_c1;
         public GLoader m_loaIcon;
         public GTextField m_txtNeed;
         public const string URL = "ui://4lc5fhlbjcej3y";
@@ -56,11 +57,13 @@ namespace UI.Arena
 
         private void Init(GComponent comp)
         {
+            m_c1 = comp.GetController("c1");
             m_loaIcon = (GLoader)comp.GetChild("loaIcon");
             m_txtNeed = (GTextField)comp.GetChild("txtNeed");
         }
         public void Dispose(bool disposeTarget = false)
         {
+            m_c1 = null;
             m_loaIcon = null;
             m_txtNeed = null;
             if(disposeTarget && target != null)

BIN
GameClient/Assets/ResIn/UI/Arena/Arena_fui.bytes