playMaker

Author Topic: Set GUI Skin  (Read 3853 times)

Rabagast

  • Hero Member
  • *****
  • Posts: 683
    • Homepage
Set GUI Skin
« on: September 14, 2014, 07:36:28 AM »
Hi!
I want to have all the GUI text, Score, Game Time, Lives, etc. in one color. For example red. Then I have a fuel platform with the text "Fuel" on it. I use GUI Label for this. I want to have this text in another color. For example blue.
I do that, but then all GUI text on the screen changes. Why?

The GUI text I use for score, etc, have a Set GUI Skin. The text for the fuel platform has Set GUI Color. I have also tried Set GUI Skin there, but another GUI Skin.

I Thought I could use as many GUI Skin I want without affecting each other.
Can someone explain me why this happen?
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no

Rabagast

  • Hero Member
  • *****
  • Posts: 683
    • Homepage
Re: Set GUI Skin
« Reply #1 on: September 14, 2014, 07:45:49 AM »
I found out that I had more GUI with another GUI Skin. I just deleted this, so now is working. :) Maybe it was some conflict or something.
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no

taidz

  • Playmaker Newbie
  • *
  • Posts: 1
Re: Set GUI Skin
« Reply #2 on: November 12, 2014, 08:56:39 AM »
what another Gui skin you use ?????

Rabagast

  • Hero Member
  • *****
  • Posts: 683
    • Homepage
Re: Set GUI Skin
« Reply #3 on: November 12, 2014, 09:18:52 AM »
I just had two GUI Skin in the project. Assets/Create/GUI Skin.
I don't know if it recommends to just have one GUI Skin. But whatever. It works now. :-)
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Set GUI Skin
« Reply #4 on: November 26, 2014, 01:19:43 AM »
Hi,

 you can have several gui skin and switch them at runtime, but if you switch to a skin for a button or a label, then everything else following your skin switch will use that skin, so you have to revert at some point to use the default skin again.

Have you tried that?

Bye,

 Jean

Rabagast

  • Hero Member
  • *****
  • Posts: 683
    • Homepage
Re: Set GUI Skin
« Reply #5 on: November 26, 2014, 05:47:42 AM »
Hi, Jean!

I'm not sure if I know what you mean, but if I have Score GUI FSM where I have these Actions:
-Set GUI Ski
-GUILayout Begin Area
-GUILayout Int Label
-GUILayout End Area

And the same with Lives, but even if I don't have GUI Skin on the Lives GUI FSM, this will follow the GUI Skin from the Score GUI.

If I uncheck Apply Globally on Set GUI Skin, it should not affect the other GUI FSM, right?

Another question:
Should I have all the GUI like Score, Lives, Time, etc. in separate FSM? Or should I have all in one? Or maybe it doesn't matter. I think I have more overview if I have all in one. :-)

Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Set GUI Skin
« Reply #6 on: December 02, 2014, 11:25:56 AM »
Hi,

 you have to add a set gui skin right after the gui end area, else it will carry on using that skin. Think of GUI as a sequencial system, just like you "Begin" and "End" an Area, you have to set the gui skin and set it back to how it was once you are done with that part of the ui using that skin.

 Bye,

 Jean