浏览代码

fgui动效时间调整

huangxiaoyue 2 年之前
父节点
当前提交
a97d122254

+ 2 - 2
FGUIProject/assets/Common/components/Button19.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<component size="344,97" extention="Button">
+<component size="344,97" pivot="0.5,0.5" extention="Button">
   <controller name="button" pages="0,up,1,down,2,over,3,selectedOver" selected="0"/>
   <displayList>
     <loader id="n4_wono" name="icon" xy="0,0" size="344,97" url="ui://mk0fwx0xr9ritjf" autoSize="true"/>
@@ -7,5 +7,5 @@
       <relation target="" sidePair="width-width,height-height"/>
     </text>
   </displayList>
-  <Button/>
+  <Button downEffect="scale" downEffectValue=".95"/>
 </component>

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

@@ -34,8 +34,8 @@
     </list>
   </displayList>
   <transition name="openViewAction" options="4">
-    <item time="0" type="XY" target="n17_ed2z" tween="true" startValue="1098,1666" endValue="694,1666" duration="12"/>
-    <item time="0" type="XY" target="n1_slb4" tween="true" startValue="-155,80,-0.144,0.042" endValue="35,80,0.032,0.042" duration="12"/>
-    <item time="0" type="XY" target="n2_slb4" tween="true" startValue="-10,80,-0.009,0.042" endValue="170,80,0.157,0.042" duration="12"/>
+    <item time="0" type="XY" target="n17_ed2z" tween="true" startValue="694,1966" endValue="694,1666" duration="12"/>
+    <item time="6" type="XY" target="n1_slb4" tween="true" startValue="-155,80,-0.144,0.042" endValue="35,80,0.032,0.042" duration="12"/>
+    <item time="6" type="XY" target="n2_slb4" tween="true" startValue="-10,80,-0.009,0.042" endValue="170,80,0.157,0.042" duration="12"/>
   </transition>
 </component>

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

@@ -200,7 +200,7 @@ namespace GFGGame
             }
 
             _time = _ui.m_listChapter.numChildren + 1;
-            Timers.inst.Add(0.2f, _time, OnTimerUpdate, 1);
+            Timers.inst.Add(0.1f, _time, OnTimerUpdate, 1);
             _ui.m_listChapter.ScrollToView(currentChapterIndex);
         }
         private void CheckGuide(object param)

二进制
GameClient/Assets/ResIn/UI/Common/Common_fui.bytes


二进制
GameClient/Assets/ResIn/UI/Main/Main_fui.bytes