playMaker

Author Topic: Expand GUI box up instead of down with additional lines of text[SOLVED]  (Read 3036 times)

mfenollar

  • Playmaker Newbie
  • *
  • Posts: 7
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
« Last Edit: September 11, 2013, 08:25:11 AM by jeanfabre »

mfenollar

  • Playmaker Newbie
  • *
  • Posts: 7
Re: Expand GUI box up instead of down with additional lines of text
« Reply #1 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!

mfenollar

  • Playmaker Newbie
  • *
  • Posts: 7
Re: Expand GUI box up instead of down with additional lines of text
« Reply #2 on: September 08, 2013, 07:08:44 PM »
bump

Anybody?  This one problem is holding me back somewhat.

Thanks

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Expand GUI box up instead of down with additional lines of text
« Reply #3 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

mfenollar

  • Playmaker Newbie
  • *
  • Posts: 7
Re: Expand GUI box up instead of down with additional lines of text
« Reply #4 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!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Expand GUI box up instead of down with additional lines of text
« Reply #5 on: September 11, 2013, 03:12:44 AM »
hi,

 use the action GUILayoutBeginAreaFollowObject. Are already using this?

bye,

 Jean

mfenollar

  • Playmaker Newbie
  • *
  • Posts: 7
Re: Expand GUI box up instead of down with additional lines of text
« Reply #6 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!