Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
Use GIMP and resize the image to the size you want to use it at. If you want the size to be dynamic (not determinable before execution) then you may want to use a graphic plugin that supports float positions and scales.
Personally I think it does support scale by that nice scale parameter that GhostWolf so kindly showed us.
I did search ofc. Thanks for the link. However I dont know what to put in some fields.
JASS:
spritebatch.Draw(button, new Vector2(20,400), null, null?, color.White, ???, ???, 0,2f, None, 0f)
//I think this is somewhat right, but as you see I dont know a few fields.
Use GIMP and resize the image to the size you want to use it at. If you want the size to be dynamic (not determinable before execution) then you may want to use a graphic plugin that supports float positions and scales.
Personally I think it does support scale by that nice scale parameter that GhostWolf so kindly showed us.
I tried this first. I edited with paint since there is a simple rescale function there. Sadly when I open with paint it removes the transperant background and replaces it with white background. I changed the chroma key to 255,255,255 but it still didnt remove it. Therefore I thought it would be easier to scale the image with code.
EDIT: I downloaded another editing program to fix it. Thanks anyway. rep +
spritebatch.Draw(button, new Vector2(20,400), null, null?, color.White, ???, ???, 0,2f, None, 0f)
//I think this is somewhat right, but as you see I dont know a few fields.
spritebatch.Draw(button, new Vector2(20,400), null, color.White, 0f, null, 0.2f, null, 0f)
You really should learn to read what they have written in the API. Remember the number of arguments have to match the number of arguments declared by the interface.
0,9f is not a good idea to use. US compilers will interpret it as 2 parameters (as US/UK use '.' as their decimal delimiter unlike Germany and places which use ','). This will result in a compiler error as you are passing too many parameters to the function.
Basically the program has no way to distinguish between 0,9f being 0.9f (float constant) or 0 and 9f, 2 parameters of integer 0 and float 9.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.