WohlSoft / LunaLua

LunaLua - LunaDLL with Lua, is a free extension mod for SMBX 1.3 game engine, core of the X2 project.
https://codehaus.moe/
GNU General Public License v3.0
33 stars 12 forks source link

Misc.isGIFRecording(), Misc.isFullScreen(), and Misc.setFullscreen(bool) #51

Closed SolaceEllery closed 1 year ago

SolaceEllery commented 1 year ago

Today, I have finally put in another pull request once more. Hopefully this one will get in basegame this time.

Requires these edits under ffi_misc.lua.

Misc.isGIFRecording() - True if recording via a GIF, false if not. An example for using this is that it could be used to place a watermark on your GIF on your episode.

Misc.isFullscreen() - True if fullscreen, false if not. An example for using this is that it either could be used for drawing special things to the screen when on fullscreen, or auto-setting the resolution of the game to the screen's max width (Though resolutions aren't made in SMBX2 yet)

Misc.setFullscreen(bool) - If bool is true, then fullscreen will be set if windowed mode is on. Else if the bool is false, windowed mode is activated if fullscreen is already set. This can be used for in-episode options for example.