NPCEditStatus.cs 803 B

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. using UnityEngine;
  3. using wf;
  4. namespace SceneNPCEdit
  5. {
  6. public class NPCEditStatus : MonoBehaviour
  7. {
  8. public void Apply(NPCEditPlate plate, string additionalInformationText, string tnformationTextTerm = "")
  9. {
  10. this.labelLastName.text = plate.lastName;
  11. this.labelFirstName.text = plate.firstName;
  12. this.thumSprite.mainTexture = plate.thumbnail;
  13. this.thumSprite.SetDimensions(61, 88);
  14. this.additionalInformationText.text = additionalInformationText;
  15. Utility.SetLocalizeTerm(this.additionalInformationText, tnformationTextTerm, false);
  16. }
  17. [SerializeField]
  18. private UILabel labelLastName;
  19. [SerializeField]
  20. private UILabel labelFirstName;
  21. [SerializeField]
  22. private UILabel additionalInformationText;
  23. [SerializeField]
  24. private UITexture thumSprite;
  25. }
  26. }