Skip to content

Commit

Permalink
fix(ui): fix notification ui position (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xenira committed Mar 17, 2024
1 parent c56296a commit 7f08dfa
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions plugin/src/MainGamePatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ void Start()
new HudPatch(),
new ProductionTerminalPatch(),
new OmniseekerPatch(),
new SystemLogUiPatch(),
]).ToArray();

Logger.LogDebug("Hello World!");
Expand Down
20 changes: 20 additions & 0 deletions plugin/src/patch/main_game/ui/SystemLogUiPatch.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using PiUtils.Patches;
using PiUtils.Util;

namespace TechtonicaVR.Patches.MainGame.UI;

public class SystemLogUiPatch : GameComponentPatch<SystemLogUI>
{
protected override bool Apply(SystemLogUI component)
{
var log = GameObjectFinder.FindChildObjectByName("System Log", component.gameObject);
if (log == null)
{
return false;
}

log.transform.localPosition = new UnityEngine.Vector3(0, 500, 0);

return true;
}
}

0 comments on commit 7f08dfa

Please sign in to comment.