1
0
forked from akanyan/mu3-mods

feat(MPO): support enpatch

This commit is contained in:
2024-12-28 01:57:37 +00:00
parent e29f6aa588
commit c84898cb78
3 changed files with 2143 additions and 1 deletions

BIN
Assets/abort-en.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

File diff suppressed because it is too large Load Diff

View File

@ -2,6 +2,7 @@
using MU3.CustomUI;
using MU3.User;
using MU3.Util;
using System;
using System.Reflection;
using UnityEngine;
@ -57,7 +58,12 @@ class patch_OptionSelecterController: OptionSelecterController {
var pivot = oldSprites[0].pivot;
Texture2D tex = new Texture2D(2, 2);
tex.LoadImage(Mod.AbortTexture.Bytes);
if(Type.GetType("TranslationEntry") != null) {
// ENpatch is active
tex.LoadImage(Mod.AbortTextureEn.Bytes);
} else {
tex.LoadImage(Mod.AbortTexture.Bytes);
}
tex.anisoLevel = 1;
tex.filterMode = FilterMode.Bilinear;