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.
模組介紹 作者原文
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
- Add the dependency
In your plugin class:
[BepInDependency("com.rounds.gamemessagelib", BepInDependency.DependencyFlags.HardDependency)]
public class MyPlugin: BaseUnityPlugin {... }
- Add the using directive
using GameMessageLib;
- 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.
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。
下面這些內容需要先安裝,否則該模組不會生效: