Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
hamstar0 committed May 23, 2022
1 parent d080b6b commit 73991a8
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions HUDElementsLib/API.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,16 @@ private static void MessageAboutHUD_If() {
//

void AddUsageMessage() {
msgMod = ModLoader.GetMod( "Messages" );
if( msgMod.Version < new Version(1, 4, 0, 3) ) {
return;
}

//

string id = "HUDElementsLibUsage";

try {
msgMod = ModLoader.GetMod( "Messages" );

bool isUnread = (bool)msgMod.Call( "IsUnread", id );

object rawParentMsg = msgMod.Call( "GetMessage", "Messages - Mod Info" ); //MessagesAPI.ModInfoCategoryMsg
Expand All @@ -29,7 +34,7 @@ void AddUsageMessage() {
Color? color = null;

msgMod.Call(
"AddMessage",
"AddColoredMessage",
"Reposition HUD elements via. hotkey", //title:
"Bind a key to activate Edit Mode to reposition custom HUD elements freely to your liking.", //description:
(Color?)color, //color:
Expand Down

0 comments on commit 73991a8

Please sign in to comment.