diff options
author | Fallstar <fallstar@live.fr> | 2014-05-25 00:30:32 +0000 |
---|---|---|
committer | Fallstar <fallstar@live.fr> | 2014-05-25 00:30:32 +0000 |
commit | 8dd2eb88d1af96e7597a27803f3a64177f36321a (patch) | |
tree | dc0fce795decb81f18fc37d8fdfa9c70423f36f2 /Gamestates/Config.lua | |
parent | b14a61e7ad3a8faa92b57359f713f116ede3db19 (diff) | |
download | Mastermind-8dd2eb88d1af96e7597a27803f3a64177f36321a.tar.gz Mastermind-8dd2eb88d1af96e7597a27803f3a64177f36321a.tar.bz2 Mastermind-8dd2eb88d1af96e7597a27803f3a64177f36321a.tar.xz Mastermind-8dd2eb88d1af96e7597a27803f3a64177f36321a.zip |
Added Fullscreen for non-Android platforms + TODO updated + icon transparancy, but that was in the previous commit.
Diffstat (limited to 'Gamestates/Config.lua')
-rw-r--r-- | Gamestates/Config.lua | 11 |
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 |