zhaoyang hace 2 años
padre
commit
5c3efb1555

+ 6 - 0
FGUIProject/assets/Main/Component8.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<component size="1080,1700" overflow="scroll">
+  <displayList>
+    <component id="n5_o4m7" name="compChapterScroll" src="o4m7fr7" fileName="componentsLevel/CompChapterScroll.xml" xy="0,0"/>
+  </displayList>
+</component>

+ 4 - 4
FGUIProject/assets/Main/StoryChapterUI.xml

@@ -4,8 +4,8 @@
     <loader id="n31_o4m7" name="loaBg" xy="540,960" pivot="0.5,0.5" anchor="true" size="1080,2400" url="ui://mfvz4q8ko4m7fr9" align="center" vAlign="middle" fill="scaleMatchWidth">
       <relation target="" sidePair="width-width,center-center,middle-middle"/>
     </loader>
-    <component id="n13_xuzk" name="chapter" src="xuzk2e" fileName="components/CompChapter.xml" xy="0,0" size="1080,1920">
-      <relation target="" sidePair="width-width,height-height"/>
+    <component id="n13_xuzk" name="chapter" src="xuzk2e" fileName="components/CompChapter.xml" xy="0,220" size="1080,1700">
+      <relation target="" sidePair="width-width,height-height,bottom-bottom"/>
     </component>
     <component id="n2_v354" name="valueBar" src="v3541v" fileName="components/ComponentValueBar.xml" pkg="eg2y0ldp" xy="13,93" controller="c1,1"/>
     <component id="n3_v354" name="btnBack" src="9xlo8" fileName="components/BtnBack.xml" pkg="eg2y0ldp" xy="35,80"/>
@@ -15,7 +15,7 @@
     <image id="n15_ki96" name="n15" src="o4m7fq4" fileName="imagesNew/zxian_chapter_dec.png" xy="786,189" group="n19_o4m7">
       <relation target="" sidePair="center-center,top-top"/>
     </image>
-    <text id="n16_ki96" name="txtChapterName0" xy="809,214" size="74,92" group="n19_o4m7" font="ui://eg2y0ldpa0cftkx" fontSize="70" color="#fffae1" align="center" strokeColor="#ffaf51" autoClearText="true" text="草">
+    <text id="n16_ki96" name="txtChapterName0" xy="809,214" size="74,91" group="n19_o4m7" font="ui://eg2y0ldpa0cftkx" fontSize="70" color="#fffae1" align="center" strokeColor="#ffaf51" autoClearText="true" text="草">
       <relation target="n15_ki96" sidePair="center-center,middle-middle"/>
     </text>
     <text id="n26_o4m7" name="txtChapterName1" xy="870,228" size="54,66" group="n19_o4m7" font="ui://eg2y0ldpa0cftkx" fontSize="50" color="#fffae1" align="center" strokeColor="#ffaf51" autoClearText="true" text="书">
@@ -27,7 +27,7 @@
     <text id="n28_o4m7" name="txtChapterName3" xy="943,281" size="54,66" group="n19_o4m7" font="ui://eg2y0ldpa0cftkx" fontSize="50" color="#fffae1" align="center" strokeColor="#ffaf51" autoClearText="true" text="绝">
       <relation target="n15_ki96" sidePair="center-center,middle-middle"/>
     </text>
-    <text id="n29_o4m7" name="txtChapterName4" xy="990,259" size="74,92" group="n19_o4m7" font="ui://eg2y0ldpa0cftkx" fontSize="70" color="#fffae1" align="center" strokeColor="#ffaf51" autoClearText="true" text="册">
+    <text id="n29_o4m7" name="txtChapterName4" xy="990,259" size="74,91" group="n19_o4m7" font="ui://eg2y0ldpa0cftkx" fontSize="70" color="#fffae1" align="center" strokeColor="#ffaf51" autoClearText="true" text="册">
       <relation target="n15_ki96" sidePair="center-center,middle-middle"/>
     </text>
     <group id="n19_o4m7" name="n19" xy="786,189" size="278,162" advanced="true">

+ 4 - 2
FGUIProject/assets/Main/components/CompChapter.xml

@@ -1,4 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
-<component size="1080,1920" overflow="scroll" scrollBarFlags="128" scrollBar="hidden">
-  <displayList/>
+<component size="1080,1700" overflow="scroll" scrollBarFlags="128" scrollBar="hidden">
+  <displayList>
+    <component id="n1_o4m7" name="compChapterScroll" src="o4m7fr7" fileName="componentsLevel/CompChapterScroll.xml" xy="0,0"/>
+  </displayList>
 </component>

+ 10 - 10
FGUIProject/assets/Main/components/CompStoryLevelItem.xml

@@ -4,35 +4,35 @@
     <remark page="0" value="剧情"/>
     <remark page="1" value="对战"/>
   </controller>
-  <controller name="c2" exported="true" pages="0,,1," selected="1">
+  <controller name="c2" exported="true" pages="0,,1," selected="0">
     <remark page="0" value="向左"/>
     <remark page="1" value="向右"/>
   </controller>
   <displayList>
-    <component id="n12_o4m7" name="comDialogBg" src="o4m7fr5" fileName="components/ComDialogBg.xml" xy="104,67" size="326,125" group="n19_o4m7">
+    <component id="n12_o4m7" name="comDialogBg" src="o4m7fr5" fileName="components/ComDialogBg.xml" xy="118,67" size="326,125" group="n19_o4m7">
       <gearXY controller="c2" pages="0" values="118,67" default="104,67"/>
     </component>
