This plugin displays two buttons to navigate to previous and next scenes of your story.

json configuration

{
    "story": { ... },

    "plugins":
    {
        "engines":
        [
            {
                "uid": "org.forgejs.previousnextbuttons",
                "url": "PreviousNextButtons/"
            }
        ],

        "instances":
        [
            {
                "uid": "previousnextbuttons",
                "engine": "org.forgejs.previousnextbuttons",

                "options":
                {
                    "offset": 10,
                    "width": 50,
                    "height": 50
                }
            }
        ]
    }
}

options

  • offset - The offset of the button in pixels from both left and right border of your container (default is 10).
  • width - The width of your buttons (default is 50).
  • height - The height of your buttons (default is 50).
  • previous - The image ressource url for your previous button relative to the plugin folder (default is assets/previous-button.png).
  • next - The image ressource url for your next button relative to the plugin folder (default is assets/next-button.png).

actions

The exposed actions are :

  • show - Show the buttons.
  • hide - Hide the buttons.

7th Mar 2017