Initial commit
This commit is contained in:
commit
c4a24c9fdf
142 changed files with 15491 additions and 0 deletions
28
JotunnModStub/Trol/TMPDebug.cs
Normal file
28
JotunnModStub/Trol/TMPDebug.cs
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
using HarmonyLib;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace RacesOfValheim
|
||||
{
|
||||
[HarmonyPatch]
|
||||
public static class TMPDebug
|
||||
{
|
||||
[HarmonyPatch(typeof(Hud), "Awake")]
|
||||
[HarmonyPostfix]
|
||||
public static void Awake_Postfix(Hud __instance)
|
||||
{
|
||||
Transform food2 = __instance.transform.Find("hudroot/healthpanel/food2");
|
||||
if (food2 != null)
|
||||
{
|
||||
Transform time = food2.Find("time");
|
||||
if (time != null)
|
||||
{
|
||||
Component[] comps = time.GetComponents<Component>();
|
||||
foreach(var c in comps) {
|
||||
Jotunn.Logger.LogInfo("Time component: " + c.GetType().Name);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue