Adventure Game Studio | Forums

AGS Support => Modules & Plugins => Topic started by: Monsieur OUXX on 13 Oct 2017, 19:21

Title: MODULE : Display-based GUIs
Post by: Monsieur OUXX on 13 Oct 2017, 19:21
This module lets you display an interactive GUI relying on the "Display" AGS built-in function rather than a regular function.


(https://78.media.tumblr.com/2bf0f83b164605e693954eb09b8f633d/tumblr_oxrxmw9kvy1tsfksfo1_500.png)


In a nutshell:
- it transforms any "Display" popup into an interactive popup
- it has the wams "flow" as the Display function (or Wait(1)): it blocks the game but still lets repeatedly_execute_always run once after each time it's called.
- you may have 3 types of controls : Labels, Buttons, TextBoxes
- it's based on text (because of the "Display" function) but you can still use pixel-perfect positioning of controls (horizontally, not vertically)
- you may use the keyboard left/right/up/down keys (to select the button or textbox), use "return" to validate your choice, or "escape" to close, etc.
- you may use the mouse to click on the buttons or textboxes

More generally, it's a basic toolbox that could become handy for anyone wishing to implement a GUI based on text, independently from the AGS context.

As a demo I implemented a Yes/No popup but you can also implement easily a popup window that prompts the user to enter text into an interactive textbox (moving cursor, backslash, "del" key, etc.).

>> DEMO GAME << (https://www.dropbox.com/s/fnfbzr1rhr4flfc/DisplayBasedGUIs.zip?dl=0)
Title: Re: MODULE : Display-based GUIs
Post by: eri0o on 01 Feb 2020, 17:32
This link is broken, does anyone still have this?
Title: Re: MODULE : Display-based GUIs
Post by: Mehrdad on 02 Feb 2020, 14:24
Hey Erico

Here you are
https://www.dropbox.com/s/r73au7pwhnkj83a/DisplayBasedGUIs.zip?dl=0
Title: Re: MODULE : Display-based GUIs
Post by: eri0o on 02 Feb 2020, 17:18
Thank you Mehrdad!!!! :D
Title: Re: MODULE : Display-based GUIs
Post by: Monsieur OUXX on 03 Feb 2020, 12:33
You beat me to it Mehrdad!

eir0o may I ask what your intentions are?