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
Godot's CheckBox Node also shows text on the right side of the screen.
My project needs text on top of the checkbox.
I know we can make a simple scene with CheckBox+Label but we waste the built-in text that a checkbox has. This is what I plan to do for now but using CheckBox directly would have been simpler and easier to manage.
We can go either of 2 ways to improve the CheckBox Node:
Implement a 'text direction w.r.t. the box' property for CheckBox Node.
Add and expose a check_h_offset property. Check already has and exposes theme_override_constants/check_v_offset for vertical offset which works great. This way we can use both offsets to make it appear on top of checkbox.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Godot's CheckBox Node also shows text on the right side of the screen.
My project needs text on top of the checkbox.
I know we can make a simple scene with CheckBox+Label but we waste the built-in text that a checkbox has. This is what I plan to do for now but using CheckBox directly would have been simpler and easier to manage.
We can go either of 2 ways to improve the CheckBox Node:
check_h_offset
property. Check already has and exposestheme_override_constants/check_v_offset
for vertical offset which works great. This way we can use both offsets to make it appear on top of checkbox.Beta Was this translation helpful? Give feedback.
All reactions