Skip to content

Commit

Permalink
FUCK those menus
Browse files Browse the repository at this point in the history
Signed-off-by: Luiz Carlos Cavalcanti <cavalcanti.luiz@gmail.com>
  • Loading branch information
luizcavalcanti authored and rogerzanoni committed Oct 21, 2018
1 parent 04d3b3c commit 3ce92ed
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 9 deletions.
6 changes: 1 addition & 5 deletions assets/config/defaultsettings.lua
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
return {
{"FullScreen", "boolean", true},
{"Resolução", "string", "1280x720", {"1920x1080",
"1280x720",
"1024x576",
"768x432",
"640x360"}}
{"Resolução", "string", "1280x720", {"1920x1080", "1280x720"}}
}
Binary file modified assets/images/bg_menu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/button_off.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/button_off.xcf
Binary file not shown.
Binary file modified assets/images/button_on.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/button_on.xcf
Binary file not shown.
2 changes: 1 addition & 1 deletion menuscene.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function MenuScene:init()
self.menuItemHeight = self.fontHeight * 2
self.menuHeight = self.menuItemHeight * #self.items
self.x = CONF_SCREEN_WIDTH / 2 - self.menuWidth / 2
self.y = CONF_SCREEN_HEIGHT / 2 - self.menuHeight / 2
self.y = 800
self.background = love.graphics.newImage('assets/images/bg_menu.png')
self.buttonOnImage = love.graphics.newImage('assets/images/button_on.png')
self.buttonOffImage = love.graphics.newImage('assets/images/button_off.png')
Expand Down
6 changes: 3 additions & 3 deletions settingsscene.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function SettingsScene:draw()
menuItemHeight = fontHeight * 2
menuHeight = menuItemHeight * #self.items
x = CONF_SCREEN_WIDTH / 2 - menuWidth / 2
y = CONF_SCREEN_HEIGHT / 2 - menuHeight / 2
y = 800
buttonScaleX = menuWidth / self.buttonOnImage:getWidth()
buttonScaleY = menuItemHeight / self.buttonOnImage:getHeight()

Expand Down Expand Up @@ -63,9 +63,9 @@ function SettingsScene:keyPressed(key, scancode, isRepeat)
elseif key=="return" and not isRepeat then
self:selectItem()
elseif key=="left" and not isRepeat then
self:previousValue()
elseif key=="right" and not isRepeat then
self:nextValue()
elseif key=="right" and not isRepeat then
self:previousValue()
end
end

Expand Down

0 comments on commit 3ce92ed

Please sign in to comment.