fatcoder
Member
|
Region drawing strange?
I'm having a problem with Region, which I think has showed up since updating to build 20. The region is drawing a huge button on itself.
Try opening the Buttons Gui tutorial. Then add a Region to it and add the Region to the Gui like this.
Code:
Gui+=region.create(Rect(-D.w(),D.h(),D.w(),-D.h()));
Is this a bug?
|
|
02-05-2013 02:23 AM |
|
Esenthel
Administrator
|
RE: Region drawing strange?
try Rect(-D.w(),-D.h(),D.w(),D.h()));
|
|
02-05-2013 11:51 AM |
|
gwald
Member
|
RE: Region drawing strange?
Dose Rect function only work when starting from the bottom left corner rather then the top corner?
My Blog
http://www.esenthel.com/community/showthread.php?tid=6043
I hang out at Esenthel IRC Channel
http://webchat.freenode.net/?channels=#Esenthel
|
|
02-21-2013 03:25 AM |
|
Esenthel
Administrator
|
RE: Region drawing strange?
Please look into Rect constructor and you will see that first 2 params specify the minimum x y values, and other 2 are maximum x y values
|
|
02-21-2013 02:00 PM |
|
gwald
Member
|
RE: Region drawing strange?
Thanks got it, min is bottom left and max is top right... makes perfect sense.
Sorry for asking.
My Blog
http://www.esenthel.com/community/showthread.php?tid=6043
I hang out at Esenthel IRC Channel
http://webchat.freenode.net/?channels=#Esenthel
|
|
02-21-2013 10:30 PM |
|