浏览代码

田野调查上限提示

zhaoyang 3 年之前
父节点
当前提交
feee2e2462

+ 3 - 1
FGUIProject/assets/Field/FieldFightEndUI.xml

@@ -9,12 +9,14 @@
     <component id="n0_s20j" name="btnConfirm" src="ih7594" fileName="components/Button10.xml" pkg="mk0fwx0x" xy="278,535">
       <Button title="确定"/>
     </component>
-    <text id="n4_ohun" name="txtNum" xy="380,140" size="175,46" fontSize="34" color="#a17d5f" ubb="true" text="第20/20轮"/>
+    <text id="n4_ohun" name="txtNum" xy="380,140" pivot="0.5,0" size="175,46" fontSize="34" color="#a17d5f" ubb="true" text="第20/20轮"/>
     <image id="n5_ohun" name="n5" src="ehs99" fileName="images/yx_xiant_1.png" pkg="eg2y0ldp" xy="44,120"/>
     <text id="n7_ohun" name="txtHas" xy="338,463" pivot="0.5,0" size="260,49" visible="false" fontSize="36" color="#a17d5f" text="已拥有:38000"/>
     <text id="n8_ohun" name="n8" xy="326,466" size="148,49" group="n11_ohun" fontSize="36" color="#a17d5f" text="本次消耗"/>
     <loader id="n9_ohun" name="loaCost" xy="475,465" size="50,50" group="n11_ohun" url="ui://eg2y0ldpq08x4"/>
     <text id="n10_ohun" name="txtCostNum" xy="541,466" size="69,49" group="n11_ohun" fontSize="36" color="#a17d5f" text="x16"/>
     <group id="n11_ohun" name="n11" xy="326,465" size="284,50"/>
+    <text id="n12_b6vj" name="n12" xy="266,291" size="40,19" fontSize="12" text=""/>
+    <text id="n13_b6vj" name="txtTips" xy="468,316" pivot="0.5,0.5" anchor="true" size="324,54" fontSize="40" color="#a17d5f" text="本周奖励已达上限"/>
   </displayList>
 </component>

+ 3 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Field/UI_FieldFightEndUI.cs

@@ -14,6 +14,7 @@ namespace UI.Field
         public GTextField m_txtHas;
         public GLoader m_loaCost;
         public GTextField m_txtCostNum;
+        public GTextField m_txtTips;
         public const string URL = "ui://5oh3t798s20jd";
         public const string PACKAGE_NAME = "Field";
         public const string RES_NAME = "FieldFightEndUI";
@@ -68,6 +69,7 @@ namespace UI.Field
             m_txtHas = (GTextField)comp.GetChild("txtHas");
             m_loaCost = (GLoader)comp.GetChild("loaCost");
             m_txtCostNum = (GTextField)comp.GetChild("txtCostNum");
+            m_txtTips = (GTextField)comp.GetChild("txtTips");
         }
         public void Dispose(bool disposeTarget = false)
         {
@@ -78,6 +80,7 @@ namespace UI.Field
             m_txtHas = null;
             m_loaCost = null;
             m_txtCostNum = null;
+            m_txtTips = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/Field/FieldFightEndView.cs

@@ -45,6 +45,7 @@ namespace GFGGame
             _ui.m_txtCostNum.text = FieldDataManager.Instance.fieldResult.costNum.ToString();
             // _ui.m_txtHas.text = string.Format("已拥有:{0}", ItemDataManager.GetItemNum(FieldDataManager.Instance.fieldResult.bonusList[0].id));
             _ui.m_list.numItems = FieldDataManager.Instance.fieldResult.bonusList.Count;
+            _ui.m_txtTips.visible = _ui.m_list.numItems <= 0;
         }
         protected override void OnHide()
         {

二进制
GameClient/Assets/ResIn/UI/Field/Field_fui.bytes