38 lines
894 B
C#
38 lines
894 B
C#
|
using System.Collections;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Text;
|
|||
|
using UnityEngine;
|
|||
|
using UnityEngine.UI;
|
|||
|
|
|||
|
public class CockpitUIModule : MonoBehaviour
|
|||
|
{
|
|||
|
[SerializeField]
|
|||
|
private UIPanel _previewPanel;
|
|||
|
[SerializeField]
|
|||
|
private Image _image;
|
|||
|
[SerializeField]
|
|||
|
private UITextShow _UITextShow;
|
|||
|
|
|||
|
public void ShowInfo(Sprite image, string description)
|
|||
|
{
|
|||
|
_image.sprite = image;
|
|||
|
_previewPanel.ShowPanel();
|
|||
|
|
|||
|
_UITextShow.ShowSubtitle
|
|||
|
(
|
|||
|
description,
|
|||
|
0.01f,
|
|||
|
5,
|
|||
|
null,
|
|||
|
() => { _previewPanel.HidePanel(); }
|
|||
|
);
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
[ContextMenu("Debug subtitre")]
|
|||
|
private void DebugSubtitre()
|
|||
|
{
|
|||
|
ShowInfo(null, "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>,<2C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>,<2C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>,<2C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>,<2C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>,<2C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>,<2C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>,");
|
|||
|
}
|
|||
|
}
|