Messages

This forum is meant for requesting technical support or reporting bugs.

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

Messages

Postby mercedes » Sat Dec 27, 2008 3:02 pm

Hi there..me again...:P

I have 3 Questions for messages;

Ok,

1.- The messages at the bottom...is there anyway to change them..in terms of actually changing the background? Like you would the Inventory....you can create an inventory background..I'm wondering if its possible to make the message space at the bottom..background different..

I know you can change it with code..in terms of color and font...

It would be neat if we could make the canvas..somewhat transparent..not all the way..just so u can still see the background of the frame...Or make it a different picture all together.


2.- Is there away to have messages..not pop up.


3- Can wingdings or webdings be used for fonts in the messages...

I've made an attachment to show what i mean for all three things..:D

Thanks..If not..for either..I would like to suggest it..
I know you can do this with Text...but i thought perhaps it might be nice to be able to modify the message canvas..:D

Peace
Attachments
3D_BG_Stock_26_by_IWS_stock.jpg
3D_BG_Stock_26_by_IWS_stock.jpg (83.34 KiB) Viewed 5693 times
User avatar
mercedes
VIP
 
Posts: 2460
Joined: Sun Mar 09, 2008 10:43 pm
Location: Canada..~

Postby Lyberodoggy » Sat Dec 27, 2008 9:50 pm

Why making your life difficult...? Use the text method :wink:
User avatar
Lyberodoggy
Administrator
 
Posts: 2526
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens

Postby mercedes » Sat Dec 27, 2008 10:05 pm

Well it would be nice to use the Action tab once in a while...also its for the actual canvas...its apain to have to draw that on every frame..plus use scripting...Just an idea anyways...

I gather the rest of questions..only GM can answer eh.....:(...

Ok well Thanks for response...Lyberodoggy..:D

Peace
User avatar
mercedes
VIP
 
Posts: 2460
Joined: Sun Mar 09, 2008 10:43 pm
Location: Canada..~

Postby GM-Support » Wed Dec 31, 2008 1:20 pm

Hi,

It should be easy to create a simple plugin (in pure VBScript, no OCX needed) that allows displaying some text at the bottom of the screen with a transparent background.

Here is how it could be done:
- dynamically create a new TextBoxObject with Action.LoadControl.
- position it at the bottom of the screen, make its Width equal to that of the game and make sure the text is center-aligned (using TextBoxObject(i).TextAlignment = 2).
- display some text on it and use a TimedEvent to make it disappear after X seconds, where "X" depends on the length of the text.
- when moving to another frame, make sure that the previous text has disappeared.

Lyberodoggy, I am sure you are able to create such a plugin. If you need any help, please feel free to ask.

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

Postby Lyberodoggy » Wed Dec 31, 2008 1:57 pm

OK :wink: You can count on me... can't be too difficult (Parser plugin was just like this)
User avatar
Lyberodoggy
Administrator
 
Posts: 2526
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens

Postby GM-Support » Wed Dec 31, 2008 1:59 pm

I am sure such a plugin will be useful to a lot of people here!
GM-Support
Forum Admin and Games Page admin
 
Posts: 2221
Joined: Thu Jun 05, 2003 7:52 pm

Postby Lyberodoggy » Wed Dec 31, 2008 4:39 pm

Lyberodoggy wrote:Yes... I 'm trying to deal with the non-transparency problem and I found this:
Set text1.boarderstyle =0
Set text1.backcolor = me.backcolour

But I think that 'me' references are not available in AM


Old post deleted

Well took some time after all... :S
here's the very first version, soon to be fixed...

I 've got a problem with the multiline function. Can't get it to work... Getting the message: "Multiline cannot be set during runtime"
Please help me with this... I will then use the script used in TypeEffects to support the multiline using +vblf+
Attachments
Custom Messages 1_0.zip
(1.07 KiB) Downloaded 385 times
User avatar
Lyberodoggy
Administrator
 
Posts: 2526
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens

Postby Chromegloss55 » Wed Dec 31, 2008 6:40 pm

Your correct btw, "me" references are not allowed. Perhaps in a future revision they will be because they'd make things a lot more convenient when it comes to accessing system settings, the clipboard etc.
Chromegloss - Vanishes and then re-appears at complete random. [Working on Advanced Section of VBScript guide]
Chromegloss55
Forum Master
 
Posts: 630
Joined: Sat Nov 03, 2007 2:49 pm
Location: God Knows!

Postby mercedes » Thu Jan 01, 2009 12:36 am

I 've got a problem with the multiline function. Can't get it to work... Getting the message: "Multiline cannot be set during runtime"
Please help me with this... I will then use the script used in TypeEffects to support the multiline using +vblf+


The multiline..does not work with AM...trust me i fought with that one..with textboxes..remember..?..lol....and vblf doens't work..:(


I think the only thing that would work is a timed event..making the next line come along in the same place...one line at a time i guess..which is good too..

Although ive never displayed more than one line in the message box in AM..under Action TAB..not sure if it even works there..:?

Unless another control box supports TEXT...:idea: and multi lines..

I can't wait to see this...BTW..:D...Thanks for working on this..!~

I saw this feature in a game i was playing...and i loved the fact that the area was the transparent...and the messages..simply appeared on screen..like there was no action down at the bottom..which i found kinda neat..Not saying this couldn' be done with text..Just would be easier this way..and no scription required..:P

Peace
User avatar
mercedes
VIP
 
Posts: 2460
Joined: Sun Mar 09, 2008 10:43 pm
Location: Canada..~

Postby GM-Support » Thu Jan 01, 2009 2:11 pm

Setting MultiLine to a TextBoxObject is indeed not possible with AM 4.5.2.

A solution could be to use a "Text" object (and set it with Text.Caption="the message") instead of a TextBoxObject. Another advantage is that Text objects support background transparency. You can try with Text(0), which is already created and ready to use.

I will let you know if I come up with more ideas.

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

Postby Lyberodoggy » Thu Jan 01, 2009 3:50 pm

Thanks... didn't know about text(0) (i found out though with the index variable not initialized in the plugin, the textbox manipulated was the textboxobject(0) which was already there...


Is there a way to actually load texts (vblabels) with code just like other controls, or use CreateObject(objecttype)?
User avatar
Lyberodoggy
Administrator
 
Posts: 2526
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens

Postby GM-Support » Sat Jan 03, 2009 1:20 am

Lyberodoggy wrote:Is there a way to actually load texts (vblabels) with code just like other controls, or use CreateObject(objecttype)?


You should be able to use Action.LoadControl in the same way as you load the other types of controls. Please note that the Text() array is the one that is used for the text messages that people create on the frame background (by right-clicking on the frame background in the frame editor). Therefore it is probably a good idea to use an index such as 999, or another trick like that.

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

Postby Lyberodoggy » Sat Jan 03, 2009 9:36 am

I used text(0) and I 've done some progress, but .alignment doesn't work so I have to find a workaround...
User avatar
Lyberodoggy
Administrator
 
Posts: 2526
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens


Return to Adventure Maker Technical Support and Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests