Browse Source

活动ui路径

zhangyuqian 9 months ago
parent
commit
3ff6d4d9db

+ 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)