소스 검색

背包换ui

huangxiaoyue 1 년 전
부모
커밋
0ae9c9b9b3

+ 3 - 3
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Bag/UI_BagUI.cs

@@ -9,8 +9,8 @@ namespace UI.Bag
         public GComponent target;
         public GLoader m_loaBg;
         public GComponent m_comValueBar;
-        public GButton m_btnback;
         public GList m_list;
+        public GButton m_btnBack;
         public const string URL = "ui://2bsz6nelohbxn";
         public const string PACKAGE_NAME = "Bag";
         public const string RES_NAME = "BagUI";
@@ -60,15 +60,15 @@ namespace UI.Bag
         {
             m_loaBg = (GLoader)comp.GetChild("loaBg");
             m_comValueBar = (GComponent)comp.GetChild("comValueBar");
-            m_btnback = (GButton)comp.GetChild("btnback");
             m_list = (GList)comp.GetChild("list");
+            m_btnBack = (GButton)comp.GetChild("btnBack");
         }
         public void Dispose(bool disposeTarget = false)
         {
             m_loaBg = null;
             m_comValueBar = null;
-            m_btnback = null;
             m_list = null;
+            m_btnBack = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 4 - 2
GameClient/Assets/Game/HotUpdate/Views/Bag/BagView.cs

@@ -46,12 +46,12 @@ namespace GFGGame
 
             _valueBarController = new ValueBarController(_ui.m_comValueBar);
 
-            _ui.m_btnback.onClick.Add(OnBtnBackClick);
+            _ui.m_btnBack.onClick.Add(OnBtnBackClick);
             _ui.m_list.SetVirtual();
             _ui.m_list.itemRenderer = ListItemRender;
             _ui.m_list.onClickItem.Add(OnListItemClick);
 
-            _ui.m_loaBg.url = ResPathUtil.GetBgImgPath("tc_bjbj");
+            _ui.m_loaBg.url = ResPathUtil.GetBgImgPath("cp_beijing");
         }
 
         protected override void AddEventListener()
@@ -102,6 +102,8 @@ namespace GFGGame
             item.m_txtCount.text = itemData.num.ToString();
             item.target.data = itemCfg;
             item.m_QualityType.selectedIndex = itemCfg.rarity - 1;
+            item.m_ShowName.selectedIndex = 1;
+            item.m_txtName.text = itemCfg.name;
             //是礼包就加入红点
             if (((itemCfg.itemType == ConstItemType.USEABLE &&
                  itemCfg.subType == ConstItemSubType.USEABLE_GIFT_BAG_SELECTABLE) ||

BIN
GameClient/Assets/ResIn/UI/Bag/Bag_atlas0!a.png


BIN
GameClient/Assets/ResIn/UI/Bag/Bag_atlas0.png


BIN
GameClient/Assets/ResIn/UI/Bag/Bag_fui.bytes


BIN
GameClient/Assets/ResIn/UI/Card/Card_fui.bytes