스킬 세팅 UI 기본 레이아웃 작업

This commit is contained in:
aube.lee
2025-02-10 15:15:17 +09:00
parent 6641a9e0ff
commit 4d15b23dfd
25 changed files with 3922 additions and 12 deletions

View File

@@ -52,8 +52,8 @@ namespace TON
// TODO : Custom Order After System Load
// UIManager.Show<IngameUI>(UIList.IngameUI);
UIManager.Show<LobbyUI>(UIList.LobbyUI);
// UIManager.Show<ControllerUI>(UIList.ControllerUI);
// UIManager.Show<LobbyUI>(UIList.LobbyUI);
UIManager.Show<ControllerUI>(UIList.ControllerUI);
// ControllerUI.Instance.Initalize();
// UIManager.Show<IngameOptionUI>(UIList.IngameOptionUI);
// UIManager.Show<CharaterCreateUI>(UIList.CharaterCreateUI);

View File

@@ -0,0 +1,11 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace TON
{
public class SkillInformationItem : MonoBehaviour
{
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: ed9616c40d2f25049a1cd91f744b3eff
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,41 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace TON
{
public class SkillScrollViewController : MonoBehaviour
{
public ScrollRect scrollRect;
public float space = 10f;
public GameObject uiPrefab;
public List<RectTransform> uiPrefabList = new List<RectTransform>();
private void Start()
{
scrollRect = GetComponent<ScrollRect>();
Initialize();
}
private void Initialize()
{
List<SkillData> skillDatas = SkillDataManager.Singleton.skillDatas;
float y = 0;
for (int i = 0; i < skillDatas.Count; i++)
{
SkillData skillData = skillDatas[i];
RectTransform rectTransform = Instantiate(uiPrefab, scrollRect.content).GetComponent<RectTransform>();
uiPrefabList.Add(rectTransform);
uiPrefabList[i].anchoredPosition = new Vector2(0f, -y);
y += uiPrefabList[i].sizeDelta.y;
}
scrollRect.content.sizeDelta = new Vector2(scrollRect.content.sizeDelta.x, y);
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 6986f5bc3c5b35f42a23825accde0f1c
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: