Skip to content

Commit

Permalink
fix: jötunn debug mode ascii art, sorry it took me so long
Browse files Browse the repository at this point in the history
  • Loading branch information
sirskunkalot committed Oct 20, 2023
1 parent 345d05a commit 1d4867e
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions JotunnLib/DebugUtils/DebugHelper.cs
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
using System;
using System;
using System.Linq;
using HarmonyLib;
using Jotunn.Managers;
using TMPro;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;

namespace Jotunn.DebugUtils
{
internal class DebugHelper : MonoBehaviour
{
private const string jtn = @"
__/\\__ __/\\___ __/\\__ ___ /\\ _/\\___ _/\\___
(_ _))(_ _))(__ __))/ //\ \\ (_ ))(_ ))
\ \\ / _ \\ / \\ \:.\\_\ \\ / : \\ / : \\
/\/ .:\\ /:.(_)) \\ /:. \\ \ :. ///:. | ///:. | //
private const string jtn = @"<mspace=10px>
__/\\\__ __/\\\___ __/\\\__ ___ /\\\ _/\\\___ _/\\\___
(_ _))(_ _))(__ __))/ //\ \\\ (_ ))(_ ))
\ \\\ / _ \\\ / \\\ \:.\\\_\ \\\ / : \\\ / : \\\
/\/ .:\\\ /:.(_)) \\\ /:. \\\ \ :. ///:. | ///:. | //
\__ _// \ _____// \__ // (_ ___))\___| // \___| //
\// \// \// \// \// \//
DEBUG MÖDE
";
</mspace>";

private static DebugHelper instance;

Expand Down Expand Up @@ -77,13 +77,7 @@ private void Player_OnSpawned_Postfix()
Terminal.m_cheat = true;
Console.instance.m_autoCompleteSecrets = true;
Console.instance.updateCommandList();
try
{
Font fnt = Font.CreateDynamicFontFromOSFont("Consolas", 14);
Console.instance.gameObject.GetComponentInChildren<Text>(true).font = fnt;
Console.instance.Print(jtn);
}
catch (Exception) { }
Console.instance.Print(jtn);
}

private void ProvidePasswordPatch(ZNet self, ZRpc rpc, bool needPassword)
Expand Down

0 comments on commit 1d4867e

Please sign in to comment.