UI 이미지 작업

This commit is contained in:
aube.lee
2025-02-04 21:08:13 +09:00
parent 44777fdad6
commit 357a037f99
27 changed files with 1749 additions and 1006 deletions

View File

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

View File

@@ -17,6 +17,7 @@ namespace TON
public void SetCharaterData(Sprite image, string name, int i)
{
character_image.sprite = image;
character_image.enabled = true;
charater_name.text = name;
index = i;
}

View File

@@ -1,5 +1,6 @@
using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
@@ -8,11 +9,16 @@ namespace TON
public class LobbyUI : UIBase
{
public SerializableDictionary<string, Sprite> playerImages;
[SerializeField]
private TextMeshProUGUI characterName;
private void Start()
{
Image playerObj = GameObject.Find("TON.Player").GetComponent<Image>();
PlayerData player = PlayerDataManager.Singleton.player;
playerObj.sprite = playerImages.GetValueOrDefault(player.type);
characterName.text = player.name;
}
public void OnClickStageEntryButton()