From 8dd2eb88d1af96e7597a27803f3a64177f36321a Mon Sep 17 00:00:00 2001 From: Fallstar Date: Sun, 25 May 2014 00:30:32 +0000 Subject: Added Fullscreen for non-Android platforms + TODO updated + icon transparancy, but that was in the previous commit. --- Gamestates/Config.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 -- cgit v1.2.3-54-g00ecf