LibGui icon indicating copy to clipboard operation
LibGui copied to clipboard

WSprite Texture AutoScale

Open wuming123 opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. When I use the Sprite Widget, the Texture does not automatically scale to the size of the Wdiget

Describe the solution you'd like I want WSprite to be able to stretch freely and maintain the vertical ratio

Describe alternatives you've considered Free stretching of the texture by method

Additional context No

wuming123 avatar Aug 28 '22 14:08 wuming123

I'm a bit confused - WSprite definitely stretches the texture to fit the widget size:

https://github.com/CottonMC/LibGui/blob/e9a209124fe88ede458ce558f739d017e5232df8/src/main/java/io/github/cottonmc/cotton/gui/widget/WSprite.java#L226

Juuxel avatar Aug 28 '22 14:08 Juuxel