public static void UnRegisterImage(UILocalizeImage uiImage) { if (_instance == null) { return; } _instance.InternalUnRegisterImage(uiImage); }
public static void RegisterImage(UILocalizeImage uiImage, string path, string pathExt, string folder) { if (_instance == null) { return; } _instance.InternalRegisterImage(uiImage, path, pathExt, folder); }
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; } }
protected void InternalUnRegisterImage(UILocalizeImage uiImage) { _allLocalizerImage.Remove(uiImage); }
protected void InternalRegisterImage(UILocalizeImage uiImage, string path, string pathExt, string folder) { _allLocalizerImage[uiImage] = new string[] { path, pathExt, folder }; }
void OnEnable() { _spSpriteMap = serializedObject.FindProperty("m_spriteMap"); _target = target as UILocalizeImage; }