playMaker

Author Topic: How to clear GUI from screen?  (Read 1747 times)

ocp

  • Playmaker Newbie
  • *
  • Posts: 3
How to clear GUI from screen?
« on: December 17, 2013, 03:03:22 AM »
I tried to disable it with 'Enable GUI' action, but it doesn't clear the GUI (i.e. Horizontal Slider), only disable it from screen. When I enable the GUI to put another 'Slider', the unwanted GUI will appear back along with the new Slider.

Anyone can help?

« Last Edit: December 18, 2013, 04:59:39 AM by ocp »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: How to clear GUI from screen?
« Reply #1 on: December 17, 2013, 07:06:22 AM »
As far as I know all of the states displaying GUI need to be exited or their owner objects deactivated. I don't think its possible clear the GUI every frame while still trying to display it all within Playmaker but maybe it's possible to create one and change the execution order to fire after PM so it would clear it after the PM actions had displayed it.

I'd first try identifying my GUI FSM's and making a global event I could broadcast to exit the state and see how that worked out.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

ocp

  • Playmaker Newbie
  • *
  • Posts: 3
Re: How to clear GUI from screen?
« Reply #2 on: December 18, 2013, 07:51:09 AM »
I see. Probably i did it wrong.

All I wanna do is to make a slider appear when selecting (click) an object, and it will dissapear when I select another object.

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: How to clear GUI from screen?
« Reply #3 on: December 18, 2013, 07:53:37 AM »
Ah, well do you have your selecting sorted out? Just put the GUI Slider in the same state and when you leave the selected state then the slider will go away.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D