完善编辑器

This commit is contained in:
tangbin
2025-07-19 12:48:11 +08:00
parent 2df2efaa3e
commit b8b50ec90b
27 changed files with 360 additions and 124 deletions

View File

@@ -27,7 +27,6 @@ public class UIMonsterItem : UIBaseItem
public Button btnDel; //ɾ<><C9BE>
public Button btnCopy; //<2F><><EFBFBD><EFBFBD>
public Button btnHide; //<2F><><EFBFBD><EFBFBD>
public Button btnClickSelf; //<2F><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>
public List<string> paths;
//public int itemIdx;
public int pathIdx;
@@ -36,12 +35,12 @@ public class UIMonsterItem : UIBaseItem
public MonstersConfig.MonsterConfig monster;
// Start is called before the first frame update
void Awake()
protected override void Awake()
{
base.Awake();
groupId = -1;
btnDel.onClick.AddListener(RemoveSelf);
paths = new List<string>();
btnClickSelf.onClick.AddListener(OnClickSelf);
btnCopy.onClick.AddListener(OnCopySelf);
btnHide.onClick.AddListener(OnHideSelf);
txtPos.onEndEdit.AddListener(OnEndEditPos);
@@ -147,15 +146,6 @@ public class UIMonsterItem : UIBaseItem
}
return true;
}
private void OnClickSelf()
{
if (OnClick == null)
return;
OnClick(this);
OnClickItemSelf();
}
private void OnCopySelf()
{
if (OnCopyItem == null)