Browse Source

替换资源

zhaoyang 2 years ago
parent
commit
7b1199ad55

+ 0 - 0
FGUIProject/assets/Studio/imgExpot/cyjd_tx_6.png → FGUIProject/assets/Studio/imgExpot/hanwudi.png


+ 0 - 0
FGUIProject/assets/Studio/imgExpot/cyjd_tx_8.png → FGUIProject/assets/Studio/imgExpot/mingxizong.png


+ 0 - 0
FGUIProject/assets/Studio/imgExpot/cyjd_tx_4.png → FGUIProject/assets/Studio/imgExpot/songhuizong.png


+ 0 - 0
FGUIProject/assets/Studio/imgExpot/cyjd_tx_3.png → FGUIProject/assets/Studio/imgExpot/xingcijing.png


+ 0 - 0
FGUIProject/assets/Studio/imgExpot/cyjd_tx_1.png → FGUIProject/assets/Studio/imgExpot/yangguifei.png


+ 0 - 0
FGUIProject/assets/Studio/imgExpot/cyjd_tx_5.png → FGUIProject/assets/Studio/imgExpot/yizugongzhu.png


+ 0 - 0
FGUIProject/assets/Studio/imgExpot/cyjd_tx_2.png → FGUIProject/assets/Studio/imgExpot/zhangzhongjing.png


+ 0 - 0
FGUIProject/assets/Studio/imgExpot/cyjd_tx_7.png → FGUIProject/assets/Studio/imgExpot/zhukerou.png


+ 8 - 8
FGUIProject/assets/Studio/package.xml

@@ -87,14 +87,14 @@
     <image id="psph3b" name="cwxf_zidi_2.png" path="/imgExpot/" exported="true"/>
     <image id="psph3b" name="cwxf_zidi_2.png" path="/imgExpot/" exported="true"/>
     <image id="psph3c" name="cwxf_zidi_3.png" path="/imgExpot/" exported="true"/>
     <image id="psph3c" name="cwxf_zidi_3.png" path="/imgExpot/" exported="true"/>
     <image id="psph3d" name="ejzjm_5.png" path="/images/"/>
     <image id="psph3d" name="ejzjm_5.png" path="/images/"/>
-    <image id="o4m73e" name="cyjd_tx_1.png" path="/imgExpot/" exported="true"/>
-    <image id="o4m73f" name="cyjd_tx_2.png" path="/imgExpot/" exported="true"/>
-    <image id="o4m73g" name="cyjd_tx_3.png" path="/imgExpot/" exported="true"/>
-    <image id="o4m73h" name="cyjd_tx_4.png" path="/imgExpot/" exported="true"/>
-    <image id="o4m73i" name="cyjd_tx_5.png" path="/imgExpot/" exported="true"/>
-    <image id="o4m73j" name="cyjd_tx_6.png" path="/imgExpot/" exported="true"/>
-    <image id="o4m73k" name="cyjd_tx_7.png" path="/imgExpot/" exported="true"/>
-    <image id="o4m73l" name="cyjd_tx_8.png" path="/imgExpot/" exported="true"/>
+    <image id="o4m73m" name="hanwudi.png" path="/imgExpot/" exported="true"/>
+    <image id="o4m73n" name="mingxizong.png" path="/imgExpot/" exported="true"/>
+    <image id="o4m73o" name="songhuizong.png" path="/imgExpot/" exported="true"/>
+    <image id="o4m73p" name="xingcijing.png" path="/imgExpot/" exported="true"/>
+    <image id="o4m73q" name="yangguifei.png" path="/imgExpot/" exported="true"/>
+    <image id="o4m73r" name="yizugongzhu.png" path="/imgExpot/" exported="true"/>
+    <image id="o4m73s" name="zhangzhongjing.png" path="/imgExpot/" exported="true"/>
+    <image id="o4m73t" name="zhukerou.png" path="/imgExpot/" exported="true"/>
   </resources>
   </resources>
   <publish name="" path="../GameClient/Assets/ResIn/UI/Studio" packageCount="2" genCode="true" extractAlpha="true"/>
   <publish name="" path="../GameClient/Assets/ResIn/UI/Studio" packageCount="2" genCode="true" extractAlpha="true"/>
 </packageDescription>
 </packageDescription>

+ 19 - 6
GameClient/Assets/Game/HotUpdate/Views/CommonGame/BuyCountView.cs

@@ -172,6 +172,11 @@ namespace GFGGame
         }
         }
         private void OnClickBtnPlus()
         private void OnClickBtnPlus()
         {
         {
+            if (_ui.m_btnPlus.grayed)
+            {
+
+                return;
+            }
             if (_count < _maxCanBuy)
             if (_count < _maxCanBuy)
             {
             {
                 _count += 1;
                 _count += 1;
@@ -181,6 +186,14 @@ namespace GFGGame
 
 
         private void OnClickBtnMinus()
         private void OnClickBtnMinus()
         {
         {
+            if (_ui.m_btnMinus.grayed)
+            {
+                if (_count <= _minBuyCount)
+                {
+                    PromptController.Instance.ShowFloatTextPrompt("小于最低购买次数");
+                }
+                return;
+            }
             _count -= 1;
             _count -= 1;
             _count = Math.Max(_minBuyCount, _count);
             _count = Math.Max(_minBuyCount, _count);
             UpdateCost();
             UpdateCost();
@@ -191,23 +204,23 @@ namespace GFGGame
 
 
             if (_count <= _minBuyCount)
             if (_count <= _minBuyCount)
             {
             {
-                _ui.m_btnMinus.enabled = false;
+                _ui.m_btnMinus.grayed = true;
             }
             }
             else
             else
             {
             {
-                _ui.m_btnMinus.enabled = true;
+                _ui.m_btnMinus.grayed = false;
 
 
             }
             }
 
 
             if (_count >= _maxCanBuy)
             if (_count >= _maxCanBuy)
             {
             {
-                _ui.m_btnPlus.enabled = false;
-                _ui.m_btnAll.enabled = false;
+                _ui.m_btnPlus.grayed = true;
+                _ui.m_btnAll.grayed = true;
             }
             }
             else
             else
             {
             {
-                _ui.m_btnPlus.enabled = true;
-                _ui.m_btnAll.enabled = true;
+                _ui.m_btnPlus.enabled = false;
+                _ui.m_btnAll.enabled = false;
             }
             }
 
 
         }
         }

BIN
GameClient/Assets/ResIn/UI/Studio/Studio_fui.bytes