Added text buttons and button groups.
This commit is contained in:
6
main.lua
6
main.lua
@@ -24,8 +24,8 @@ Debug = false
|
||||
|
||||
local function parse_args(args)
|
||||
for _, v in pairs(args) do
|
||||
-- Enable debug mode.
|
||||
if v == '-debug' then Debug = true end
|
||||
if v == '-debug' then Debug = true end
|
||||
if v == '-skip-intro' then Current_state = 2 end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -133,7 +133,7 @@ end
|
||||
function love.mousepressed(x, y, btn)
|
||||
-- Send events to the active game state if there is no fade active.
|
||||
if Fade.done then
|
||||
game_states[Current_state]:mousemoved(x, y, btn)
|
||||
game_states[Current_state]:mousepressed(x, y, btn)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user