Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: mfenollar on September 01, 2013, 10:23:11 PM

Title: Expand GUI box up instead of down with additional lines of text[SOLVED]
Post by: mfenollar on September 01, 2013, 10:23:11 PM
Hi all,

I have a GUI box that I'm using as speech bubbles above the heads of characters.  Does anybody know of a way to expand the box up instead of down with additional lines of text?  There aren't any options I can see within the GUISkin.

Thanks
Title: Re: Expand GUI box up instead of down with additional lines of text
Post by: mfenollar on September 03, 2013, 06:19:38 AM
I'll elaborate.  I have an object with an FSM that drives the dialogue.  The setup is:
GUILayout Begin Area Follow Object
GUILayout Box
GUILayout End Area

The GUI Box is set to follow a character above its head, but with multiline text the box expands down.  Is there a way to have the box expand up instead?

I'm fairly new to Unity and Playmaker, any help would be much appreciated!
Title: Re: Expand GUI box up instead of down with additional lines of text
Post by: mfenollar on September 08, 2013, 07:08:44 PM
bump

Anybody?  This one problem is holding me back somewhat.

Thanks
Title: Re: Expand GUI box up instead of down with additional lines of text
Post by: jeanfabre on September 09, 2013, 08:14:39 AM
Hi,

 uhm, I am not sure there is a way to do that easily. what I would do is try to set up a guilayout area with an offset so that it starts way above your anchor point, and then in your layoutm, you would have a vertical layout with first a flexible space and then your content. in effect you would have a space that starts way above your anchor point, but all constraints to start from the bottom because of the flexible space.

 does that make sense?

bye,

 Jean
Title: Re: Expand GUI box up instead of down with additional lines of text
Post by: mfenollar on September 10, 2013, 06:00:18 AM
Thanks!  It works perfectly, I'm just having trouble getting it to work following an object.  I'll keep trying and see how I go.

Much appreciated!
Title: Re: Expand GUI box up instead of down with additional lines of text
Post by: jeanfabre on September 11, 2013, 03:12:44 AM
hi,

 use the action GUILayoutBeginAreaFollowObject. Are already using this?

bye,

 Jean
Title: Re: Expand GUI box up instead of down with additional lines of text
Post by: mfenollar on September 11, 2013, 07:13:02 AM
Hi Jean,

I was using that action but I must have messed something up along the way, when I tried it again it worked.

Thanks very much for your time, you've helped me a lot!