浏览代码

抽卡替换

zhaoyang 2 年之前
父节点
当前提交
a8175f3982

+ 3 - 3
FGUIProject/assets/LuckyBox/components/ComCard.xml

@@ -3,10 +3,10 @@
   <displayList>
     <loader id="n0_qdrt" name="bg" xy="0,0" size="1020,739" url="ui://drx9d1usqdrt14" autoSize="true"/>
     <loader id="n1_qdrt" name="loaType" xy="630,234" size="43,168" aspect="true" url="ui://eg2y0ldpqdrt15" fill="scaleMatchWidth"/>
-    <loader id="n2_qdrt" name="loaIcon" xy="415,256" size="189,189" aspect="true" url="ui://eg2y0ldpkubi7e" fill="scaleMatchWidth"/>
+    <loader id="n2_qdrt" name="loaIcon" xy="402,238" size="216,216" aspect="true" url="ui://eg2y0ldpkubi7e" fill="scaleMatchWidth"/>
     <loader id="n3_qdrt" name="loaProperty" xy="356,257" size="50,50" aspect="true" url="ui://eg2y0ldp842s6k" fill="scaleMatchWidth"/>
-    <text id="n5_qdrt" name="txtDiscribe" xy="474,656" pivot="0.5,0" anchor="true" size="360,235" fontSize="30" color="#c2a773" autoSize="height" text="赵钱孙李周吴郑王赵钱孙李周吴郑王赵钱孙李周吴郑王赵钱孙李周吴郑王赵钱孙李周吴郑王赵钱孙李周吴郑王赵钱孙李周吴郑王赵钱孙李周吴郑王"/>
-    <graph id="n6_dcro" name="holder" xy="473,484" size="1,1" touchable="false" type="rect"/>
+    <text id="n5_qdrt" name="txtDiscribe" xy="510,550" pivot="0.5,0" anchor="true" size="602,101" fontSize="34" color="#b4a188" autoSize="none" text="赵钱孙李周吴郑王赵钱孙李周吴郑王赵钱孙李周吴郑王赵钱孙李周吴郑王赵钱孙李周吴郑王赵钱孙李周吴郑王赵钱孙李周吴郑王赵钱孙李周吴郑王"/>
+    <graph id="n6_dcro" name="holder" xy="509,363" size="1,1" touchable="false" type="rect"/>
     <image id="n7_v95q" name="n7" src="v95q2r" fileName="images/hd_kkbt_1.png" xy="307,80" group="n8_v95q"/>
     <text id="n4_qdrt" name="txtName" xy="510,115" pivot="0.5,0.5" anchor="true" size="100,64" group="n8_v95q" font="ui://eg2y0ldpwonotja" fontSize="48" color="#ac854e" text="服装"/>
     <group id="n8_v95q" name="n8" xy="307,80" size="406,68"/>

+ 3 - 3
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/LuckyBox/UI_ComCard.cs

@@ -11,9 +11,9 @@ namespace UI.LuckyBox
         public GLoader m_loaType;
         public GLoader m_loaIcon;
         public GLoader m_loaProperty;
-        public GTextField m_txtName;
         public GTextField m_txtDiscribe;
         public GGraph m_holder;
+        public GTextField m_txtName;
         public const string URL = "ui://drx9d1usqdrt1a";
         public const string PACKAGE_NAME = "LuckyBox";
         public const string RES_NAME = "ComCard";
@@ -65,9 +65,9 @@ namespace UI.LuckyBox
             m_loaType = (GLoader)comp.GetChild("loaType");
             m_loaIcon = (GLoader)comp.GetChild("loaIcon");
             m_loaProperty = (GLoader)comp.GetChild("loaProperty");
-            m_txtName = (GTextField)comp.GetChild("txtName");
             m_txtDiscribe = (GTextField)comp.GetChild("txtDiscribe");
             m_holder = (GGraph)comp.GetChild("holder");
+            m_txtName = (GTextField)comp.GetChild("txtName");
         }
         public void Dispose(bool disposeTarget = false)
         {
@@ -75,9 +75,9 @@ namespace UI.LuckyBox
             m_loaType = null;
             m_loaIcon = null;
             m_loaProperty = null;
-            m_txtName = null;
             m_txtDiscribe = null;
             m_holder = null;
+            m_txtName = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 2 - 1
GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxCardView.cs

@@ -45,8 +45,9 @@ namespace GFGGame
             _ui.m_bg.onTouchBegin.Add(OnClickBg);
             _ui.m_btnPass.onClick.Add(OnClickBtnPass);
 
+
             string resPath = ResPathUtil.GetViewEffectPath("ui_ck", "ui_ck_zs");
-            SceneController.AddObjectToView(gameObject, null, _ui.m_comCard.m_holder, resPath, out gameObject, out wrapper);
+            // SceneController.AddObjectToView(gameObject, null, _ui.m_comCard.m_holder, resPath, out gameObject, out wrapper);
         }
         protected override void OnShown()
         {

二进制
GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_atlas0!a.png


二进制
GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_atlas0.png


二进制
GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_fui.bytes