Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic KeepRation on ShapeNode creation (Read 1396 times)
Nedor
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 16
Joined: Aug 6th, 2010
KeepRation on ShapeNode creation
Sep 8th, 2010 at 5:55am
Print Post  
Is there any way to have something like the KeepRation flag during the Behavior = Behavior.DrawShapes?
If the user draws the shapes with the mouse, it should always draw a true circle or a square.



  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: KeepRation on ShapeNode creation
Reply #1 - Sep 8th, 2010 at 7:09am
Print Post  
Try setting e.Node.Constrants.KeepRatio from the InitializeNode event.
  
Back to top
 
IP Logged
 
Nedor
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 16
Joined: Aug 6th, 2010
Re: KeepRation on ShapeNode creation
Reply #2 - Sep 8th, 2010 at 8:09am
Print Post  
Thanks for this hint. I didn't think about this event. But if I use this event, i can solve some other problems which i would have on a later point of my implementation.

Thanks.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint