Pārlūkot izejas kodu

雅集建设满级报错

zhaoyang 2 gadi atpakaļ
vecāks
revīzija
7e80ecdedb

+ 9 - 9
FGUIProject/assets/League/LeagueConstructUI.xml

@@ -5,11 +5,11 @@
     <image id="n46_o9gh" name="n46" src="o9gh4q" fileName="images/biaotizi_8.png" xy="207,102"/>
     <component id="n73_o9gh" name="btnClose" src="a0cftl2" fileName="components/BtnClose.xml" pkg="eg2y0ldp" xy="913,51"/>
     <image id="n43_o9gh" name="n43" src="o9gh4u" fileName="images/lm_kuang_qifu.png" xy="118,187" group="n7_rv09"/>
-    <image id="n39_o9gh" name="n39" src="o9gh4g" fileName="images/lm_kuang_icon.png" xy="150,223" group="n7_rv09" pkg="eg2y0ldp"/>
+    <image id="n39_o9gh" name="n39" src="o9gh4g" fileName="imagesNew/lm_kuang_icon.png" pkg="eg2y0ldp" xy="150,223" group="n7_rv09"/>
     <loader id="n0_rv09" name="loaIcon" xy="197,267" size="127,127" group="n7_rv09" aspect="true" url="ui://eg2y0ldpu2u3tkq" fill="scale"/>
     <image id="n42_o9gh" name="n42" src="o9gh4f" fileName="images/lm_kuang_qifu_name.png" xy="135,435" group="n7_rv09"/>
-    <text id="n2_rv09" name="txtName" xy="201,429" pivot="0.5,0" size="107,48" group="n7_rv09" font="ui://eg2y0ldpa0cftks" fontSize="35" color="#5a3e16" align="center" text="宴客厅"/>
-    <image id="n40_o9gh" name="n40" src="a0cf2k" fileName="images/lm_db_lvl.png" xy="300,382" group="n44_o9gh" pkg="eg2y0ldp"/>
+    <text id="n2_rv09" name="txtName" xy="201,429" pivot="0.5,0" size="107,47" group="n7_rv09" font="ui://eg2y0ldpa0cftks" fontSize="35" color="#5a3e16" align="center" text="宴客厅"/>
+    <image id="n40_o9gh" name="n40" src="a0cf2k" fileName="imagesNew/lm_db_lvl.png" pkg="eg2y0ldp" xy="300,382" group="n44_o9gh"/>
     <text id="n41_o9gh" name="txtLv0" xy="301,376" pivot="0.5,0" size="35,44" group="n44_o9gh" font="ui://eg2y0ldpa0cftks" fontSize="32" color="#fffcf2" text="10"/>
     <group id="n44_o9gh" name="n44" xy="300,376" size="39,45" group="n7_rv09"/>
     <group id="n7_rv09" name="n7" xy="118,187" size="274,736" group="n10_rv09"/>
@@ -23,11 +23,11 @@
     <component id="n35_a0cf" name="btnUpLv0" src="a0cf31" fileName="components/Button20.xml" xy="160,792" group="n10_rv09"/>
     <group id="n10_rv09" name="n10" xy="118,187" size="274,736" group="n67_o9gh"/>
     <image id="n47_o9gh" name="n47" src="o9gh4u" fileName="images/lm_kuang_qifu.png" xy="412,187" group="n55_o9gh"/>
-    <image id="n48_o9gh" name="n48" src="o9gh4g" fileName="images/lm_kuang_icon.png" xy="444,223" group="n55_o9gh" pkg="eg2y0ldp"/>
+    <image id="n48_o9gh" name="n48" src="o9gh4g" fileName="imagesNew/lm_kuang_icon.png" pkg="eg2y0ldp" xy="444,223" group="n55_o9gh"/>
     <loader id="n49_o9gh" name="loaIcon1" xy="491,267" size="127,127" group="n55_o9gh" aspect="true" url="ui://eg2y0ldpu2u3tkq" fill="scale"/>
     <image id="n50_o9gh" name="n50" src="o9gh4f" fileName="images/lm_kuang_qifu_name.png" xy="429,435" group="n55_o9gh"/>
-    <text id="n51_o9gh" name="txtName1" xy="495,429" pivot="0.5,0" size="107,48" group="n55_o9gh" font="ui://eg2y0ldpa0cftks" fontSize="35" color="#5a3e16" align="center" text="小酒馆"/>
-    <image id="n52_o9gh" name="n52" src="a0cf2k" fileName="images/lm_db_lvl.png" xy="594,382" group="n54_o9gh" pkg="eg2y0ldp"/>
+    <text id="n51_o9gh" name="txtName1" xy="495,429" pivot="0.5,0" size="107,47" group="n55_o9gh" font="ui://eg2y0ldpa0cftks" fontSize="35" color="#5a3e16" align="center" text="小酒馆"/>
+    <image id="n52_o9gh" name="n52" src="a0cf2k" fileName="imagesNew/lm_db_lvl.png" pkg="eg2y0ldp" xy="594,382" group="n54_o9gh"/>
     <text id="n53_o9gh" name="txtLv1" xy="595,376" pivot="0.5,0" size="35,44" group="n54_o9gh" font="ui://eg2y0ldpa0cftks" fontSize="32" color="#fffcf2" text="10"/>
     <group id="n54_o9gh" name="n54" xy="594,376" size="39,45" group="n55_o9gh"/>
     <group id="n55_o9gh" name="n55" xy="412,187" size="274,736" group="n17_rv09"/>
@@ -50,11 +50,11 @@
     </component>
     <group id="n17_rv09" name="n17" xy="412,187" size="274,736" group="n67_o9gh"/>
     <image id="n57_o9gh" name="n57" src="o9gh4u" fileName="images/lm_kuang_qifu.png" xy="717,187" group="n65_o9gh"/>
-    <image id="n58_o9gh" name="n58" src="o9gh4g" fileName="images/lm_kuang_icon.png" xy="749,223" group="n65_o9gh" pkg="eg2y0ldp"/>
+    <image id="n58_o9gh" name="n58" src="o9gh4g" fileName="imagesNew/lm_kuang_icon.png" pkg="eg2y0ldp" xy="749,223" group="n65_o9gh"/>
     <loader id="n59_o9gh" name="loaIcon2" xy="796,267" size="127,127" group="n65_o9gh" aspect="true" url="ui://eg2y0ldpu2u3tkq" fill="scale"/>
     <image id="n60_o9gh" name="n60" src="o9gh4f" fileName="images/lm_kuang_qifu_name.png" xy="734,435" group="n65_o9gh"/>
-    <text id="n61_o9gh" name="txtName2" xy="800,429" pivot="0.5,0" size="107,48" group="n65_o9gh" font="ui://eg2y0ldpa0cftks" fontSize="35" color="#5a3e16" align="center" text="小金库"/>
-    <image id="n62_o9gh" name="n62" src="a0cf2k" fileName="images/lm_db_lvl.png" xy="899,382" group="n64_o9gh" pkg="eg2y0ldp"/>
+    <text id="n61_o9gh" name="txtName2" xy="800,429" pivot="0.5,0" size="107,47" group="n65_o9gh" font="ui://eg2y0ldpa0cftks" fontSize="35" color="#5a3e16" align="center" text="小金库"/>
+    <image id="n62_o9gh" name="n62" src="a0cf2k" fileName="imagesNew/lm_db_lvl.png" pkg="eg2y0ldp" xy="899,382" group="n64_o9gh"/>
     <text id="n63_o9gh" name="txtLv2" xy="900,376" pivot="0.5,0" size="35,44" group="n64_o9gh" font="ui://eg2y0ldpa0cftks" fontSize="32" color="#fffcf2" text="10"/>
     <group id="n64_o9gh" name="n64" xy="899,376" size="39,45" group="n65_o9gh"/>
     <group id="n65_o9gh" name="n65" xy="717,187" size="274,736" group="n28_rv09"/>

+ 3 - 3
FGUIProject/assets/League/components/Button20.xml

@@ -1,11 +1,11 @@
 <?xml version="1.0" encoding="utf-8"?>
 <component size="189,58" extention="Button">
-  <controller name="button" pages="0,up,1,down,2,over,3,selectedOver,4,disabled" selected="3"/>
+  <controller name="button" pages="0,up,1,down,2,over,3,selectedOver,4,disabled" selected="0"/>
   <displayList>
-    <image id="n7_o9gh" name="n7" src="o9gh4l" fileName="images/lm_an__weixuan_qifu.png" xy="0,0" pkg="eg2y0ldp">
+    <image id="n7_o9gh" name="n7" src="o9gh4l" fileName="imagesNew/an__weixuan_qifu.png" pkg="eg2y0ldp" xy="0,0">
       <gearDisplay controller="button" pages="4"/>
     </image>
-    <loader id="n4_u2u3" name="icon" xy="0,0" size="189,58" aspect="true" url="ui://eg2y0ldpo9gh4k" fill="scale" autoSize="true">
+    <loader id="n4_u2u3" name="icon" xy="0,0" size="189,58" aspect="true" url="ui://eg2y0ldpmbf1tn8" fill="scale" autoSize="true">
       <gearDisplay controller="button" pages="0,1,2,3"/>
     </loader>
     <text id="n3_u2u3" name="title" xy="64,9" pivot="0.5,0" size="60,39" font="ui://eg2y0ldpa0cftks" fontSize="28" color="#683c28" align="center" vars="true" text="升级">

+ 10 - 3
GameClient/Assets/Game/HotUpdate/Views/League/LeagueConstructView.cs

@@ -149,7 +149,11 @@ namespace GFGGame
             _ui.m_btnUpLv0.target.enabled = nextHallCfg == null ? false : true;
             _ui.m_btnUpLv0.m_txtTip.text = nextHallCfg == null ? "已满级" : "";
             _ui.m_btnUpLv0.m_comCost.visible = nextHallCfg == null ? false : true;
-            ItemUtil.UpdateItemNeedNum(_ui.m_btnUpLv0.m_comCost, hallCfg.consumeUpArr[0][0], hallCfg.consumeUpArr[0][1]);
+            _ui.m_btnUpLv0.m_comCost.visible = nextHallCfg != null;
+            if (nextHallCfg != null)
+            {
+                ItemUtil.UpdateItemNeedNum(_ui.m_btnUpLv0.m_comCost, hallCfg.consumeUpArr[0][0], hallCfg.consumeUpArr[0][1]);
+            }
 
 
         }
@@ -187,7 +191,7 @@ namespace GFGGame
             _ui.m_comHotel3.m_txtNextAdd.text = flowerLimitAdd.ToString();
             _ui.m_comHotel3.m_c1.selectedIndex = flowerLimitAdd > 0 ? 1 : 0;
 
-            ItemUtil.UpdateItemNeedNum(_ui.m_btnUpLv1.m_comCost, hotelCfg.consumeArr[0][0], hotelCfg.consumeArr[0][1]);
+
 
             if (nextHotelCfg == null)
             {
@@ -216,6 +220,8 @@ namespace GFGGame
                 _ui.m_btnUpLv1.m_txtTip.text = "";
                 _ui.m_btnUpLv1.m_comCost.visible = true;
                 _ui.m_btnUpLv1.target.enabled = true;
+                ItemUtil.UpdateItemNeedNum(_ui.m_btnUpLv1.m_comCost, hotelCfg.consumeArr[0][0], hotelCfg.consumeArr[0][1]);
+
             }
         }
 
@@ -238,7 +244,6 @@ namespace GFGGame
             _ui.m_comStore0.m_txtNextAdd.text = coinLimitAdd.ToString();
             _ui.m_comStore0.m_c1.selectedIndex = coinLimitAdd > 0 ? 1 : 0;
 
-            ItemUtil.UpdateItemNeedNum(_ui.m_btnUpLv2.m_comCost, storeCfg.consumeArr[0][0], storeCfg.consumeArr[0][1]);
 
             if (nextStoreCfg == null)
             {
@@ -267,6 +272,8 @@ namespace GFGGame
                 _ui.m_btnUpLv2.m_txtTip.text = "";
                 _ui.m_btnUpLv2.m_comCost.visible = true;
                 _ui.m_btnUpLv2.target.enabled = true;
+                ItemUtil.UpdateItemNeedNum(_ui.m_btnUpLv2.m_comCost, storeCfg.consumeArr[0][0], storeCfg.consumeArr[0][1]);
+
             }
         }
     }

BIN
GameClient/Assets/ResIn/UI/League/League_fui.bytes