Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
Are there any commands I might be using to hide or show the buttons? by events

Hi there!

The plugin lets you create a special button, that when pressed, will hide/show all other buttons.

But you could also use the script call:

  • Eli.MobileControls.hideButtons() // Hide the buttons.
  • Eli.MobileControls.showButtons() // Show the buttons.

hi , very good plugin. nice work . 
maybe this post is old but I have a question : can you turn on/off the plugin with a plugin command or a script call ? like turn it off in certain maps ? not just hide,   turning the plugin off like in a "character select scene"

Hi there!

On regular and Dpad type buttons, you can specify a condition for the buttons to show on the plugin parameter.

If you want it to not show on the maps, you can use this:

return !([10, 20, 35].includes($gameMap.mapId()))

This will return true, if the current map id is not any of those listed inside the brackets. So just keep listing the map ids you do not want to show the buttons.

Another way is hide/show by using script calls:

Eli.MobileControls.hideButtons()

or

Eli.MobileControls.showButtons()

thx for the reply :),   ive found a side B solution with a paralel event with this script call on it

Eli.MobileControls.showButtons()
Eli.MobileControls.parameters.disableScreenMove = true;

Nice! Have fun :)