1
0
forked from akanyan/mu3-mods

feat: rework Pause

Now a dialog.

* Also fix the new BetterGiveUp panic restart
* Also move SortByInternal's PNG away from the root namespace
This commit is contained in:
2024-12-25 17:31:54 +00:00
parent 0ece7d4f42
commit 7fc75ca2b1
7 changed files with 98 additions and 59 deletions

View File

@ -1,4 +1,6 @@
public static class InternalSortPreview {
namespace MU3.Mod;
public static class InternalSortPreview {
// This really shouldn't be a png but it's just one texture
public static byte[] Bytes = {
0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, 0x49, 0x48, 0x44, 0x52,

View File

@ -22,7 +22,7 @@ class patch_UISortButton: UISortButton {
}
Texture2D tex = new Texture2D(2, 2);
tex.LoadImage(InternalSortPreview.Bytes);
tex.LoadImage(Mod.InternalSortPreview.Bytes);
newSprites[n] = Sprite.Create(tex, new Rect(0, 0, 254, 121), newSprites[0].pivot);