시작화면 모달 수정

This commit is contained in:
geondo55
2025-05-13 14:49:57 +09:00
parent ca40a6bb4a
commit 14fef6bb18
8 changed files with 38 additions and 34 deletions

View File

@@ -1,3 +1,5 @@
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using XRLib.UI;
@@ -7,11 +9,14 @@ namespace XED.UI
public class Panel_AppSetting : PanelBase
{
private GameObject itemPrefab;
private List<GameObject> items = new();
private RectTransform Info;
public Button Button_Add;
public Button Button_Save;
public Action onRemove;
public override void AfterAwake()
{
itemPrefab = Resources.Load<GameObject>("Prefabs/UI/PRF_AppSettingItem");
@@ -26,16 +31,21 @@ namespace XED.UI
{
GameObject item = Instantiate(itemPrefab, Info);
item.transform.SetSiblingIndex(Info.childCount - 2);
items.Add(item);
}
private void Init()
{
foreach (GameObject item in items)
{
Destroy(item);
}
items.Clear();
}
private void OnClickSave()
{
}
public void Open(bool isOpen)
{
SetActive(isOpen);
}
}
}