"Modal (Pop-up Window)": SugarCube (v2.18)

Summary

This example uses the built-in Dialog object to setup(), add content ( wiki() ), and finally open() the dialog window. SugarCube also comes with additional functionality to adjust other settings.

Live Example

Download: Live Example

Twee Code

:: StoryTitle
SugarCube: Modal

:: Start
<<link "Open dialog!">>
    <<script>>
        Dialog.setup("Dialog");
        Dialog.wiki("Text within the dialog window");
        Dialog.open();
    <</script>>
<</link>>

Download: Twee Code

results matching ""

    No results matching ""