Skip to content

modPauseMenuScreen

offthew edited this page Apr 28, 2022 · 1 revision

Table of Contents

modApi.pauseMenu:addPauseButton

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")
Clone this wiki locally