-    <loader id="n13_o4m7" name="loaDialogBg" xy="0,0" pivot="0.5,0.5" size="540,216" group="n19_o4m7" url="ui://mfvz4q8ko4m7fq2" autoSize="true">
+    <loader id="n13_o4m7" name="loaDialogBg" xy="0,0" pivot="0.5,0.5" size="540,216" group="n19_o4m7" scale="-1,1" url="ui://mfvz4q8ko4m7fq2" autoSize="true">
       <gearSize controller="c2" pages="0" values="540,216,-1,1" default="540,216,1,1"/>
     </loader>
-    <text id="n14_o4m7" name="txtDialogOrder" xy="129,16" pivot="0.5,0" size="98,50" group="n17_o4m7" font="ui://mfvz4q8ko4m7fr0" fontSize="34" color="#ffffff" align="right" letterSpacing="-4" text="0-0">
+    <text id="n14_o4m7" name="txtDialogOrder" xy="181,16" pivot="0.5,0" size="98,50" group="n17_o4m7" font="ui://mfvz4q8ko4m7fr0" fontSize="34" color="#ffffff" align="right" letterSpacing="-4" text="0-0">
       <relation target="n13_o4m7" sidePair="center-center,middle-middle"/>
     </text>
-    <image id="n16_o4m7" name="n16" src="o4m7fqb" fileName="imagesNew/zxian_name_dec.png" xy="212,0" group="n17_o4m7"/>
-    <text id="n15_o4m7" name="txtName" xy="249,23" size="122,41" group="n17_o4m7" font="ui://eg2y0ldpa0cftkx" fontSize="30" color="#ffeabf" text="曲水流觞"/>
-    <group id="n17_o4m7" name="n17" xy="129,0" size="242,74" group="n19_o4m7" advanced="true" layout="hz" colGap="-15">
+    <image id="n16_o4m7" name="n16" src="o4m7fqb" fileName="imagesNew/zxian_name_dec.png" xy="264,0" group="n17_o4m7"/>
+    <text id="n15_o4m7" name="txtName" xy="301,23" size="122,41" group="n17_o4m7" font="ui://eg2y0ldpa0cftkx" fontSize="30" color="#ffeabf" text="曲水流觞"/>
+    <group id="n17_o4m7" name="n17" xy="181,0" size="242,74" group="n19_o4m7" advanced="true" layout="hz" colGap="-15">
       <gearXY controller="c2" pages="1" values="129,0" default="181,0"/>
     </group>
     <group id="n19_o4m7" name="n19" xy="0,0" size="540,216" advanced="true">
       <gearDisplay controller="c1" pages="0"/>
     </group>
-    <loader id="n28_o4m7" name="n28" xy="89,48" pivot="0.5,0.5" size="361,120" group="n24_o4m7" scale="-1,1" url="ui://mfvz4q8ko4m7frd" autoSize="true">
+    <loader id="n28_o4m7" name="n28" xy="89,48" pivot="0.5,0.5" size="361,120" group="n24_o4m7" url="ui://mfvz4q8ko4m7frd" autoSize="true">
       <gearSize controller="c2" pages="1" values="361,120,-1,1" default="361,120,1,1"/>
     </loader>
     <image id="n25_o4m7" name="n25" src="o4m7fre" fileName="imagesNew/zxgq_zdtb.png" xy="179,48" group="n26_o4m7">
       <gearDisplay controller="c2" pages="0"/>
     </image>
-    <text id="n20_o4m7" name="txtFightOrder" xy="179,59" pivot="0.5,0" size="106,50" group="n26_o4m7" font="ui://mfvz4q8ko4m7fr0" fontSize="30" color="#ffffff" align="center" text="1-1">
+    <text id="n20_o4m7" name="txtFightOrder" xy="255,59" pivot="0.5,0" size="106,50" group="n26_o4m7" font="ui://mfvz4q8ko4m7fr0" fontSize="30" color="#ffffff" align="center" text="1-1">
       <gearXY controller="c2" pages="0,1" values="255,59|179,59"/>
     </text>
     <image id="n27_o4m7" name="n27" src="o4m7fre" fileName="imagesNew/zxgq_zdtb.png" xy="285,48" group="n26_o4m7">
@@ -42,9 +42,9 @@
       <relation target="" sidePair="center-center"/>
     </group>
     <component id="n21_o4m7" name="flower" src="s2cc5l" fileName="components/CompFlower2.xml" xy="180,137" group="n24_o4m7"/>
-    <graph id="n22_o4m7" name="holder" xy="269,125" size="1,1" group="n24_o4m7"/>
     <group id="n24_o4m7" name="n24" xy="89,48" size="361,149" advanced="true">
       <gearDisplay controller="c1" pages="1"/>
     </group>
+    <graph id="n22_o4m7" name="holder" xy="269,125" size="1,1"/>
   </displayList>
 </component>

+ 0 - 59
FGUIProject/assets/Main/componentsLevel/CompChapter.xml

