Bläddra i källkod

剧情自动播放点击下一步后不停止

zhaoyang 3 år sedan
förälder
incheckning
b544e8b570

+ 13 - 12
FGUIProject/assets/Main/StoryDialogUI.xml

@@ -1,18 +1,18 @@
 <?xml version="1.0" encoding="utf-8"?>
 <component size="1080,1920">
-  <controller name="c1" pages="0,,1," selected="0"/>
+  <controller name="c1" pages="0,,1," selected="1"/>
   <displayList>
     <graph id="n17_t8o1" name="btnNext" xy="0,0" size="1080,1920" alpha="0" type="rect" fillColor="#ffff0000">
       <relation target="" sidePair="center-center,middle-middle"/>
     </graph>
     <component id="n6_nmnb" name="dialogText" src="nmnb2z" fileName="componentsDialog/CompDialogText.xml" xy="36,1338" touchable="false">
-      <relation target="" sidePair="center-center,middle-middle"/>
+      <relation target="" sidePair="center-center,bottom-bottom"/>
     </component>
     <component id="n9_nmnb" name="dialogName" src="nmnb30" fileName="componentsDialog/CompDialogName.xml" xy="36,1338" touchable="false">
-      <relation target="" sidePair="center-center,middle-middle"/>
+      <relation target="" sidePair="center-center,bottom-bottom"/>
     </component>
     <component id="n13_nmnb" name="dialogHead" src="nmnb31" fileName="componentsDialog/CompDialogHead.xml" xy="36,1338" touchable="false">
-      <relation target="" sidePair="center-center,middle-middle"/>
+      <relation target="" sidePair="center-center,bottom-bottom"/>
     </component>
     <list id="n15_nmnb" name="list" xy="150,1021" size="780,448" overflow="scroll" lineGap="84" defaultItem="ui://mfvz4q8knmnb32" autoClearItems="true">
       <relation target="" sidePair="center-center,middle-middle"/>
@@ -20,16 +20,17 @@
       <item/>
       <item/>
     </list>
-    <component id="n3_nmnb" name="btnLookBack" src="nmnb2w" fileName="componentsDialog/ButtonLookBack.xml" xy="443,1716" group="n8_nmnb"/>
-    <component id="n2_nmnb" name="btnAutoPlay" src="nmnb2v" fileName="componentsDialog/ButtonAutoPlay.xml" xy="601,1716" group="n8_nmnb"/>
-    <component id="n4_nmnb" name="btnSkip" src="nmnb2x" fileName="componentsDialog/ButtonSkip.xml" xy="759,1716" group="n8_nmnb"/>
-    <component id="n5_nmnb" name="btnSpeedUp" src="nmnb2y" fileName="componentsDialog/ButtonSpeedUp.xml" xy="917,1716" group="n8_nmnb"/>
-    <group id="n8_nmnb" name="n8" xy="443,1716" size="604,140" advanced="true" layout="hz" colGap="40">
-      <gearDisplay controller="c1" pages="0"/>
-      <relation target="" sidePair="right-right,bottom-bottom"/>
-    </group>
     <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="601,1716" group="n18_u7i8"/>
+    <component id="n2_nmnb" name="btnAutoPlay" src="nmnb2v" fileName="componentsDialog/ButtonAutoPlay.xml" xy="759,1716" group="n18_u7i8"/>
+    <component id="n4_nmnb" name="btnSkip" src="nmnb2x" fileName="componentsDialog/ButtonSkip.xml" xy="917,1716" group="n18_u7i8">
+      <gearDisplay controller="c1" pages="0"/>
+    </component>
+    <component id="n5_nmnb" name="btnSpeedUp" src="nmnb2y" fileName="componentsDialog/ButtonSpeedUp.xml" xy="917,1716" group="n18_u7i8"/>
+    <group id="n18_u7i8" name="n18" xy="601,1716" size="446,140" advanced="true" layout="hz" colGap="40" excludeInvisibles="true">
+      <relation target="" sidePair="right-right,bottom-bottom"/>
+    </group>
   </displayList>
 </component>

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Data/StoryDataManager.cs

@@ -12,7 +12,7 @@ namespace GFGGame
         public static int currentLevel = 0;
         public static string currentLevelID;
         public static int currentScoreType;
-        public static int currentCardId;
+        public static int currentCardId = 0;
         public static bool usedRecommend;
         public static int _passChapter = 0;
         public static int _passLevel = 0;

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

@@ -13,11 +13,11 @@ namespace UI.Main
         public UI_CompDialogName m_dialogName;
         public UI_CompDialogHead m_dialogHead;
         public GList m_list;
+        public GButton m_btnBack;
         public GButton m_btnLookBack;
         public GButton m_btnAutoPlay;
         public GButton m_btnSkip;
         public GButton m_btnSpeedUp;
-        public GButton m_btnBack;
         public const string URL = "ui://mfvz4q8kxuzk2i";
         public const string PACKAGE_NAME = "Main";
         public const string RES_NAME = "StoryDialogUI";
@@ -71,11 +71,11 @@ namespace UI.Main
             m_dialogName = (UI_CompDialogName)UI_CompDialogName.Create(comp.GetChild("dialogName"));
             m_dialogHead = (UI_CompDialogHead)UI_CompDialogHead.Create(comp.GetChild("dialogHead"));
             m_list = (GList)comp.GetChild("list");
+            m_btnBack = (GButton)comp.GetChild("btnBack");
             m_btnLookBack = (GButton)comp.GetChild("btnLookBack");
             m_btnAutoPlay = (GButton)comp.GetChild("btnAutoPlay");
             m_btnSkip = (GButton)comp.GetChild("btnSkip");
             m_btnSpeedUp = (GButton)comp.GetChild("btnSpeedUp");
-            m_btnBack = (GButton)comp.GetChild("btnBack");
         }
         public void Dispose(bool disposeTarget = false)
         {
@@ -88,11 +88,11 @@ namespace UI.Main
             m_dialogHead.Dispose();
             m_dialogHead = null;
             m_list = null;
+            m_btnBack = null;
             m_btnLookBack = null;
             m_btnAutoPlay = null;
             m_btnSkip = null;
             m_btnSpeedUp = null;
-            m_btnBack = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

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

@@ -145,7 +145,7 @@ namespace GFGGame
 
         private void OnClickBtnNext()
         {
-            StopAutoPlay();
+            // StopAutoPlay();
             ShowNextWords();
         }
 

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