ElectroTM
|
  |
| Joined: 23 Nov 2012 |
| Total Posts: 1135 |
|
|
| 08 Jun 2016 01:21 AM |
Is there a function that will close the user's window rather than just disconnecting them? (Sidenote: I would like to do this WITHOUT crashing the client.)
|
|
|
| Report Abuse |
|
|
|
| 08 Jun 2016 01:35 AM |
You could try trick a player into pressing alt + f4. I don't think there is a function for this.
|
|
|
| Report Abuse |
|
|
ElectroTM
|
  |
| Joined: 23 Nov 2012 |
| Total Posts: 1135 |
|
|
| 08 Jun 2016 01:58 AM |
I'm trying to make a very streamlined exit button in my main menu... With all due respect to your idea, it would probably just be easier to trick them into pressing "leave game". There may be some hacky ways, but it would probably take more testing than I'm comfortable with, and won't really be worth it in the long-run.
Thanks for the help, anyways.
|
|
|
| Report Abuse |
|
|
Locard
|
  |
| Joined: 13 Apr 2014 |
| Total Posts: 3516 |
|
|
| 08 Jun 2016 02:07 AM |
| There's no method that gives you access to shutting down the client. |
|
|
| Report Abuse |
|
|
|
| 08 Jun 2016 02:21 AM |
| Have the exit button prompt a gui that displays the text "ALT + F4 to confirm" |
|
|
| Report Abuse |
|
|
ElectroTM
|
  |
| Joined: 23 Nov 2012 |
| Total Posts: 1135 |
|
|
| 08 Jun 2016 02:39 AM |
alright, I'll just work off of the assumption that the player is smart enough to close his own game when he's finished playing. I feel like a "ALT + F4" confirmation screen seems a bit unprofessional.
Thanks again, Locard. :D
|
|
|
| Report Abuse |
|
|
|
| 08 Jun 2016 02:52 AM |
the answer, fellow scripters, is not always to give the player 1,000,000 gui prompts
|
|
|
| Report Abuse |
|
|