-
-
Notifications
You must be signed in to change notification settings - Fork 65
M_MSCLoader_Settings_AddButton
piotrulos edited this page Jan 15, 2026
·
9 revisions
Add button that can execute function.
Namespace: MSCLoader
Assembly: MSCLoader (in MSCLoader.dll) Version: 1.4.0.388
C#
public static <a href="T_MSCLoader_SettingsButton">SettingsButton</a> AddButton(
string name,
Action onClick,
<a href="T_MSCLoader_SettingsButton_ButtonIcon">SettingsButton.ButtonIcon</a> predefinedIcon,
bool visibleByDefault = true
)View Source
- String
- Text on the button
- Action
- What to do when button is clicked
- SettingsButton.ButtonIcon
- Optional icon (predefined from list, icons that mscloader menu uses)
- Boolean (Optional)
- Visible by default (default=true)
SettingsButton
SettingsButton
- How to install MSCLoader using MSCLInstaller
- How to install mods
- Official experimental linux support
- Unofficial tutorial for linux (wine/proton)
- Install Visual Studio for MSCLoader
- Install template for Visual Studio
- How to use templates
- Debugging your mods in Visual Studio
- Enable DevMode to help with debugging
- Uploading and creating Self update feature for your mod or reference
- How to create and use Asset Bundles