You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using ebitenui v0.4.0, I'm creating some labeled checkboxes and sometimes they need to be checked on by default. However, the .Checkbox() function returns nil after initial creation, which is needed to access its .SetState() function. It appears the checkbox object underneath doesn't get set until after the .init.Do() function is called, which is only performed after first calling one of a few functions which aren't always necessary to do up front (GetWidget, PreferredSize, SetLocation, SetupInputLayer, Render, Focus).
At the least I think it would be worth adding a SetState() function directly on the labeled checkbox object which can call the .init.Do() first to ensure it will be present.
The text was updated successfully, but these errors were encountered:
Using ebitenui v0.4.0, I'm creating some labeled checkboxes and sometimes they need to be checked on by default. However, the .Checkbox() function returns nil after initial creation, which is needed to access its .SetState() function. It appears the checkbox object underneath doesn't get set until after the .init.Do() function is called, which is only performed after first calling one of a few functions which aren't always necessary to do up front (GetWidget, PreferredSize, SetLocation, SetupInputLayer, Render, Focus).
At the least I think it would be worth adding a SetState() function directly on the labeled checkbox object which can call the .init.Do() first to ensure it will be present.
The text was updated successfully, but these errors were encountered: