-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b2affa
commit 0780ce3
Showing
7 changed files
with
126 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
using Assets.Scripts.Database; | ||
using HarmonyLib; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using UnityEngine.UI; | ||
|
||
namespace CustomLoadingScreens | ||
{ | ||
[HarmonyPatch(typeof(LoadingTxt), MethodType.Constructor)] | ||
internal class LocalLoadingTipsInfo_Patch | ||
{ | ||
|
||
public static List<LoadingTxt> LoadingTxt = new List<LoadingTxt>(); | ||
private static System.Random rand = new System.Random(); | ||
|
||
public static void Postfix(ref LoadingTxt __instance) | ||
{ | ||
|
||
LoadingTxt.Add(__instance); | ||
|
||
/* return; | ||
MelonLoader.MelonLogger.Msg("Start"); | ||
if (__instance.m_Txt == null) return; | ||
MelonLoader.MelonLogger.Msg(__instance.m_Txt.text); | ||
if (Settings.customText.Length == 0) return; | ||
__instance.m_Txt.text = Settings.customText[rand.Next(Settings.customText.Length)]; | ||
*/ | ||
} | ||
|
||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters