yeah, show/hide script call for Regular Button.
like this script call Eli.MobileControls.hideButtons() but for Regular Button
Hi there!
Sorry for the late answer.
Currently, if you use this script call, it will return an array with all available buttons, except for the Control Button:
As you can see, the first button is always the directional button. So if you want to hide the regular buttons only, you use that script call:
const scene = SceneManager._scene.constructor.name
for(const button of Eli.MobileControls.buttonList){
if(button instanceof Eli.MobileControls.RegularButton && button.parameters.scenes.includes(scene)){
button.removeFromScene()
}
}
But if you want to also hide the Dpad/Joystick, you use the same script call, but remove this:
button instanceof Eli.MobileControls.RegularButton &&