@@ -1,59 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<component size="1080,5500" scroll="both" designImageLayer="1">
-  <displayList>
-    <image id="n94_o4m7" name="n94" src="o4m7fqa" fileName="imagesNew/zxian_line.png" xy="72,3507" group="n117_o4m7" aspect="true">
-      <relation target="" sidePair="center-center,bottom-bottom"/>
-    </image>
-    <image id="n95_o4m7" name="imgBegin" src="o4m7fq1" fileName="imagesNew/zxian_sel.png" xy="540,5185" pivot="0.5,0" anchor="true" group="n117_o4m7" aspect="true">
-      <relation target="" sidePair="bottom-bottom"/>
-    </image>
-    <component id="n118_o4m7" name="g00" src="o4m7fqd" fileName="components/CompStoryLevelItem.xml" xy="753,1081" group="n139_o4m7" controller="c2,1"/>
-    <component id="n119_o4m7" name="g01" src="o4m7fqd" fileName="components/CompStoryLevelItem.xml" xy="434,1283" group="n139_o4m7" controller="c2,1"/>
-    <component id="n120_o4m7" name="g02" src="o4m7fqd" fileName="components/CompStoryLevelItem.xml" xy="309,1485" group="n139_o4m7"/>
-    <component id="n121_o4m7" name="g03" src="o4m7fqd" fileName="components/CompStoryLevelItem.xml" xy="408,1687" group="n139_o4m7"/>
-    <component id="n122_o4m7" name="g04" src="o4m7fqd" fileName="components/CompStoryLevelItem.xml" xy="635,1889" group="n139_o4m7" controller="c2,1"/>
-    <component id="n123_o4m7" name="g05" src="o4m7fqd" fileName="components/CompStoryLevelItem.xml" xy="734,2091" group="n139_o4m7" controller="c2,1"/>
-    <component id="n124_o4m7" name="g06" src="o4m7fqd" fileName="components/CompStoryLevelItem.xml" xy="490,2293" group="n139_o4m7"/>
-    <component id="n125_o4m7" name="g07" src="o4m7fqd" fileName="components/CompStoryLevelItem.xml" xy="328,2495" group="n139_o4m7"/>
-    <component id="n126_o4m7" name="g08" src="o4m7fqd" fileName="components/CompStoryLevelItem.xml" xy="481,2697" group="n139_o4m7" controller="c2,1"/>
-    <component id="n127_o4m7" name="g09" src="o4m7fqd" fileName="components/CompStoryLevelItem.xml" xy="691,2899" group="n139_o4m7" controller="c2,1"/>
-    <component id="n128_o4m7" name="g010" src="o4m7fqd" fileName="components/CompStoryLevelItem.xml" xy="551,3101" group="n139_o4m7" controller="c2,0"/>
-    <component id="n129_o4m7" name="g011" src="o4m7fqd" fileName="components/CompStoryLevelItem.xml" xy="787,3303" group="n139_o4m7" controller="c2,0"/>
-    <component id="n130_o4m7" name="g012" src="o4m7fqd" fileName="components/CompStoryLevelItem.xml" xy="599,3505" group="n139_o4m7" controller="c2,0"/>
-    <component id="n131_o4m7" name="g013" src="o4m7fqd" fileName="components/CompStoryLevelItem.xml" xy="403,3707" group="n139_o4m7"/>
-    <component id="n132_o4m7" name="g014" src="o4m7fqd" fileName="components/CompStoryLevelItem.xml" xy="564,3909" group="n139_o4m7"/>
-    <component id="n133_o4m7" name="g015" src="o4m7fqd" fileName="components/CompStoryLevelItem.xml" xy="664,4111" group="n139_o4m7" controller="c2,1"/>
-    <component id="n134_o4m7" name="g016" src="o4m7fqd" fileName="components/CompStoryLevelItem.xml" xy="507,4313" group="n139_o4m7" controller="c2,1"/>
-    <component id="n135_o4m7" name="g017" src="o4m7fqd" fileName="components/CompStoryLevelItem.xml" xy="853,4515" group="n139_o4m7"/>
-    <component id="n136_o4m7" name="g018" src="o4m7fqd" fileName="components/CompStoryLevelItem.xml" xy="598,4717" group="n139_o4m7"/>
-    <component id="n137_o4m7" name="g019" src="o4m7fqd" fileName="components/CompStoryLevelItem.xml" xy="436,4919" group="n139_o4m7"/>
-    <component id="n138_o4m7" name="g020" src="o4m7fqd" fileName="components/CompStoryLevelItem.xml" xy="589,5121" group="n139_o4m7"/>
-    <group id="n139_o4m7" name="n139" xy="39,955" size="1084,4292" group="n117_o4m7" visible="false" advanced="true" layout="vt" lineGap="-50" excludeInvisibles="true">
-      <relation target="" sidePair="bottom-bottom"/>
-    </group>
-    <graph id="n115_o4m7" name="grh19_1" xy="549,877" size="20,20" group="n116_o4m7" touchable="false"/>
-    <graph id="n114_o4m7" name="grh18_0" xy="340,1093" size="20,20" group="n116_o4m7" touchable="false"/>
-    <graph id="n113_o4m7" name="grh17_0" xy="93,1309" size="20,20" group="n116_o4m7" touchable="false"/>
-    <graph id="n112_o4m7" name="grh16_1" xy="340,1525" size="20,20" group="n116_o4m7" touchable="false"/>
-    <graph id="n111_o4m7" name="grh15_1" xy="572,1741" size="20,20" group="n116_o4m7" touchable="false"/>
-    <graph id="n110_o4m7" name="grh14_0" xy="315,1957" size="20,20" group="n116_o4m7" touchable="false"/>
-    <graph id="n109_o4m7" name="grh13_0" xy="79,2173" size="20,20" group="n116_o4m7" touchable="false"/>
-    <graph id="n108_o4m7" name="grh12_1" xy="353,2389" size="20,20" group="n116_o4m7" touchable="false"/>
-    <graph id="n107_o4m7" name="grh11_1" xy="604,2605" size="20,20" group="n116_o4m7" touchable="false"/>
-    <graph id="n106_o4m7" name="grh10_0" xy="134,2821" size="20,20" group="n116_o4m7" touchable="false"/>
-    <graph id="n105_o4m7" name="grh9_0" xy="603,3037" size="20,20" group="n116_o4m7" touchable="false"/>
-    <graph id="n104_o4m7" name="grh8_0" xy="360,3253" size="20,20" group="n116_o4m7" touchable="false"/>
-    <graph id="n103_o4m7" name="grh7_0" xy="28,3469" size="20,20" group="n116_o4m7" touchable="false"/>
-    <graph id="n102_o4m7" name="grh6_0" xy="244,3685" size="20,20" group="n116_o4m7" touchable="false"/>
-    <graph id="n101_o4m7" name="grh5_0" xy="584,3901" size="20,20" group="n116_o4m7" touchable="false"/>
-    <graph id="n100_o4m7" name="grh4_1" xy="384,4117" size="20,20" group="n116_o4m7" touchable="false"/>
-    <graph id="n99_o4m7" name="grh3_0" xy="218,4333" size="20,20" group="n116_o4m7" touchable="false"/>
-    <graph id="n98_o4m7" name="grh2_0" xy="111,4549" size="20,20" group="n116_o4m7" touchable="false"/>
-    <graph id="n97_o4m7" name="grh1_0" xy="136,4765" size="20,20" group="n116_o4m7" touchable="false"/>
-    <graph id="n96_o4m7" name="grh0_0" xy="349,4981" size="20,20" group="n116_o4m7" touchable="false"/>
-    <group id="n116_o4m7" name="n116" xy="28,877" size="596,4124" group="n117_o4m7" advanced="true" layout="vt" lineGap="196" excludeInvisibles="true">
-      <relation target="" sidePair="center-center,bottom-bottom"/>
-    </group>
-    <group id="n117_o4m7" name="n117" xy="28,877" size="1095,4424"/>
-  </displayList>
-</component>

