Dialogue box transparent? - please, help

This forum is meant for posting anything related to Adventure Maker that doesn't fit in the other forums.Please post technical questions in the Technical Support Forum!

Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support

Dialogue box transparent? - please, help

Postby Bzyk » Fri Jun 08, 2007 6:03 am

Hello, Friends,

can I make dialogue box transparent? For now dialogues appear in black rectangle which covers bottom part of the screen. Can I change it?

Best regards,
Martin
Luminous beings are we, not this crude matter...
User avatar
Bzyk
Frequent Poster
 
Posts: 142
Joined: Sat Feb 17, 2007 9:49 pm
Location: Poland

Postby GM-Support » Fri Jun 08, 2007 2:16 pm

Hi,

You cannot make it transparent, but you can change the color of the background.

For the general messages and the answers to the dialogues, you can use:

Code: Select all
DialogueCanvasObject.BackColor = RGB(X,Y,Z)


For the dialogue questions, you can use:

Code: Select all
MessageCanvasObject.BackColor = RGB(X,Y,Z)


In both cases you must replace X, Y, and Z with numbers comprised between 0 and 255. For example, you can get an orange color with RGB(255, 128, 0).

You can put the code in either the Advanced tab of the Frame Properties or the Advanced tab of the Project Properties.



Similarly, you can change the color of the font by using this code:

Code: Select all
MessageObject.ForeColor = RGB(X,Y,Z)


and you can use a different color for each of the questions of the dialogue, by using the following code:

Code: Select all
DialogueObject(NUMBER).ForeColor = RGB(X,Y,Z)


where NUMBER is the number of the question (the first question is number 1).


All those stuff can be easily guessed if you know either Visual Basic 6 or Visual Basic for Applications (included in Excel, Powerpoint, etc. form the Macros menu), and by referring to the table that is available at the bottom of following page in the AM Help document:
http://www.adventuremaker.com/help/vbscript_objects.htm


Best regards,
GM-Support :)
GM-Support
Forum Admin and Games Page admin
 
Posts: 2221
Joined: Thu Jun 05, 2003 7:52 pm

Postby Bzyk » Sat Jun 09, 2007 11:25 am

OK, thank you, GM! Sounds good to me!
Luminous beings are we, not this crude matter...
User avatar
Bzyk
Frequent Poster
 
Posts: 142
Joined: Sat Feb 17, 2007 9:49 pm
Location: Poland


Return to Adventure Maker General Discussion

Who is online

Users browsing this forum: No registered users and 3 guests

cron