Commit Graph

12 Commits

Author SHA1 Message Date
Zach Coleman
b6f87336ef Update handling_quit_requests.rst 2024-08-15 12:57:11 -07:00
Zach Coleman
c6ba2d4092 Update handling_quit_requests.rst 2024-02-21 12:03:35 -05:00
A Thousand Ships
c3e08bd874 [Input] Fix incorrect setter usage in C# 2023-10-24 16:33:44 +02:00
br1trs
92d962ab75 delete get_root()
handling quit requests

multiple resolutions

change scenes manually

scene tree
2023-05-29 23:26:04 -06:00
Tobi-Mob
56ef128796 Fixed NotificationWMCloseRequest c# code
With Godot 4.0 the casing seems to have changed from Wm to WM.
2023-03-04 11:34:20 +01:00
Raul Santos
b319da3f07 Update some C# examples for 4.0 (#6693)
* Update some C# examples

- Rename members that have been renamed in Godot's C# API for 4.0.
- Change `delta` parameter type to `double`.
- Ensure parameters match base declaration.
- Other minor code fixes.

---------

Co-authored-by: Paul Joannon <437025+paulloz@users.noreply.github.com>
2023-02-04 17:03:03 +01:00
Curtis
4342e03419 Update C# code example
Use the `Root` property instead of the deprecated `GetRoot` method.
`PropagateNotification` accepts an `int` and not a `long`, and so `NotificationWmCloseRequest` needs to be cast to `int`.
2023-01-03 03:03:14 +10:00
Markus Sauermann
631889be34 Fix usage of NOTIFICATION_WM_CLOSE_REQUEST
Propagation now works differently.
Also it no longer causes the application to quit.
2022-10-15 02:52:32 +02:00
Nicola Baribeau
74b79a439b Small edit to quit requests handling
Hey first edit here,

Here's a quick edit for something I just stumbled upon learning Godot 4, basically the notification MainLoop.NOTIFICATION_WM_QUIT_REQUEST changed to NOTIFICATION_WM_CLOSE_REQUEST. 

Would spare some people quite a bit of confusion I basically had to search through the source's commits since it not only moved but changed name.

It *is* already correctly listed in the Node page though.

I'm not really sure about the C# code examples though but I doubt it would be more complicated than this.
2022-08-24 18:43:18 +02:00
Aaron Franke
4060179184 Remove trailing space characters (#5251) 2021-09-13 14:52:39 +02:00
insomniac_lemon
ea1ae27270 Add info on sending quit requests properly in Handling quit requests (#4911)
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2021-05-14 21:44:40 +02:00
Nathan Lovato
81f764e270 Move handling_quit_requests to inputs 2020-10-08 14:14:44 -06:00