示例#1
0
 private void Awake()
 {
     all.Add(this);
     if (stringId > 0)
     {
         currnetText = LocalizationService.Get(stringId);
     }
 }
示例#2
0
 public void SetFormatedText(params object[] args)
 {
     localargs = args;
     if (stringId > 0)
     {
         currnetText = LocalizationService.Get(stringId);
     }
     DisplayText();
     CheckSize();
 }
示例#3
0
 public static void SetStringId(LocalText local, int stringId)
 {
     local.stringId = stringId;
     if (local.stringId > 0)
     {
         local.currnetText = LocalizationService.Get(stringId);
     }
     local.DisplayText();
     local.CheckSize();
 }
示例#4
0
 private void OnLanguageChanged()
 {
     if (stringId == 0)
     {
         return;
     }
     if (localargs == null)
     {
         currnetText = LocalizationService.Get(stringId);
         DisplayText();
         CheckSize();
     }
     else
     {
         SetFormatedText(localargs);
     }
 }
示例#5
0
 public Popup_Confirm Setup(int stringId, bool displayOkButton, bool displayCancelButton, System.Action <bool> callback)
 {
     return(Setup(LocalizationService.Get(stringId), displayOkButton, displayCancelButton, callback));
 }
示例#6
0
 public Popup_Confirm SetText(int stringId, params object[] args)
 {
     return(SetText(LocalizationService.Get(stringId), args));
 }