forked from akanyan/mu3-mods
feat(MPO): add textures and fix an edge case
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
namespace MU3.Mod;
|
||||
|
||||
public static class InternalSortPreview {
|
||||
// This really shouldn't be a png but it's just one texture
|
||||
public static class InternalSortTexture {
|
||||
public static byte[] Bytes = {
|
||||
0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, 0x49, 0x48, 0x44, 0x52,
|
||||
0x00, 0x00, 0x00, 0xfe, 0x00, 0x00, 0x00, 0x79, 0x08, 0x02, 0x00, 0x00, 0x00, 0x96, 0x41, 0x0b,
|
||||
|
@ -22,7 +22,9 @@ class patch_UISortButton: UISortButton {
|
||||
}
|
||||
|
||||
Texture2D tex = new Texture2D(2, 2);
|
||||
tex.LoadImage(Mod.InternalSortPreview.Bytes);
|
||||
tex.LoadImage(Mod.InternalSortTexture.Bytes);
|
||||
tex.anisoLevel = 1;
|
||||
tex.filterMode = FilterMode.Bilinear;
|
||||
|
||||
newSprites[n] = Sprite.Create(tex, new Rect(0, 0, 254, 121), newSprites[0].pivot);
|
||||
|
||||
|
Reference in New Issue
Block a user