12345678910111213141516171819202122232425262728293031 |
- using System;
- using UnityEngine;
- using wf;
- namespace SceneNPCEdit
- {
- public class NPCEditStatus : MonoBehaviour
- {
- public void Apply(NPCEditPlate plate, string additionalInformationText, string tnformationTextTerm = "")
- {
- this.labelLastName.text = plate.lastName;
- this.labelFirstName.text = plate.firstName;
- this.thumSprite.mainTexture = plate.thumbnail;
- this.thumSprite.SetDimensions(61, 88);
- this.additionalInformationText.text = additionalInformationText;
- Utility.SetLocalizeTerm(this.additionalInformationText, tnformationTextTerm, false);
- }
- [SerializeField]
- private UILabel labelLastName;
- [SerializeField]
- private UILabel labelFirstName;
- [SerializeField]
- private UILabel additionalInformationText;
- [SerializeField]
- private UITexture thumSprite;
- }
- }
|