Is there any function to draw/use only a specified region of an image as a button's image or something like that? Instead of always using the entire image and then scaling it by default?
The easiest way to cut off a dialog item (such as an image) is to create it in a panel. You need to create a dialog item of type panel in a dialog, then create a dialog item (your image) inside that panel with Create Dialog Item in Panel. Dialog items within a panel will only show the portion of it thats actually within the panel.
Is there any function to draw/use only a specified region of an image as a button's image or something like that? Instead of always using the entire image and then scaling it by default?
@soulzek: Go
you can always export the texture and trim it...
I have the same question myself but doing it with image items as well.
How do you use those sprite sheets with the different emblems and stuffs
@SouLCarveRR: Go
Unfortunately this method is not possible for something like a custom progress bar. Would need variable regional image drawing.
The easiest way to cut off a dialog item (such as an image) is to create it in a panel. You need to create a dialog item of type panel in a dialog, then create a dialog item (your image) inside that panel with Create Dialog Item in Panel. Dialog items within a panel will only show the portion of it thats actually within the panel.
Or you can just set tile to false. Depending on the anchor it will cut off the rest.