Browse Source

卡牌引导防误触

zhaoyang 2 years ago
parent
commit
e98aa84720

+ 4 - 1
FGUIProject/assets/Card/CardFosterUI.xml

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <?xml version="1.0" encoding="utf-8"?>
 <component size="1080,1920" overflow="hidden" scroll="horizontal">
 <component size="1080,1920" overflow="hidden" scroll="horizontal">
-  <controller name="c1" pages="0,,1," selected="0"/>
+  <controller name="c1" pages="0,,1," selected="1"/>
   <displayList>
   <displayList>
     <loader id="n80_gbqo" name="loaBg" xy="540,960" pivot="0.5,0.5" anchor="true" size="1080,2400" fill="scaleMatchWidth">
     <loader id="n80_gbqo" 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"/>
       <relation target="" sidePair="width-width,height-height,center-center,middle-middle"/>
@@ -23,6 +23,9 @@
     <component id="n70_lc71" name="ComFosterBottom" src="j4c69d" fileName="components/ComFosterBottom.xml" xy="0,211">
     <component id="n70_lc71" name="ComFosterBottom" src="j4c69d" fileName="components/ComFosterBottom.xml" xy="0,211">
       <relation target="" sidePair="bottom-bottom"/>
       <relation target="" sidePair="bottom-bottom"/>
     </component>
     </component>
+    <loader id="n81_nasr" name="loaGuide" xy="0,0" size="1080,1920">
+      <relation target="" sidePair="width-width,height-height"/>
+    </loader>
   </displayList>
   </displayList>
   <transition name="t0">
   <transition name="t0">
     <item time="0" type="Scale" target="n73_sxk4" label="normal" tween="true" startValue="0.8,0.8" endValue="1,1" duration="5" label2="scale" ease="Linear"/>
     <item time="0" type="Scale" target="n73_sxk4" label="normal" tween="true" startValue="0.8,0.8" endValue="1,1" duration="5" label2="scale" ease="Linear"/>

+ 3 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Card/UI_CardFosterUI.cs

@@ -15,6 +15,7 @@ namespace UI.Card
         public GLoader m_loaListener1;
         public GLoader m_loaListener1;
         public UI_ComFosterTop m_ComFosterTop;
         public UI_ComFosterTop m_ComFosterTop;
         public UI_ComFosterBottom m_ComFosterBottom;
         public UI_ComFosterBottom m_ComFosterBottom;
+        public GLoader m_loaGuide;
         public Transition m_t0;
         public Transition m_t0;
         public Transition m_t1;
         public Transition m_t1;
         public const string URL = "ui://7l6lvkayojlzj";
         public const string URL = "ui://7l6lvkayojlzj";
@@ -72,6 +73,7 @@ namespace UI.Card
             m_loaListener1 = (GLoader)comp.GetChild("loaListener1");
             m_loaListener1 = (GLoader)comp.GetChild("loaListener1");
             m_ComFosterTop = (UI_ComFosterTop)UI_ComFosterTop.Create(comp.GetChild("ComFosterTop"));
             m_ComFosterTop = (UI_ComFosterTop)UI_ComFosterTop.Create(comp.GetChild("ComFosterTop"));
             m_ComFosterBottom = (UI_ComFosterBottom)UI_ComFosterBottom.Create(comp.GetChild("ComFosterBottom"));
             m_ComFosterBottom = (UI_ComFosterBottom)UI_ComFosterBottom.Create(comp.GetChild("ComFosterBottom"));
+            m_loaGuide = (GLoader)comp.GetChild("loaGuide");
             m_t0 = comp.GetTransition("t0");
             m_t0 = comp.GetTransition("t0");
             m_t1 = comp.GetTransition("t1");
             m_t1 = comp.GetTransition("t1");
         }
         }
@@ -89,6 +91,7 @@ namespace UI.Card
             m_ComFosterTop = null;
             m_ComFosterTop = null;
             m_ComFosterBottom.Dispose();
             m_ComFosterBottom.Dispose();
             m_ComFosterBottom = null;
             m_ComFosterBottom = null;
+            m_loaGuide = null;
             m_t0 = null;
             m_t0 = null;
             m_t1 = null;
             m_t1 = null;
             if(disposeTarget && target != null)
             if(disposeTarget && target != null)

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/Card/CardFosterView.cs

@@ -825,6 +825,7 @@ namespace GFGGame
             {
             {
                 Timers.inst.Remove(CheckGuide);
                 Timers.inst.Remove(CheckGuide);
             }
             }
+            _ui.m_loaGuide.visible = false;
         }
         }
         protected override void UpdateToCheckGuide(object param)
         protected override void UpdateToCheckGuide(object param)
         {
         {

BIN
GameClient/Assets/ResIn/UI/Card/Card_fui.bytes