Loveframes checkboxes not allowing other checkboxes to be checked?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
PenguinKing
Prole
Posts: 8
Joined: Wed Feb 17, 2021 9:07 pm

Loveframes checkboxes not allowing other checkboxes to be checked?

Post by PenguinKing »

Summary:
Essentially; I'm trying to create a bunch of textboxes with the loveframes library and for some reason whenever I click one of the checkboxes, I can no-longer click the other three.

Problem:
My problem is the fact that the clicked checkbox will un-check and check once more, however; I can no-longer click on the other check-boxes within the frame for some reason.

Code:

Code: Select all

for _,v in ipairs(RecipeMaker.ingredientCheckboxes) do
     if v:GetHover() then
          v:SetChecked(not v:GetChecked())
      end
end
RecipeMaker.ingredientCheckboxes is a table that contains all of the created ingredient textboxes
User avatar
darkfrei
Party member
Posts: 1197
Joined: Sat Feb 08, 2020 11:09 pm

Re: Loveframes checkboxes not allowing other checkboxes to be checked?

Post by darkfrei »

:awesome: in Lua we Löve
:awesome: Platformer Guide
:awesome: freebies
PenguinKing
Prole
Posts: 8
Joined: Wed Feb 17, 2021 9:07 pm

Re: Loveframes checkboxes not allowing other checkboxes to be checked?

Post by PenguinKing »

darkfrei wrote: Sun Feb 21, 2021 8:55 pm > loveframes library
This one?
https://love2d.org/forums/viewtopic.php?f=5&t=9116
yes.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 4 guests