View Single Post
Old 08-23-09, 03:15 PM   #8
karamazovnew
The Old Man
 
Join Date: Mar 2009
Location: Bucharest, Romania
Posts: 1,403
Downloads: 151
Uploads: 0


Default

That's all there is to it. For example i am now finishing my TDC page with 6 dials. I want them to have the same screen dimensions on all resolutions, Even more, I need them to be glued to the left of the screen. What SCALE and PIVOT values should I use? For the dials I will use a SCALE of 1 and a PIVOT of 1. Their group will need to be parented to the Main Page, and glued to the left of the screen. It's Scale will be also 1, but a pivot of 0, so it's corner will not move out of the screen as it increases it's size.

What if I want to do an AOB wheel in the center of the screen that always fills the "hole" of the lens (let's say the id for this item would be 0x261000011)? That's even simpler. I'll parent it to the main periscope page(0x26000000), since it already scales with resolution. I will try to center it on the screen for 1024/768 (that's easy, a zone line of 0x26000000 0.5 -0.5 0x261000011 -0.5 0.5 0 0 will always be at the center of the screen, no mater the size). Then I will put a SCALE of 5, and a PIVOT of 1. So it will look like this:
Zone= XXX YYY Width Height 5 1 0x26000000 0.5 -0.5 0x261000011 -0.5 0.5 0 0

While this may sound complicated, it isn't. All you need to do is decide how you want your interface to look at 1024/768, then decide which items scale up with resolution, which you want to remain at their current monitor position, and go from there. You only have a few values to work for, for both PIVOT and SCALE. Now excuse me, I need to go back to work, don't want anyone making a TDC in the periscope screens before me

Last edited by karamazovnew; 08-23-09 at 03:32 PM.
karamazovnew is offline   Reply With Quote