playMaker

Author Topic: [SOLVED] GUI begin area background won't show  (Read 3184 times)

Drunkenoodle

  • Playmaker Newbie
  • *
  • Posts: 25
    • View Profile
[SOLVED] GUI begin area background won't show
« on: November 14, 2012, 03: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
« Last Edit: November 22, 2012, 06:08:02 AM by Drunkenoodle »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 13857
  • Official Playmaker Support
    • View Profile
Re: GUI begin area background won't show
« Reply #1 on: November 14, 2012, 10:54:32 PM »
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

Drunkenoodle

  • Playmaker Newbie
  • *
  • Posts: 25
    • View Profile
Re: GUI begin area background won't show
« Reply #2 on: November 15, 2012, 01: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

Drunkenoodle

  • Playmaker Newbie
  • *
  • Posts: 25
    • View Profile
Re: GUI begin area background won't show
« Reply #3 on: November 17, 2012, 03: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

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 13857
  • Official Playmaker Support
    • View Profile
Re: GUI begin area background won't show
« Reply #4 on: November 18, 2012, 11:00:53 PM »
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



Drunkenoodle

  • Playmaker Newbie
  • *
  • Posts: 25
    • View Profile
Re: GUI begin area background won't show
« Reply #5 on: November 22, 2012, 06: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