How do I use a custom text GUI to display anything else?

Started by bx83, Mon 19/08/2019 09:05:48

Previous topic - Next topic

bx83

I have this:



It displays the current Description of a hotspot, object etc. at the top of the screen.
Then I learned about this:




Which allows custom borders for everything inside of it.
However - How do I make the 1st one the 2nd?

There is no option for adding a text label in the text window gui.

Snarky

Text Window GUIs can be used when you call Display(), and for Say() if you are using Sierra-style speech. See manual:
https://www.adventuregamestudio.co.uk/manual/ags13.htm#TextWin
https://www.adventuregamestudio.co.uk/manual/ags53.htm#SetTextWindowGUI
https://www.adventuregamestudio.co.uk/manual/ags38.htm#Gamevariables (game.speech_text_gui)

AFAIK you can't use them for non-blocking text display.

If you want a tiled border/background for some other GUI, you have to render it yourself. This alternate version of the SpeechBubble module has code for that. (The key functions are drawImageTiled() and parts of render() â€" specifically the "Draw outline", case eRenderSprite section.)

SMF spam blocked by CleanTalk