You've already forked rimworld-font-replacer
28 lines
836 B
C#
28 lines
836 B
C#
using HarmonyLib;
|
|
using System.Reflection;
|
|
using Verse;
|
|
using UnityEngine;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
namespace raptureparty.RimWorldFontReplacer
|
|
{
|
|
[StaticConstructorOnStartup]
|
|
class RimWorldFontReplacer : Mod
|
|
{
|
|
public RimWorldFontReplacer(ModContentPack content) : base(content)
|
|
{
|
|
base.GetSettings<Settings>();
|
|
var inst = new Harmony("rimworld.raptureparty.RimWorldFontReplacer");
|
|
inst.PatchAll();
|
|
}
|
|
|
|
public void Save() => LoadedModManager.GetMod<RimWorldFontReplacer>().GetSettings<Settings>().Write();
|
|
|
|
public override string SettingsCategory() => "RimWorld Font Replacer";
|
|
|
|
public override void DoSettingsWindowContents(Rect inRect) => Settings.Build(inRect);
|
|
}
|
|
}
|