NeoKaios-UtillI icon

UtillI

This lib provides useful feature to show some additional text in-game

Last updated 11 months ago
Total downloads 12090
Total rating 0 
Categories
Dependency string NeoKaios-UtillI-1.0.0
Dependants 2 other packages depend on this package

This mod requires the following mods to function

BepInExPackMTD-BepInExPack_20MTD-1.0.0 icon
BepInExPackMTD-BepInExPack_20MTD

BepInEx pack for 20 Minutes Till Dawn.

Preferred version: 1.0.0

README

UtillI Library

A BepInEx library for 20 Minutes Till Dawn.

Features

Offer a easy way for modders to display text during a game of 20MTD.

Create a Registration class

using UtillI;
public class ExampleRegistration : Registration
{
    public ExampleRegistration() : base(PanelPosition.BottomLeft) { }
    override public string GetUpdatedText()
    {
        return "Some text";
    }
}

For more example look at UtillI.Examples.

Register yourself

Simply register your instance of Registration to UtillIRegister:

using UtillI;
using UtillI.Examples;
UtillIRegister.Register(new ExampleRegistration());

Contributions

This UI lib was originally inspired by the BetterUI mod of @sloverlord

For modders

  • Clone the repo
  • Open repo in VSCode
  • Setup $GameDir variable in UtillI.csproj
  • dotnet build to build and deploy mod
  • dotnet publish to publish a .zip file