Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Drunkenoodle on November 14, 2012, 05:32:51 PM

Title: [SOLVED] GUI begin area background won't show
Post by: Drunkenoodle on November 14, 2012, 05:32:51 PM
Hi chaps,
Just having a mess about with the GUILayout begin area actions, I've set up some custom styles which seem to work fine with setting colors, fonts, etc, but the only thing that doesn't seem to work is when I set a background image, it doesn't seem to be showing at all.

It works fine however with assigning it to GUILayout boxes. I'm assigning the image in the custom style its self by the way.

Have I forgotten to do something or is it something that Unity just doesn't do?

Many thanks!
- D
Title: Re: GUI begin area background won't show
Post by: jeanfabre on November 15, 2012, 12:54:32 AM
Hi,

Do you have a scripted version of it that works? or are you only testing within PlayMaker.

could it be that you are have a typo when reference the custom style name?

bye,
 
Jean
Title: Re: GUI begin area background won't show
Post by: Drunkenoodle on November 15, 2012, 03:59:36 AM
Hi Jean,
I've actually just been using PlayMaker to handle it at this stage. It seems the the style names are all ok, in fact, the odd thing is that it's actually applying all the styles it seems apart from the background image.

Perhaps I'm using the wrong kind of image?

Cheers,
-D
Title: Re: GUI begin area background won't show
Post by: Drunkenoodle on November 17, 2012, 05:42:39 PM
Hey guys,
just taken a couple of screen grabs of what's been going on in PM with regards to setting up GUILayout areas. I'm not sure if I'm doing it right, as you can see on one of the screens I've added in the custom style name, and it's all correct in terms of spelling, etc.

But, if you check the output, it seems to have just written the name of the custom style, rather than actually apply it...

Am I missing something?

Cheers!
-D
Title: Re: GUI begin area background won't show
Post by: jeanfabre on November 19, 2012, 01:00:53 AM
Hi,

 ok, I think you found a bug on that action.

  I have attached a fixed version of GUILayoutBeginArea which will correctly apply the style given.

 I have also submitted this bug to PlayMaker for review.

bye,

 Jean


Title: Re: GUI begin area background won't show
Post by: Drunkenoodle on November 22, 2012, 08:07:36 AM
Hi,
Sorry for the late reply! Thanks very much for taking a look Jean, most appreciated. I'll get it hooked up this weekend.

Take care!
-D