MODULE : Display-based GUIs

Started by Monsieur OUXX, Fri 13/10/2017 19:21:42

Previous topic - Next topic

Monsieur OUXX

This module lets you display an interactive GUI relying on the "Display" AGS built-in function rather than a regular function.





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 <<
 

eri0o

This link is broken, does anyone still have this?


eri0o


Monsieur OUXX

You beat me to it Mehrdad!

eir0o may I ask what your intentions are?
 

SMF spam blocked by CleanTalk