Adventure Game Studio | Forums

AGS Support => Modules, Plugins & Tools => Topic started by: Monsieur OUXX on Fri 13/10/2017 19:21:42

Title: MODULE : Display-based GUIs
Post by: Monsieur OUXX on Fri 13/10/2017 19:21:42
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 Sat 01/02/2020 17:32:31
This link is broken, does anyone still have this?
Title: Re: MODULE : Display-based GUIs
Post by: Mehrdad on Sun 02/02/2020 14:24:00
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 Sun 02/02/2020 17:18:10
Thank you Mehrdad!!!! :D
Title: Re: MODULE : Display-based GUIs
Post by: Monsieur OUXX on Mon 03/02/2020 12:33:34
You beat me to it Mehrdad!

eir0o may I ask what your intentions are?