Jibble

Author Topic: MODULE : Display-based GUIs  (Read 1865 times)

Monsieur OUXX

  • Mittens Vassal
  • Cavefish
  • Mittens Half Initiate
    • I can help with proof reading
    • I can help with translating
    • I can help with voice acting
    • Monsieur OUXX worked on one or more games that won an AGS Award!
    •  
    • Monsieur OUXX worked on one or more games that was nominated for an AGS Award!
MODULE : Display-based GUIs
« 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.





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

Re: MODULE : Display-based GUIs
« Reply #1 on: 01 Feb 2020, 17:32 »
This link is broken, does anyone still have this?

My official site: http://www.pershaland.ir/

eri0o

Re: MODULE : Display-based GUIs
« Reply #3 on: 02 Feb 2020, 17:18 »
Thank you Mehrdad!!!! :D

Monsieur OUXX

  • Mittens Vassal
  • Cavefish
  • Mittens Half Initiate
    • I can help with proof reading
    • I can help with translating
    • I can help with voice acting
    • Monsieur OUXX worked on one or more games that won an AGS Award!
    •  
    • Monsieur OUXX worked on one or more games that was nominated for an AGS Award!
Re: MODULE : Display-based GUIs
« Reply #4 on: 03 Feb 2020, 12:33 »
You beat me to it Mehrdad!

eir0o may I ask what your intentions are?