Skip to content

Checkbox Widget Doesn't toggle state #2

@minguo33

Description

@minguo33

First off, let me say I absolutely love what this library is trying to do and would very much like to see it finished.

In playing around with it, it seems the checkbox widget doesn't actually update the toggle variable when clicked. Investigating seems that the issue is that the if statement on line 44 of CheckBox.lua never is satisfied because the id is updated before it evaluates lastActiveItem.

I was able to get it to work by swapping out the if statement for the same one used in Button.lua

if uiState.hotItem==id and uiState.activeItem==id then

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions