|
@@ -122,7 +122,6 @@ namespace XUnity.AutoTranslator.Plugin.Core.Hooks
|
|
|
{
|
|
|
if( Settings.EnableUGUI || Settings.EnableUtage )
|
|
|
{
|
|
|
- UGUIHooks.HooksOverriden = SetupHook( KnownEvents.OnUnableToTranslateUGUI, AutoTranslationPlugin.Current.ExternalHook_TextChanged_WithResult );
|
|
|
_harmony.PatchAll( UGUIHooks.All );
|
|
|
}
|
|
|
}
|
|
@@ -135,7 +134,6 @@ namespace XUnity.AutoTranslator.Plugin.Core.Hooks
|
|
|
{
|
|
|
if( Settings.EnableTextMeshPro )
|
|
|
{
|
|
|
- TextMeshProHooks.HooksOverriden = SetupHook( KnownEvents.OnUnableToTranslateTextMeshPro, AutoTranslationPlugin.Current.ExternalHook_TextChanged_WithResult );
|
|
|
_harmony.PatchAll( TextMeshProHooks.All );
|
|
|
}
|
|
|
}
|
|
@@ -148,7 +146,6 @@ namespace XUnity.AutoTranslator.Plugin.Core.Hooks
|
|
|
{
|
|
|
if( Settings.EnableNGUI )
|
|
|
{
|
|
|
- NGUIHooks.HooksOverriden = SetupHook( KnownEvents.OnUnableToTranslateNGUI, AutoTranslationPlugin.Current.ExternalHook_TextChanged_WithResult );
|
|
|
_harmony.PatchAll( NGUIHooks.All );
|
|
|
}
|
|
|
}
|
|
@@ -161,8 +158,6 @@ namespace XUnity.AutoTranslator.Plugin.Core.Hooks
|
|
|
{
|
|
|
if( Settings.EnableIMGUI )
|
|
|
{
|
|
|
- IMGUIHooks.HooksOverriden = SetupHook( KnownEvents.OnUnableToTranslateIMGUI, AutoTranslationPlugin.Current.ExternalHook_TextChanged_WithResult );
|
|
|
-
|
|
|
_harmony.PatchAll( IMGUIHooks.All );
|
|
|
|
|
|
// This wont work in "newer" unity versions!
|