Added text buttons and button groups.

This commit is contained in:
2025-10-05 22:09:20 -04:00
parent 82d2a89a0a
commit bed93d1de4
15 changed files with 398 additions and 38 deletions

View File

@@ -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