Jelajahi Sumber

替换绣坊资源

zhaoyang 2 tahun lalu
induk
melakukan
59a0ac01c9

+ 2 - 2
FGUIProject/assets/XiuFang/XiuFangUI.xml

@@ -1,8 +1,8 @@
 <?xml version="1.0" encoding="utf-8"?>
 <component size="1080,1920">
   <displayList>
-    <loader id="n0_9xlo" name="bg" xy="0,-240" size="1080,2400" url="ui://kv0ad4wy9xlo1">
-      <relation target="" sidePair="center-center,middle-middle"/>
+    <loader id="n0_9xlo" name="bg" xy="0,-240" size="1080,2400" url="ui://kv0ad4wy9xlo1" align="center" vAlign="middle" fill="scaleMatchWidth">
+      <relation target="" sidePair="width-width,center-center,middle-middle"/>
     </loader>
     <component id="n1_9xlo" name="btnBack" src="9xlo8" fileName="components/BtnBack.xml" pkg="eg2y0ldp" xy="35,80">
       <Button icon="ui://kv0ad4wy9xlo7"/>

+ 8 - 9
GameClient/Assets/Game/HotUpdate/Views/XiuFang/XiuFangView.cs

@@ -46,19 +46,18 @@ namespace GFGGame
         {
             base.OnShown();
 
-            _ui.m_component.target.scrollPane.SetPosX(0, false);
+            // _ui.m_component.target.scrollPane.SetPosX(0, false);
             _ui.m_component.m_btnClothingShop.m_c1.selectedIndex = FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(ClothingShopView).Name, false) ? 1 : 0;
             _ui.m_component.m_btnSuitSynthetic.m_c1.selectedIndex = FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(SuitSyntheticView).Name, false) ? 1 : 0;
             _ui.m_component.m_btnClothingUpgrade.m_c1.selectedIndex = FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(ClothingListView).Name, false) ? 1 : 0;
             _ui.m_component.m_btnDecompose.m_c1.selectedIndex = FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(ClothingDecomposeView).Name, false) ? 1 : 0;
 
 
-            GuideCfg cfg = GuideCfgArray.Instance.GetCfg(ConstGuideId.CLOTHING_DECOMPOSE);
-            if (GuideDataManager.currentGuideId == cfg.id)
-            {
-                // _ui.m_component.target.scrollPane.ScrollLeft();// SetPosX(0, false);
-                _ui.m_component.target.scrollPane.SetPosX(400, false);
-            }
+            // GuideCfg cfg = GuideCfgArray.Instance.GetCfg(ConstGuideId.CLOTHING_DECOMPOSE);
+            // if (GuideDataManager.currentGuideId == cfg.id)
+            // {
+            //     _ui.m_component.target.scrollPane.SetPosX(400, false);
+            // }
 
             UpdateRedDot();
             Timers.inst.AddUpdate(CheckGuide);
@@ -124,8 +123,8 @@ namespace GFGGame
 
         private void UpdateRedDot()
         {
-            RedDotController.Instance.SetComRedDot(_ui.m_component.m_btnClothingUpgrade.target, RedDotDataManager.Instance.GetClothingFosterRed(), "", 0, 200);
-            RedDotController.Instance.SetComRedDot(_ui.m_component.m_btnSuitSynthetic.target, RedDotDataManager.Instance.GetClothingSyntheticRed(), "", 0, 200);
+            RedDotController.Instance.SetComRedDot(_ui.m_component.m_btnClothingUpgrade.target, RedDotDataManager.Instance.GetClothingFosterRed(), "", 0, 30);
+            RedDotController.Instance.SetComRedDot(_ui.m_component.m_btnSuitSynthetic.target, RedDotDataManager.Instance.GetClothingSyntheticRed(), "", -20, 25);
         }
 
         protected override void UpdateToCheckGuide(object param)

TEMPAT SAMPAH
GameClient/Assets/ResIn/UI/XiuFang/XiuFang_fui.bytes