UI 이미지 작업
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user