www.astonshell.com

percent_rectangle, pixel_rectangle??

 
Post new topic   Reply to topic    AstonShell.com Forum Index   Themes
View previous topic :: View next topic  
Author Message
dbear



Joined: 02 Jul 2008
Posts: 25
Location: Caliphonya

PostPosted: Fri Sep 14, 2012 8:30 pm    Post subject: percent_rectangle, pixel_rectangle?? Reply with quote

Can someone explain in really simple terms how percent_rectangle and pixel_rectangle work?

I think I get that pixel_rectangle is simply offsets from Left, Right, Top and Bottom. But that's somehow monitored by percent_rectangle? Just what does percent_rectangle limit?

Thanx for any input.

Back to top
View user's profile Send private message
DimPal



Joined: 03 Jul 2008
Posts: 12

PostPosted: Mon Sep 24, 2012 11:12 am    Post subject: Reply with quote

The final rect is result of arithmetical sum of two components: percent_rectangle + pixel_rectangle.

For pixel_rectangle, when percent_rectangle set to {0,0,0,0}: coord (0, 0) is left-top corner; coord(pix-with, pix-height) is right-bottom corner

For percent_rectangle, when pixel_rectangle set to {0,0,0,0}: coord (0, 0) is left-top corner; coord(100, 100) is right-bottom corner

As example I can show how to define rect 5 pixel inside cotracted:
percent_rectangle {x=0, y=0, x2=100, y2=100}
pixel_rectangle {x=5, y=5, x2=-5, y2=-5}

P.S.: read the manual please http://www.astonshell.com/aston2/skinningtutorial/object_attributes.htm

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AstonShell.com Forum Index   Themes All times are GMT
Page 1 of 1
Jump to:  

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


This forum is available via an RSS feed  Click to see the XML version of this web page.

Copyright © 1999-2007 Gladiators Software