RICS Button System - Modder Guide vs 1.0.16 and newer #16
ekudram
started this conversation in
Show and tell
Replies: 2 comments
-
RICS Button Integration GuideQuick Start: Adding a Settings ButtonAdd this to your mod's startup code: [StaticConstructorOnStartup]
public static class MyMod_ButtonIntegration
{
static MyMod_ButtonIntegration()
{
// Check if RICS is loaded
if (ButtonUtils.IsRICSLoaded())
{
// Add a settings button for your mod
ButtonUtils.AddModSettingsButton(
modName: "My Awesome Mod",
settingsDialogType: typeof(MyMod_Dialog_Settings),
buttonLabel: "My Mod Settings",
iconPath: "UI/MyMod/SettingsIcon", // Optional
displayOrder: 1000
);
}
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Either method works XML is less C# code |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
RICS Button System - Modder Guide
Overview
RICS (Rimworld Interactive Chat Services) provides an extensible button system that allows modders to add their own buttons to both the main menu and quick-access toolbar.
Quick Start: Adding a Button
1. XML Definition
Create an XML file in your mod's
Defs/folder:Beta Was this translation helpful? Give feedback.
All reactions