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?
I am new to the SC2 Editor, but I have years of C programming experience (relevant to galaxy script).
Send me a message if you need help with programming concepts or galaxy script syntax.
Do not ask me how to do something specifically related to SC2 as I am not fluent with the galaxy API yet.
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
KageNinpo = SN
DialogLeaderboard & TeamSort
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.
You must login to post a comment. Don't have an account? Register to get one!