浏览代码

活动ui路径

zhangyuqian 9 月之前
父节点
当前提交
3ff6d4d9db
共有 1 个文件被更改,包括 10 次插入2 次删除
  1. 10 2
      GameClient/Assets/Game/HotUpdate/Views/DailyWelfare/DailyWelfareView.cs

+ 10 - 2
GameClient/Assets/Game/HotUpdate/Views/DailyWelfare/DailyWelfareView.cs

@@ -126,9 +126,17 @@ namespace GFGGame
             item.m_loaTitle.visible = true;
             if (ActivityDataManager.Instance.actLimitChargeId > 0)
             {
-                string path  = "xslc_" + openCfg.res;
-                item.m_loaIcon.url = ResPathUtil.GetActivityPath(path);//"ui://DailyWelfare/hdbn_xslc_" + openCfg.res;
+                //string path  = "xslc_" + openCfg.res;
+                item.m_loaIcon.url = ResPathUtil.GetActivityPath(openCfg.res);//"ui://DailyWelfare/hdbn_xslc_" + openCfg.res;
                 //item.m_loaTitle.url = "ui://DailyWelfare/hdbn_wz_xslc_" + openCfg.res;
+                if(openCfg.res == "")
+                {
+                    if (openCfg.id == 509)
+                    {
+                        item.m_loaIcon.url = ResPathUtil.GetActivityPath("hdbn_xslc_suxx", "png"); ;
+                        item.m_loaTitle.visible = false;
+                    }
+                }
                 item.m_loaTitle.visible = false;
             }
             else if (openCfg.id == 501)