widgetsprite render


photo

Recommended Posts

I making a wigsprite gauge bar.

 

this is loading_screen_04 sample.

image.png.67578f3a1df2a94c531d594ee92507e7.png

 

How do I make this function for c++?      "engin.loading_screen.render(~)"

 

 

Link to post
  • 2 weeks later...

hi,

 

Is there any function to control the rendering of widgetsprite?


I'm trying to adjust to Width, but there's some problem when Width is zero or a small number.

Link to post

100% width is 282.

 

70% ( setWidth(0.7 * 282) )

image.png.b19accf0080b3999388fcece89c66292.png

 

1% ( setWidth(0.01 * 282) )

image.png.8ae75059a9ad16a673a59c5a2ada7d6c.png

 

0% ( setWidth(0.0 * 282) )

image.png.058676616bdef016a14b8e837f93673e.png maybe It seems to be the original size of the texture.

 

I think I should use a different function than changing the width.

Link to post

I guess it would be better if you will prepare progress bar texture so it would be a gradient with 1px width and then multiply it by progress (2.82px = 1%).

In case of 1% or 0% you can simply hide it to avoid visual artifacts.

 

  • Like 1

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Link to post

image.png.d2cab8be068483c5fe1a30aa24160e08.png

 

When increasing the size, the edges are angled rather than smooth.

Is there a way to soften the edges like the second gauge?

Link to post

Ok, I'll try.

thanks.

Link to post