forked from akanyan/mu3-mods
feat(MPO): support enpatch
This commit is contained in:
BIN
Assets/abort-en.png
Normal file
BIN
Assets/abort-en.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 33 KiB |
2136
Extras/MoreProfileOptions/MU3.Mod/AbortTextureEn.cs
Normal file
2136
Extras/MoreProfileOptions/MU3.Mod/AbortTextureEn.cs
Normal file
File diff suppressed because it is too large
Load Diff
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user