Эх сурвалжийг харах

剧情关卡未通关时,隐藏跳过按钮

zhaoyang 3 жил өмнө
parent
commit
0ad872791f

+ 3 - 3
FGUIProject/assets/Main/StoryDialogUI.xml

@@ -26,11 +26,11 @@
     <component id="n16_qsvd" name="btnBack" src="9xlo8" fileName="components/ButtonBack1.xml" pkg="eg2y0ldp" xy="35,80">
       <gearDisplay controller="c1" pages="0"/>
     </component>
-    <component id="n3_nmnb" name="btnLookBack" src="nmnb2w" fileName="componentsDialog/ButtonLookBack.xml" xy="492,1722" group="n18_u7i8"/>
-    <component id="n2_nmnb" name="btnAutoPlay" src="nmnb2v" fileName="componentsDialog/ButtonAutoPlay.xml" xy="637,1722" group="n18_u7i8"/>
-    <component id="n4_nmnb" name="btnSkip" src="nmnb2x" fileName="componentsDialog/ButtonSkip.xml" xy="782,1722" group="n18_u7i8">
+    <component id="n4_nmnb" name="btnSkip" src="nmnb2x" fileName="componentsDialog/ButtonSkip.xml" xy="492,1722" group="n18_u7i8">
       <gearDisplay controller="c1" pages="0"/>
     </component>
+    <component id="n3_nmnb" name="btnLookBack" src="nmnb2w" fileName="componentsDialog/ButtonLookBack.xml" xy="637,1722" group="n18_u7i8"/>
+    <component id="n2_nmnb" name="btnAutoPlay" src="nmnb2v" fileName="componentsDialog/ButtonAutoPlay.xml" xy="782,1722" group="n18_u7i8"/>
     <component id="n5_nmnb" name="btnSpeedUp" src="nmnb2y" fileName="componentsDialog/ButtonSpeedUp.xml" xy="927,1722" group="n18_u7i8"/>
     <group id="n18_u7i8" name="n18" xy="492,1722" size="555,134" advanced="true" layout="hz" colGap="40" excludeInvisibles="true">
       <relation target="" sidePair="right-right,top-middle"/>

+ 3 - 3
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Main/UI_StoryDialogUI.cs

@@ -14,9 +14,9 @@ namespace UI.Main
         public UI_CompDialogHead m_dialogHead;
         public GList m_list;
         public GButton m_btnBack;
+        public GButton m_btnSkip;
         public GButton m_btnLookBack;
         public GButton m_btnAutoPlay;
-        public GButton m_btnSkip;
         public GButton m_btnSpeedUp;
         public const string URL = "ui://mfvz4q8kxuzk2i";
         public const string PACKAGE_NAME = "Main";
@@ -72,9 +72,9 @@ namespace UI.Main
             m_dialogHead = (UI_CompDialogHead)UI_CompDialogHead.Create(comp.GetChild("dialogHead"));
             m_list = (GList)comp.GetChild("list");
             m_btnBack = (GButton)comp.GetChild("btnBack");
+            m_btnSkip = (GButton)comp.GetChild("btnSkip");
             m_btnLookBack = (GButton)comp.GetChild("btnLookBack");
             m_btnAutoPlay = (GButton)comp.GetChild("btnAutoPlay");
-            m_btnSkip = (GButton)comp.GetChild("btnSkip");
             m_btnSpeedUp = (GButton)comp.GetChild("btnSpeedUp");
         }
         public void Dispose(bool disposeTarget = false)
@@ -89,9 +89,9 @@ namespace UI.Main
             m_dialogHead = null;
             m_list = null;
             m_btnBack = null;
+            m_btnSkip = null;
             m_btnLookBack = null;
             m_btnAutoPlay = null;
-            m_btnSkip = null;
             m_btnSpeedUp = null;
             if(disposeTarget && target != null)
             {

+ 2 - 1
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryDialogView.cs

@@ -115,7 +115,8 @@ namespace GFGGame
             skipable = true;
             // }
 
-            _ui.m_btnSkip.enabled = skipable;
+            _ui.m_btnSkip.visible = skipable;
+
             ShowNextStep(_stroyStartID);
 
             _ui.m_c1.selectedIndex = 0;

BIN
GameClient/Assets/ResIn/UI/Main/Main_fui.bytes