aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Gamestates/Config.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/Gamestates/Config.lua b/Gamestates/Config.lua
index c8c8fbe..26033c9 100644
--- a/Gamestates/Config.lua
+++ b/Gamestates/Config.lua
@@ -56,6 +56,17 @@ function Config:update(dt)
Menu.Music:play()
end
end
+ if love.system.getOS() ~= "Android" then
+ if Gui.Button{text = "Fullscreen", size = {Utils.percentCoordinates(40, 10)}} then
+ if Config.Fullscreen == true then
+ love.window.setFullscreen(false, "desktop")
+ Config.Fullscreen = false
+ else
+ Config.Fullscreen = true
+ love.window.setFullscreen(true, "desktop")
+ end
+ end
+ end
Gui.group.pop{}
end