playMaker

Author Topic: Application Quit [SOLVED]  (Read 97 times)

Neikke

  • Junior Playmaker
  • **
  • Posts: 53
    • View Profile
Application Quit [SOLVED]
« on: November 01, 2017, 10:11:57 AM »
I want to have a UI button which would quit to windows my game. How do I set it up so on click application quit happens? Thanks a lot!

« Last Edit: November 03, 2017, 06:47:32 PM by Neikke »

krmko

  • Sr. Member
  • ****
  • Posts: 426
    • View Profile
    • Fat Pug Studio
Re: Application Quit
« Reply #1 on: November 01, 2017, 10:52:39 AM »
On click > Application Quit action

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12351
  • Official Playmaker Support
    • View Profile
Re: Application Quit
« Reply #2 on: November 01, 2017, 11:18:27 PM »
Hi,

For this the easiest way is to get the uGui Full package from the Ecosystem and then:

 on your ui Button GameObject,

1: add an Fsm
2: create a new state
3: use the action "UGui Button On Click Event"
4: plug your own event on this like "QUIT APP"
5: use "QUIT APP" as a transition from that state to another state
6: on that other state, use the action. "Application quit"

Bye,

 Jean

Neikke

  • Junior Playmaker
  • **
  • Posts: 53
    • View Profile
Re: Application Quit
« Reply #3 on: November 02, 2017, 04:21:55 AM »
Aha uGui! Ok I'll try this tonight! Thanks a lot!