-
Notifications
You must be signed in to change notification settings - Fork 0
modPauseMenuScreen
offthew edited this page Apr 28, 2022
·
1 revision
Argument name | Type | Description | Require |
---|---|---|---|
id |
string | Name of your pauseButton (must be unique) | ✔️ |
requirePath |
string | Path of the file the button will load Example: resource.mods.myMod.myMenu
|
✔️ |
image |
string | Path of the image your button will use. Default is "mods/modLoader/img/pauseButtonBasic.png"
|
❌ |
Add a new button to the pauseMenu, when button is clicked it'll require the file in requirePath
.
Example:
modApi.pauseMenu:addPauseButton("MyButton","resource.mods.myMod.myMenu")