Page 1 of 1

Fullscreen Cycle

Posted: Fri Aug 06, 2021 12:54 pm
by GVovkiv
Can switch in-beetwen window mode easly and return window state
Main feature is .cycle(), it allow to quickly switch in-beetwen windowed --> maximized --> fullscreen --> ..., modes; and proper shortcuts to maximized, windowed, minimized and fullscreen modes
Also, have .getState(--optional argument "string") which will return current window state as number or string, e.g "windowed" or 2
GitHub gist page
(beware of yanderedev code "style")
Windowed
Windowed
1.png (9.08 KiB) Viewed 12827 times
Maximized
Maximized
2.png (8.91 KiB) Viewed 12827 times
Fullscreen Cycle Demo.love
Demo
(3.16 KiB) Downloaded 411 times