You are viewing a potentially older version of this package. View all versions.
bellusfennec-GameMessageLib-1.0.0 icon

GameMessageLib

A developer library for ROUNDS mods. Provides a simple in-game toast notification system — Info, Success, Warning, Error messages that slide in from the top.

Date uploaded a week ago
Version 1.0.0
Download link bellusfennec-GameMessageLib-1.0.0.zip
Downloads 1105
Dependency string bellusfennec-GameMessageLib-1.0.0

This mod requires the following mods to function

BepInEx-BepInExPack_ROUNDS-5.4.1100 icon
BepInEx-BepInExPack_ROUNDS

BepInEx pack for ROUNDS. Preconfigured and ready to use.

Preferred version: 5.4.1100

README

GameMessageLib

A developer utility mod for ROUNDS. Provides a simple in-game toast notification system that any mod can use.

Messages appear at the top-center of the screen, slide in smoothly, hold for a configurable duration, and fade out. Multiple messages stack vertically with automatic repositioning.


For Players

This is a library mod — it does nothing on its own. Install it if another mod requires it as a dependency.


For Developers

1. Add the dependency

In your plugin class:

[BepInDependency("com.rounds.gamemessagelib", BepInDependency.DependencyFlags.HardDependency)]
public class MyPlugin : BaseUnityPlugin { ... }

2. Add the using directive

using GameMessageLib;

3. Show messages

// Convenience methods
GameMessage.Info("Hello world");
GameMessage.Success("Card data loaded (42 cards)");
GameMessage.Warn("Using cached data");
GameMessage.Error("Connection failed");

// Full control
GameMessage.Show("Custom message", MessageType.Warning, duration: 5f);

MessageType values

Value Color
MessageType.Info Blue text, dark blue background
MessageType.Success Green text, dark green background
MessageType.Warning Yellow text, dark amber background
MessageType.Error Red text, dark red background

Default duration

5 seconds. Override via the duration parameter.


Feedback

Reach out on Telegram.

CHANGELOG

1.0.0

  • Initial release.
  • Toast notification system: Info, Success, Warning, Error.
  • Slide-in, hold, fade-out animation with smooth vertical stacking.