Browse Source

调整盲盒UI

hexiaojie 5 months ago
parent
commit
859bec9dcc

+ 3 - 3
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/BlindBox/UI_Button1.cs

@@ -7,8 +7,8 @@ namespace UI.BlindBox
     public partial class UI_Button1
     {
         public GButton target;
-        public GLoader m_img;
         public GTextField m_num;
+        public GLoader m_newimg;
         public const string URL = "ui://zxtyrwszcf1ai";
         public const string PACKAGE_NAME = "BlindBox";
         public const string RES_NAME = "Button1";
@@ -56,13 +56,13 @@ namespace UI.BlindBox
 
         private void Init(GComponent comp)
         {
-            m_img = (GLoader)comp.GetChild("img");
             m_num = (GTextField)comp.GetChild("num");
+            m_newimg = (GLoader)comp.GetChild("newimg");
         }
         public void Dispose(bool disposeTarget = false)
         {
-            m_img = null;
             m_num = null;
+            m_newimg = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 2 - 1
GameClient/Assets/Game/HotUpdate/Views/ActivityMainTips/BlindBoxView.cs

@@ -82,7 +82,8 @@ namespace GFGGame
                 Log.Error(string.Format("没有{0}物品"));
             }
 
-            //_ui.m_buyBtn.m_img.url = ResPathUtil.GetIconPath(itemcfg);
+             _ui.m_buyBtn.m_newimg.url = "ui://eg2y0ldpuje19g0w";
+            // _ui.m_buyBtn.m_img.width = 5;
             _ui.m_boxList.numItems = 6;
             _ui.m_rewardList.numItems = 6;
             UpdateTime(null);

BIN
GameClient/Assets/ResIn/UI/BlindBox/BlindBox_atlas0!a.png


BIN
GameClient/Assets/ResIn/UI/BlindBox/BlindBox_atlas0.png


BIN
GameClient/Assets/ResIn/UI/BlindBox/BlindBox_fui.bytes