+ 36 - 0
FGUIProject/assets/Main/componentsLevel/CompChapterScroll.xml

@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="utf-8"?>
+<component size="1080,4500" scroll="both" designImageLayer="1">
+  <displayList>
+    <image id="n94_o4m7" name="n94" src="o4m7fqa" fileName="imagesNew/zxian_line.png" xy="72,2605" group="n117_o4m7" aspect="true">
+      <relation target="" sidePair="center-center,bottom-bottom"/>
+    </image>
+    <image id="n95_o4m7" name="imgBegin" src="o4m7fq1" fileName="imagesNew/zxian_sel.png" xy="540,4283" pivot="0.5,0" anchor="true" group="n117_o4m7" aspect="true">
+      <relation target="" sidePair="bottom-bottom"/>
+    </image>
+    <component id="n119_o4m7" name="g20" src="o4m7fqd" fileName="components/CompStoryLevelItem.xml" xy="333,157" group="n139_o4m7" controller="c2,0"/>
+    <component id="n120_o4m7" name="g19" src="o4m7fqd" fileName="components/CompStoryLevelItem.xml" xy="31,359" group="n139_o4m7"/>
+    <component id="n121_o4m7" name="g18" src="o4m7fqd" fileName="components/CompStoryLevelItem.xml" xy="418,561" group="n139_o4m7"/>
+    <component id="n122_o4m7" name="g17" src="o4m7fqd" fileName="components/CompStoryLevelItem.xml" xy="116,763" group="n139_o4m7" controller="c2,1"/>
+    <component id="n123_o4m7" name="g16" src="o4m7fqd" fileName="components/CompStoryLevelItem.xml" xy="512,965" group="n139_o4m7" controller="c2,0"/>
+    <component id="n124_o4m7" name="g15" src="o4m7fqd" fileName="components/CompStoryLevelItem.xml" xy="288,1167" group="n139_o4m7"/>
+    <component id="n125_o4m7" name="g14" src="o4m7fqd" fileName="components/CompStoryLevelItem.xml" xy="45,1369" group="n139_o4m7"/>
+    <component id="n126_o4m7" name="g13" src="o4m7fqd" fileName="components/CompStoryLevelItem.xml" xy="128,1571" group="n139_o4m7" controller="c2,1"/>
+    <component id="n127_o4m7" name="g12" src="o4m7fqd" fileName="components/CompStoryLevelItem.xml" xy="490,1773" group="n139_o4m7" controller="c2,0"/>
+    <component id="n128_o4m7" name="g11" src="o4m7fqd" fileName="components/CompStoryLevelItem.xml" xy="150,1975" group="n139_o4m7" controller="c2,0"/>
+    <component id="n129_o4m7" name="g10" src="o4m7fqd" fileName="components/CompStoryLevelItem.xml" xy="538,2177" group="n139_o4m7" controller="c2,0"/>
+    <component id="n130_o4m7" name="g9" src="o4m7fqd" fileName="components/CompStoryLevelItem.xml" xy="334,2379" group="n139_o4m7" controller="c2,0"/>
+    <component id="n131_o4m7" name="g8" src="o4m7fqd" fileName="components/CompStoryLevelItem.xml" xy="64,2581" group="n139_o4m7" controller="c2,1"/>
+    <component id="n132_o4m7" name="g7" src="o4m7fqd" fileName="components/CompStoryLevelItem.xml" xy="546,2783" group="n139_o4m7"/>
+    <component id="n133_o4m7" name="g6" src="o4m7fqd" fileName="components/CompStoryLevelItem.xml" xy="212,2985" group="n139_o4m7" controller="c2,0"/>
+    <component id="n134_o4m7" name="g5" src="o4m7fqd" fileName="components/CompStoryLevelItem.xml" xy="41,3187" group="n139_o4m7" controller="c2,1"/>
+    <component id="n135_o4m7" name="g4" src="o4m7fqd" fileName="components/CompStoryLevelItem.xml" xy="444,3389" group="n139_o4m7"/>
+    <component id="n136_o4m7" name="g3" src="o4m7fqd" fileName="components/CompStoryLevelItem.xml" xy="241,3591" group="n139_o4m7"/>
+    <component id="n137_o4m7" name="g2" src="o4m7fqd" fileName="components/CompStoryLevelItem.xml" xy="125,3793" group="n139_o4m7"/>
+    <component id="n138_o4m7" name="g1" src="o4m7fqd" fileName="components/CompStoryLevelItem.xml" xy="336,3995" group="n139_o4m7"/>
+    <group id="n139_o4m7" name="n139" xy="31,157" size="1055,4090" group="n117_o4m7" advanced="true" layout="vt" lineGap="-50" excludeInvisibles="true">
+      <relation target="" sidePair="bottom-bottom"/>
+    </group>
+    <group id="n117_o4m7" name="n117" xy="31,157" size="1055,4242"/>
+  </displayList>
+  <relation target="n139_o4m7" sidePair="height-height"/>
+</component>

