Browse Source

添加拍照的删除按钮

leiyasi 1 year ago
parent
commit
d17eda204d

+ 3 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/DressUp/UI_PhotographUI.cs

@@ -15,6 +15,7 @@ namespace UI.DressUp
         public GButton m_btnChoose;
         public GButton m_btnUp;
         public GButton m_btnDown;
+        public GButton m_btnDelete;
         public GButton m_btnGalleryJoin;
         public GTextField m_txtCount;
         public UI_ComItemList m_ComSelectRes;
@@ -73,6 +74,7 @@ namespace UI.DressUp
             m_btnChoose = (GButton)comp.GetChild("btnChoose");
             m_btnUp = (GButton)comp.GetChild("btnUp");
             m_btnDown = (GButton)comp.GetChild("btnDown");
+            m_btnDelete = (GButton)comp.GetChild("btnDelete");
             m_btnGalleryJoin = (GButton)comp.GetChild("btnGalleryJoin");
             m_txtCount = (GTextField)comp.GetChild("txtCount");
             m_ComSelectRes = (UI_ComItemList)UI_ComItemList.Create(comp.GetChild("ComSelectRes"));
@@ -88,6 +90,7 @@ namespace UI.DressUp
             m_btnChoose = null;
             m_btnUp = null;
             m_btnDown = null;
+            m_btnDelete = null;
             m_btnGalleryJoin = null;
             m_txtCount = null;
             m_ComSelectRes.Dispose();

+ 9 - 1
GameClient/Assets/Game/HotUpdate/Views/DressUp/PhotographView.cs

@@ -107,6 +107,7 @@ namespace GFGGame
 
             _ui.m_btnUp.onClick.Add(OnClickBtnUp);
             _ui.m_btnDown.onClick.Add(OnClickBtnDown);
+            _ui.m_btnDelete.onTouchBegin.Add(OnClickBtnDelete);
 
         }
 
@@ -604,7 +605,14 @@ namespace GFGGame
             PhotographUtil.Instance.SetLayer(memoryHitGameObj, "down");
         }
 
-
+        private void OnClickBtnDelete()
+        {
+            if(memoryHitGameObj == null || !_ui.m_comSelectBox.target.visible || !_ui.m_comSelectBox.m_btnDelete.visible)
+            {
+                return;
+            }
+            OnTouchBtnDeleteBegin();
+        }
 
         private void OnClickBtnPhotograph()
         {

BIN
GameClient/Assets/ResIn/UI/DressUp/DressUp_fui.bytes