Wednesday, February 21, 2024
HomeGame DevelopmentHow can I shrink a CheckButton's icon sizes in Godot?

How can I shrink a CheckButton’s icon sizes in Godot?


Background

I’m making a CheckButton for toggling sound in my sport. I’ve created an on and off icon for this function. I’ve two different Buttons in a VBoxContainer with this CheckButton, whose icons are the identical measurement because the icons for my CheckButton.

For the common Buttons, I used to be in a position to verify the “Increase Icon” choice to make the icons shrink to suit the scale of the button.

Expand Icon

Downside

Nonetheless, the identical doesn’t seem to work for the CheckButton. For that, I needed to override the “icons” within the theme overrides. So far as I can inform, the “Increase Icon” choice doesn’t have an effect on these icons.

enter image description here

This leads to the next undesirable conduct. All of those icons’ backing information are the identical measurement, however solely the CheckButton (the speaker button on the prime) will not be shrinking.

enter image description here

I might simply make the icons simply smaller, however that looks like a cop-out. Am I lacking a setting someplace?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments

Arnavsijapati on Planet of Lana – Beta Demo
Jai Kishor Upadhyay on Planet of Lana – Beta Demo