Exemplo n.º 1
0
 public static void UnRegisterImage(UILocalizeImage uiImage)
 {
     if (_instance == null)
     {
         return;
     }
     _instance.InternalUnRegisterImage(uiImage);
 }
Exemplo n.º 2
0
 public static void RegisterImage(UILocalizeImage uiImage, string path, string pathExt, string folder)
 {
     if (_instance == null)
     {
         return;
     }
     _instance.InternalRegisterImage(uiImage, path, pathExt, folder);
 }
Exemplo n.º 3
0
 public static void ExecLocalizeImage(UILocalizeImage image, string path, string pathExt, string folder = "")
 {
     if (_instance == null)
     {
         return;
     }
     if (OnLocalizeImage != null && path.Length != 0 && image.languageType != _instance.languageType)
     {
         var result = OnLocalizeImage(path, pathExt, folder);
         GOUtils.SetImage(image.gameObject, result[1].ToString(), pathExt, result[2].ToString());
         image.languageType = _instance._languageType;
     }
 }
Exemplo n.º 4
0
 protected void InternalUnRegisterImage(UILocalizeImage uiImage)
 {
     _allLocalizerImage.Remove(uiImage);
 }
Exemplo n.º 5
0
 protected void InternalRegisterImage(UILocalizeImage uiImage, string path, string pathExt, string folder)
 {
     _allLocalizerImage[uiImage] = new string[] { path, pathExt, folder };
 }
Exemplo n.º 6
0
 void OnEnable()
 {
     _spSpriteMap = serializedObject.FindProperty("m_spriteMap");
     _target      = target as UILocalizeImage;
 }