aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFallstar <fallstar@live.fr>2014-05-25 00:30:32 +0000
committerFallstar <fallstar@live.fr>2014-05-25 00:30:32 +0000
commit8dd2eb88d1af96e7597a27803f3a64177f36321a (patch)
treedc0fce795decb81f18fc37d8fdfa9c70423f36f2
parentb14a61e7ad3a8faa92b57359f713f116ede3db19 (diff)
downloadMastermind-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.
-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