Sfoglia il codice sorgente

Added SetAutoExit & GetAutoExit to Engine Lua bindings.
Update generated documentation.

Lasse Öörni 12 anni fa
parent
commit
0915fbddf3
2 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  1. 1 0
      Docs/ScriptAPI.dox
  2. 6 0
      Extras/LuaScript/pkgs/Engine/Engine.pkg

+ 1 - 0
Docs/ScriptAPI.dox

@@ -6150,6 +6150,7 @@ Properties:<br>
 - int maxFps
 - int maxInactiveFps
 - bool pauseMinimized
+- bool autoExit
 - bool initialized (readonly)
 - bool exiting (readonly)
 - bool headless (readonly)

+ 6 - 0
Extras/LuaScript/pkgs/Engine/Engine.pkg

@@ -25,6 +25,9 @@ public:
     /// Set whether to pause update events and audio when minimized.
     void SetPauseMinimized(bool enable);
     
+    /// Set whether to exit automatically on exit request (window close button.)
+    void SetAutoExit(bool enable);
+
     /// Close the application window and set the exit flag.
     void Exit();
     
@@ -49,6 +52,9 @@ public:
     /// Return whether to pause update events and audio when minimized.
     bool GetPauseMinimized() const;
     
+    /// Return whether to exit automatically on exit request.
+    bool GetAutoExit() const;
+
     /// Return whether engine has been initialized.
     bool IsInitialized() const;