About Store Forum Documentation Contact
Donations:
140$/mo



Post Reply 
Region drawing strange?
Author Message
fatcoder Offline
Member

Post: #1
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
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Region drawing strange?
try Rect(-D.w(),-D.h(),D.w(),D.h()));
02-05-2013 11:51 AM
Find all posts by this user Quote this message in a reply
gwald Offline
Member

Post: #3
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
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
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
Find all posts by this user Quote this message in a reply
gwald Offline
Member

Post: #5
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
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply