Skip to content
This repository has been archived by the owner on Jul 29, 2022. It is now read-only.
/ MezLoggerAPI-OLD- Public archive

A simple and easy to use on-screen hud TextAPI for VRChat mods using Melonloader

License

Notifications You must be signed in to change notification settings

Mezque/MezLoggerAPI-OLD-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MezLogger API

A simple easy to use on screen hud textAPI for VRChat mods using Melonloader!

Instructions for usage, Download MezLogger.cs from the repo and import it into your project

Notice you will need to be using at least C# V8 to use this, I personally use V9 in my own projects. You will receive errors trying to use it on a version below 8. This isn't a hard fix you will just need to go where your " csproj " file is and add <LangVersion>9</LangVersion> below the line <ProjectGUID> blablabla </ProjectGuid> ( so that LangVer becomes line 8 )

Once you have imported MezLogger.cs into your project and have set it up you will want to call MelonCoroutines.Start(MezLogger.MakeUI()); or whatever corresponds in your own project to this coroutine on application start to init MezLogger.

MezLogger works simularly to Melonlogger.Msg("Text") , Melonlogger.Warn("Text") & Melonlogger.Error("Text") but instead you write MezLogger.Msg("Text", 2.5f) , MezLogger.Warn("Text", 2.5f) or MezLogger.Error("Text", 2.5f) the float value after the text being how long its displayed on the HUD for (in seconds).

This in its self is not a mod! This is an API for other mods to use on-screen messages!


A mod using this api to log melonloader console messages to your HUD can be found here https://github.com/Mezque/MezLoggerMod

Credits

‣ Myself and Kaaku https://github.com/sankaaku for FumoClient, where the orignal logger comes from

About

A simple and easy to use on-screen hud TextAPI for VRChat mods using Melonloader

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages