Can't seem to get Galv's Screen Button plugin to work

● ARCHIVED · READ-ONLY
Started by Snarkyfork 1 posts View original ↗
  1. I tried starting a new project to help narrow down what it might be. The plugin seems simple enough, I dropped the .js file in and activated it, placed the images in the system folder and copied the event that activates the buttons over to a map in the new game (changing the ID's for the maps accordingly). Here is a link to the plugin page:

    https://galvs-scripts.com/category/rmmv-plugins/

    Here is what the plugin states and like I said it seems pretty straight forward so I'm not sure what I'm doing wrong.

    Spoiler
    Galv's Screen Buttons

    ----------------------------------------------------------------------------

    This plugin enables you to create buttons on the screen that can be clicked

    and touched to run a script or emulate a button press.



    Buttons are given an id that can be used if you wish to replace an existing

    button with a new one during the game.



    ----------------------------------------------------------------------------

    SCRIPT CALLS

    ----------------------------------------------------------------------------



    Galv.SBTNS.addButton(id,'type','img',x,y,['actionType','action'],e);



    id = the id of the button. Use a unique number for each button.

    'type' = can currently be 'map' or 'mapX' with x being map id

    'img' = the image name located in /img/system/

    x = the x position of the button

    y = the y postiion of the button

    'actionType' = You can choose one of the following types here:

    'button' to emulate a button while button is being pressed

    'buttonT' to emulate a button being triggered

    'script' to run script code when button is pressed

    'event' to run a common event when button is pressed

    'action' = The resulting action relating to the actionType

    'button' action is used for key press. Some examples:

    'ok','cancel','shift','up','down','left','right'

    'script' action is the script call you wish to run

    'event' action is the common event id to run

    e = A number used for button opacity when events (such as show

    text) are running. 0-255. If it is 255 then the button

    will stay visible and still be able to be pressed.

    Less than 255 the button will be disabled. Leave this blank

    for the button to automatically be invisible during events.



    EXAMPLES:

    Galv.SBTNS.addButton(1,'map','BtnOk',570,500,['button','ok']);

    Galv.SBTNS.addButton(2,'map','BtnRun',690,500,['button','shift']);

    Galv.SBTNS.addButton(3,'map','BtnMenu',0,0,['script','SceneManager.push(Scene_Equip)']);

    Galv.SBTNS.addButton(4,'map1','BtnEvent',0,0,['event',1]);





    $gameSystem._hideBtns = status; // status can be true or false to hide

    // or show all buttons

    ----------------------------------------------------------------------------

    The only thing I'm not quite sure about is the last line that reads:

    "$gameSystem._hideBtns = status; // status can be true or false to hide // or show all buttons"

    Do I need to use a command of some sort to show the buttons?

    Edit: Nevermind, it seems as if you have to zone once before the images appear.