How can I find the top of a RoundedBox?
[lua]draw.RoundedBox(1, ScrW()/2-ScrW()/4, ScrH()/2-ScrH()/4, ScrW()/2, ScrH()/2, Color(0, 0, 0, 180))[/lua]
That’s what I have, how can I make sure that a picture is always at the top left hand corner of it? using DrawTextureRect?
you can use variables:
x1 = 50
y1 = 50
x2 = x1 - 15
y2 = y1 - 15
that would always make the image to the top left of the box, but you’d need to subtract more to make it go further out.
this is the best i can do right now cause i’m as tired as hell. that should give you somewhat of an idea of what you need to do.
Yeah, you could also divide ScrW()/2-ScrW()/4 by 2 right?
I will just go with the way you did it 