+ 2 - 1
FGUIProject/assets/Main/package.xml

@@ -693,10 +693,11 @@
     <font id="o4m7fr0" name="Font_Chapter_Small.fnt" path="/FontNew/" exported="true"/>
     <component id="o4m7fr5" name="ComDialogBg.xml" path="/components/"/>
     <image id="o4m7fr6" name="zxian_mask.png" path="/imagesNew/"/>
-    <component id="o4m7fr7" name="CompChapter.xml" path="/componentsLevel/" exported="true"/>
+    <component id="o4m7fr7" name="CompChapterScroll.xml" path="/componentsLevel/" exported="true"/>
     <image id="o4m7frd" name="zxgq_zddb.png" path="/imagesNew/"/>
     <image id="o4m7fre" name="zxgq_zdtb.png" path="/imagesNew/"/>
     <image id="o4m7frf" name="zxian_bg3_cover.png" path="/imagesNew/"/>
+    <component id="o4m7frg" name="Component8.xml" path="/"/>
   </resources>
   <publish name="" path="../GameClient/Assets/ResIn/UI/Main" packageCount="2" genCode="true" extractAlpha="true"/>
 </packageDescription>

+ 5 - 148
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Main/UI_CompChapter.cs

@@ -7,49 +7,8 @@ namespace UI.Main
     public partial class UI_CompChapter
     {
         public GComponent target;
-        public GImage m_imgBegin;
-        public UI_CompStoryLevelItem m_g00;
-        public UI_CompStoryLevelItem m_g01;
-        public UI_CompStoryLevelItem m_g02;
-        public UI_CompStoryLevelItem m_g03;
-        public UI_CompStoryLevelItem m_g04;
-        public UI_CompStoryLevelItem m_g05;
-        public UI_CompStoryLevelItem m_g06;
-        public UI_CompStoryLevelItem m_g07;
-        public UI_CompStoryLevelItem m_g08;
-        public UI_CompStoryLevelItem m_g09;
-        public UI_CompStoryLevelItem m_g010;
-        public UI_CompStoryLevelItem m_g011;
-        public UI_CompStoryLevelItem m_g012;
-        public UI_CompStoryLevelItem m_g013;
-        public UI_CompStoryLevelItem m_g014;
-        public UI_CompStoryLevelItem m_g015;
-        public UI_CompStoryLevelItem m_g016;
-        public UI_CompStoryLevelItem m_g017;
-        public UI_CompStoryLevelItem m_g018;
-        public UI_CompStoryLevelItem m_g019;
-        public UI_CompStoryLevelItem m_g020;
-        public GGraph m_grh19_1;
-        public GGraph m_grh18_0;
-        public GGraph m_grh17_0;
-        public GGraph m_grh16_1;
-        public GGraph m_grh15_1;
-        public GGraph m_grh14_0;
-        public GGraph m_grh13_0;
-        public GGraph m_grh12_1;
-        public GGraph m_grh11_1;
-        public GGraph m_grh10_0;
-        public GGraph m_grh9_0;
-        public GGraph m_grh8_0;
-        public GGraph m_grh7_0;
-        public GGraph m_grh6_0;
-        public GGraph m_grh5_0;
-        public GGraph m_grh4_1;
-        public GGraph m_grh3_0;
-        public GGraph m_grh2_0;
-        public GGraph m_grh1_0;
-        public GGraph m_grh0_0;
-        public const string URL = "ui://mfvz4q8ko4m7fr7";
+        public UI_CompChapterScroll m_compChapterScroll;
+        public const string URL = "ui://mfvz4q8kxuzk2e";
         public const string PACKAGE_NAME = "Main";
         public const string RES_NAME = "CompChapter";
         private static UI_CompChapter _proxy;
@@ -96,114 +55,12 @@ namespace UI.Main
 
         private void Init(GComponent comp)
         {
-            m_imgBegin = (GImage)comp.GetChild("imgBegin");
-            m_g00 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g00"));
-            m_g01 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g01"));
-            m_g02 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g02"));
-            m_g03 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g03"));
-            m_g04 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g04"));
-            m_g05 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g05"));
-            m_g06 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g06"));
-            m_g07 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g07"));
-            m_g08 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g08"));
-            m_g09 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g09"));
-            m_g010 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g010"));
-            m_g011 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g011"));
-            m_g012 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g012"));
-            m_g013 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g013"));
-            m_g014 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g014"));
-            m_g015 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g015"));
-            m_g016 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g016"));
-            m_g017 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g017"));
-            m_g018 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g018"));
-            m_g019 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g019"));
-            m_g020 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g020"));
-            m_grh19_1 = (GGraph)comp.GetChild("grh19_1");
-            m_grh18_0 = (GGraph)comp.GetChild("grh18_0");
-            m_grh17_0 = (GGraph)comp.GetChild("grh17_0");
-            m_grh16_1 = (GGraph)comp.GetChild("grh16_1");
-            m_grh15_1 = (GGraph)comp.GetChild("grh15_1");
-            m_grh14_0 = (GGraph)comp.GetChild("grh14_0");
-            m_grh13_0 = (GGraph)comp.GetChild("grh13_0");
-            m_grh12_1 = (GGraph)comp.GetChild("grh12_1");
-            m_grh11_1 = (GGraph)comp.GetChild("grh11_1");
-            m_grh10_0 = (GGraph)comp.GetChild("grh10_0");
-            m_grh9_0 = (GGraph)comp.GetChild("grh9_0");
-            m_grh8_0 = (GGraph)comp.GetChild("grh8_0");
-            m_grh7_0 = (GGraph)comp.GetChild("grh7_0");
-            m_grh6_0 = (GGraph)comp.GetChild("grh6_0");
-            m_grh5_0 = (GGraph)comp.GetChild("grh5_0");
-            m_grh4_1 = (GGraph)comp.GetChild("grh4_1");
-            m_grh3_0 = (GGraph)comp.GetChild("grh3_0");
-            m_grh2_0 = (GGraph)comp.GetChild("grh2_0");
-            m_grh1_0 = (GGraph)comp.GetChild("grh1_0");
-            m_grh0_0 = (GGraph)comp.GetChild("grh0_0");
+            m_compChapterScroll = (UI_CompChapterScroll)UI_CompChapterScroll.Create(comp.GetChild("compChapterScroll"));
         }
         public void Dispose(bool disposeTarget = false)
         {
-            m_imgBegin = null;
-            m_g00.Dispose();
-            m_g00 = null;
-            m_g01.Dispose();
-            m_g01 = null;
-            m_g02.Dispose();
-            m_g02 = null;
-            m_g03.Dispose();
-            m_g03 = null;
-            m_g04.Dispose();
-            m_g04 = null;
-            m_g05.Dispose();
-            m_g05 = null;
-            m_g06.Dispose();
-            m_g06 = null;
-            m_g07.Dispose();
-            m_g07 = null;
-            m_g08.Dispose();
-            m_g08 = null;
-            m_g09.Dispose();
-            m_g09 = null;
-            m_g010.Dispose();
-            m_g010 = null;
-            m_g011.Dispose();
-            m_g011 = null;
-            m_g012.Dispose();
-            m_g012 = null;
-            m_g013.Dispose();
-            m_g013 = null;
-            m_g014.Dispose();
-            m_g014 = null;
-            m_g015.Dispose();
-            m_g015 = null;
-            m_g016.Dispose();
-            m_g016 = null;
-            m_g017.Dispose();
-            m_g017 = null;
-            m_g018.Dispose();
-            m_g018 = null;
-            m_g019.Dispose();
-            m_g019 = null;
-            m_g020.Dispose();
-            m_g020 = null;
-            m_grh19_1 = null;
-            m_grh18_0 = null;
-            m_grh17_0 = null;
-            m_grh16_1 = null;
-            m_grh15_1 = null;
-            m_grh14_0 = null;
-            m_grh13_0 = null;
-            m_grh12_1 = null;
-            m_grh11_1 = null;
-            m_grh10_0 = null;
-            m_grh9_0 = null;
-            m_grh8_0 = null;
-            m_grh7_0 = null;
-            m_grh6_0 = null;
-            m_grh5_0 = null;
-            m_grh4_1 = null;
-            m_grh3_0 = null;
-            m_grh2_0 = null;
-            m_grh1_0 = null;
-            m_grh0_0 = null;
+            m_compChapterScroll.Dispose();
+            m_compChapterScroll = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 151 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Main/UI_CompChapterScroll.cs

@@ -0,0 +1,151 @@
+/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
+
+using FairyGUI;
+
+namespace UI.Main
+{
+    public partial class UI_CompChapterScroll
+    {
+        public GComponent target;
+        public GImage m_imgBegin;
+        public UI_CompStoryLevelItem m_g20;
+        public UI_CompStoryLevelItem m_g19;
+        public UI_CompStoryLevelItem m_g18;
+        public UI_CompStoryLevelItem m_g17;
+        public UI_CompStoryLevelItem m_g16;
+        public UI_CompStoryLevelItem m_g15;
+        public UI_CompStoryLevelItem m_g14;
+        public UI_CompStoryLevelItem m_g13;
+        public UI_CompStoryLevelItem m_g12;
+        public UI_CompStoryLevelItem m_g11;
+        public UI_CompStoryLevelItem m_g10;
+        public UI_CompStoryLevelItem m_g9;
+        public UI_CompStoryLevelItem m_g8;
+        public UI_CompStoryLevelItem m_g7;
+        public UI_CompStoryLevelItem m_g6;
+        public UI_CompStoryLevelItem m_g5;
+        public UI_CompStoryLevelItem m_g4;
+        public UI_CompStoryLevelItem m_g3;
+        public UI_CompStoryLevelItem m_g2;
+        public UI_CompStoryLevelItem m_g1;
+        public const string URL = "ui://mfvz4q8ko4m7fr7";
+        public const string PACKAGE_NAME = "Main";
+        public const string RES_NAME = "CompChapterScroll";
+        private static UI_CompChapterScroll _proxy;
+
+        public static UI_CompChapterScroll Create(GObject gObject = null)
+        {
+            var ui = new UI_CompChapterScroll();
+            if(gObject == null)
+            	ui.target =  (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
+            else
+            	ui.target =  (GComponent)gObject;
+            ui.Init(ui.target);
+            return ui;
+        }
+
+        public static UI_CompChapterScroll Proxy(GObject gObject = null)
+        {
+            if(_proxy == null)
+            {
+                _proxy = new UI_CompChapterScroll();
+            }
+            var ui = _proxy;
+            if(gObject == null)
+            	ui.target =  (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
+            else
+            	ui.target =  (GComponent)gObject;
+            ui.Init(ui.target);
+            return ui;
+        }
+
+        public static void ProxyEnd()
+        {
+            if (_proxy != null)
+            {
+                _proxy.Dispose();
+            }
+        }
+
+        public static void ClearProxy()
+        {
+            ProxyEnd();
+            _proxy = null;
+        }
+
+        private void Init(GComponent comp)
+        {
+            m_imgBegin = (GImage)comp.GetChild("imgBegin");
+            m_g20 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g20"));
+            m_g19 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g19"));
+            m_g18 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g18"));
+            m_g17 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g17"));
+            m_g16 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g16"));
+            m_g15 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g15"));
+            m_g14 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g14"));
+            m_g13 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g13"));
+            m_g12 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g12"));
+            m_g11 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g11"));
+            m_g10 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g10"));
+            m_g9 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g9"));
+            m_g8 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g8"));
+            m_g7 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g7"));
+            m_g6 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g6"));
+            m_g5 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g5"));
+            m_g4 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g4"));
+            m_g3 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g3"));
+            m_g2 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g2"));
+            m_g1 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g1"));
+        }
+        public void Dispose(bool disposeTarget = false)
+        {
+            m_imgBegin = null;
+            m_g20.Dispose();
+            m_g20 = null;
+            m_g19.Dispose();
+            m_g19 = null;
+            m_g18.Dispose();
+            m_g18 = null;
+            m_g17.Dispose();
+            m_g17 = null;
+            m_g16.Dispose();
+            m_g16 = null;
+            m_g15.Dispose();
+            m_g15 = null;
+            m_g14.Dispose();
+            m_g14 = null;
+            m_g13.Dispose();
+            m_g13 = null;
+            m_g12.Dispose();
+            m_g12 = null;
+            m_g11.Dispose();
+            m_g11 = null;
+            m_g10.Dispose();
+            m_g10 = null;
+            m_g9.Dispose();
+            m_g9 = null;
+            m_g8.Dispose();
+            m_g8 = null;
+            m_g7.Dispose();
+            m_g7 = null;
+            m_g6.Dispose();
+            m_g6 = null;
+            m_g5.Dispose();
+            m_g5 = null;
+            m_g4.Dispose();
+            m_g4 = null;
+            m_g3.Dispose();
+            m_g3 = null;
+            m_g2.Dispose();
+            m_g2 = null;
+            m_g1.Dispose();
+            m_g1 = null;
+            if(disposeTarget && target != null)
+            {
+                target.RemoveFromParent();
+                target.Dispose();
+            }
+            target = null;
+        }
+    }
+}

+ 11 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Main/UI_CompChapterScroll.cs.meta

@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 8e252dab3671d6e4e94b80cf8e56edaa
+MonoImporter:
+  externalObjects: {}
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

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

@@ -8,7 +8,7 @@ namespace UI.Main
     {
         public GComponent target;
         public GLoader m_loaBg;
-        public GComponent m_chapter;
+        public UI_CompChapter m_chapter;
         public GComponent m_valueBar;
         public GButton m_btnBack;
         public GButton m_btnHome;
@@ -70,7 +70,7 @@ namespace UI.Main
         private void Init(GComponent comp)
         {
             m_loaBg = (GLoader)comp.GetChild("loaBg");
-            m_chapter = (GComponent)comp.GetChild("chapter");
+            m_chapter = (UI_CompChapter)UI_CompChapter.Create(comp.GetChild("chapter"));
             m_valueBar = (GComponent)comp.GetChild("valueBar");
             m_btnBack = (GButton)comp.GetChild("btnBack");
             m_btnHome = (GButton)comp.GetChild("btnHome");
@@ -88,6 +88,7 @@ namespace UI.Main
         public void Dispose(bool disposeTarget = false)
         {
             m_loaBg = null;
+            m_chapter.Dispose();
             m_chapter = null;
             m_valueBar = null;
             m_btnBack = null;

+ 19 - 24
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryChapterView.cs

@@ -90,7 +90,7 @@ namespace GFGGame
             base.OnHide();
             _unPasslevelItem = null;
             _endLevelItem = null;
-            _ui.m_chapter.RemoveChildren(0, 0, true);
+            // _ui.m_chapter.RemoveChildren(0, 0, true);
             _valueBarController.OnHide();
 
             Timers.inst.Remove(CheckGuide);
@@ -131,27 +131,21 @@ namespace GFGGame
             var list = StoryLevelCfgArray.Instance.GetCfgsBytypeAndsubTypeAndchapterId(chapterCfg.type, chapterCfg.subType, chapterCfg.id);
             int endLevel = 0;
 
-            _compChapter = (GComponent)UIPackage.CreateObject("Main", "CompChapter");
-            float starPosY = _compChapter.GetChild("imgBegin").asImage.y;
-            _ui.m_chapter.scrollPane.touchEffect = true;
-            _ui.m_chapter.AddChild(_compChapter);
+            _compChapter = _ui.m_chapter.m_compChapterScroll.target;
+            float starPosY = _ui.m_chapter.m_compChapterScroll.m_imgBegin.y;
 
-            int lineGap = 4800 / list.Count;
-            for (int i = 0; i < list.Count; i++)
+            int lineGap = 4500 / list.Count;
+            for (int i = 0; i < 20; i++)
             {
-                GObject obj = UIPackage.CreateObject("Main", "CompStoryLevelItem");
-                _compChapter.AddChild(obj);
-                GObject posGrh0 = _compChapter.GetChild(string.Format("grh{0}_0", i));
-                GObject posGrh1 = _compChapter.GetChild(string.Format("grh{0}_1", i));
 
-                obj.SetPosition(posGrh0 == null ? posGrh1.x : posGrh0.x, starPosY - lineGap * i - 300, 0); ;
+                GObject obj = _ui.m_chapter.m_compChapterScroll.target.GetChild("g" + (i + 1));
+                obj.SetPosition(obj.x, starPosY - lineGap * i - 300, 0); ;
 
-                StoryLevelCfg levelCfg = list[i];
+                StoryLevelCfg levelCfg = i < list.Count ? list[i] : null;
                 UI_CompStoryLevelItem levelItem = UI_CompStoryLevelItem.Proxy(obj);
-                levelItem.target.data = levelCfg.id;
-                if (MainStoryDataManager.CheckLevelUnlock(levelCfg.id))
+                if (levelCfg != null && MainStoryDataManager.CheckLevelUnlock(levelCfg.id))
                 {
-                    levelItem.m_c2.selectedIndex = posGrh0 == null ? 1 : 0;
+                    levelItem.target.data = levelCfg.id;
                     levelItem.target.visible = true;
                     levelItem.target.onClick.Clear();
                     levelItem.target.onClick.Add(OnClickLevelItem);
@@ -204,15 +198,16 @@ namespace GFGGame
                 }
                 UI_CompStoryLevelItem.ProxyEnd();
             }
-
+            _ui.m_chapter.m_compChapterScroll.target.y = 0;// _ui.m_chapter.target.height - _ui.m_chapter.m_compChapterScroll.target.height;
             if (_endLevelItem != null)
             {
-                float tx = _endLevelItem.x + _endLevelItem.width / 2;
-                float ty = _endLevelItem.y + _endLevelItem.height / 2;
-                tx = tx - _ui.m_chapter.width / 2;
-                ty = ty - _ui.m_chapter.height / 2;
-                _ui.m_chapter.scrollPane.SetPosX(tx, false);
-                _ui.m_chapter.scrollPane.SetPosY(ty, false);
+                // float tx = _endLevelItem.x + _endLevelItem.width / 2;
+                // float ty = _endLevelItem.y + _endLevelItem.height / 2;
+                // tx = tx - _ui.m_chapter.target.width / 2;
+                // ty = ty - _ui.m_chapter.target.height / 2;
+                // _ui.m_chapter.target.scrollPane.SetPosX(tx, false);
+                // _ui.m_chapter.target.scrollPane.SetPosY(ty, false);
+                // _ui.m_chapter.target.scrollPane.ScrollTop();
             }
         }
 
@@ -335,7 +330,7 @@ namespace GFGGame
             bool isGuide9 = GuideController.TryGuide(_ui.m_btnHome, ConstGuideId.UP_CARD_STAR, 1, "点击返回主界面。");
             bool isGuide12 = GuideController.TryGuide(_ui.m_btnHome, ConstGuideId.ARENA_OPEN, 1, "点击返回主界面。");
 
-            _ui.m_chapter.scrollPane.touchEffect = !isGuide0 && !isGuide1 && !isGuide2 && !isGuide3 && !isGuide4 && !isGuide5 && !isGuide6 && !isGuide7 && !isGuide8 && !isGuide9 && !isGuide10;
+            _ui.m_chapter.target.scrollPane.touchEffect = !isGuide0 && !isGuide1 && !isGuide2 && !isGuide3 && !isGuide4 && !isGuide5 && !isGuide6 && !isGuide7 && !isGuide8 && !isGuide9 && !isGuide10;
 
         }
         protected override void TryCompleteGuide()

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