Replies: 2 comments 1 reply
-
See the Pixel art section of the Common use case scenarios described in the Multiple resolutions documentation. I don't think you should scale the stylebox texture only, as otherwise, the text and icons will remain unscaled. If you are going to scale something, other elements should be scaled as well so that they remain readable. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When working on the UI it can be complicated to make the UI the desired size, in my case I would like the scale of the nine patch rect texture of my
StyleBoxTexture
to be increased to 2 or 3 (the pixel size is too small currently to say that otherwise).I can't use the scale parameter of the
Control
node because it's not compatible with the anchor system.The only viable option to my knowledge is to scale the entire
CanvasLayer
(which is possible but not really an officially supported feature because you still have to adjust things manually) This solution scales all Node controls which is an advantage for some node and a disadvantage for others.I think that having a scale parameter directly on the
StyleBoxTexture
could be a fairly effective solution and an additional tool for such situations, but I don't know the technical implications.I am also open to other workaround methods if they exist.
Beta Was this translation helpful? Give feedback.
All reactions