瀏覽代碼

vip进度显示错误

zhaoyang 2 年之前
父節點
當前提交
6a1533ac28

+ 1 - 1
FGUIProject/assets/Store/components/ComVipLv.xml

@@ -16,6 +16,6 @@
     <component id="n44_hhx9" name="btnRule" src="psphtkg" fileName="components/BtnRule.xml" pkg="eg2y0ldp" xy="862,63" size="52,52">
     <component id="n44_hhx9" name="btnRule" src="psphtkg" fileName="components/BtnRule.xml" pkg="eg2y0ldp" xy="862,63" size="52,52">
       <Button icon="ui://p9mtgheofqortar"/>
       <Button icon="ui://p9mtgheofqortar"/>
     </component>
     </component>
-    <text id="n45_l500" name="txtTipsFull" xy="505,107" size="100,44" fontSize="32" color="#8c8580" ubb="true" vars="true" text="已满级"/>
+    <text id="n45_l500" name="txtTipsFull" xy="505,87" size="100,44" fontSize="32" color="#8c8580" ubb="true" vars="true" text="已满级"/>
   </displayList>
   </displayList>
 </component>
 </component>

+ 4 - 1
GameClient/Assets/Game/HotUpdate/Data/ShopViewManager.cs

@@ -24,9 +24,12 @@ namespace GFGGame
         {
         {
             UI_ComVipLv com = UI_ComVipLv.Proxy(obj);
             UI_ComVipLv com = UI_ComVipLv.Proxy(obj);
             com.m_txtLv.text = RoleDataManager.vipLv.ToString();
             com.m_txtLv.text = RoleDataManager.vipLv.ToString();
+            int level = RoleDataManager.vipLv;
+            ET.Log.Debug("vipLv:" + level);
             VipCfg vipCfg = VipCfgArray.Instance.GetCfg(RoleDataManager.vipLv);
             VipCfg vipCfg = VipCfgArray.Instance.GetCfg(RoleDataManager.vipLv);
             VipCfg nextVipCfg = VipCfgArray.Instance.GetCfg(RoleDataManager.vipLv + 1);
             VipCfg nextVipCfg = VipCfgArray.Instance.GetCfg(RoleDataManager.vipLv + 1);
-            com.m_txtTipsFull.visible = nextVipCfg == null;
+            com.m_txtTipsFull.visible = RoleDataManager.vipExp >= vipCfg.num && nextVipCfg == null;
+            com.m_grpTips.visible = nextVipCfg != null || RoleDataManager.vipExp < vipCfg.num;
             if (com.m_btnRule.data == null)
             if (com.m_btnRule.data == null)
             {
             {
                 com.m_btnRule.onClick.Add(RuleController.ShowRuleView);
                 com.m_btnRule.onClick.Add(RuleController.ShowRuleView);