Home Forum Downloads My Favorites Register FAQ Mark Forums Read

Go Back   EQInterface Forums > Tutorials & Info. > Misc Tutorials & Info.
User Name
Password

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 11-20-2002, 05:45 PM   #1
Cairenn
Credendo Vides
 
Cairenn's Avatar
 
Join Date: Jul 2002
Posts: 3,866
Interface Author - Click to view interfaces
Default /viewport command explained

Okay, here's the low down

When you type the /viewport command, it tells you it wants 4 numbers: x; y; w and h.

x = where you want the viewing area to start from the left of the screen
y = where you want the viewing area to start from the top of the screen

So, 0,0 would mean that it starts in the very top farthest left corner of your screen.

w = how wide you want the viewing area to be from x
h = how high you want the viewing area to be from y

So, 1280X1024 means that your viewing area would be 1280 pixels wide and 1024 pixels high

Put it together, and you get:
/viewport 0 0 1280 1024

This is telling your computer to start drawing the viewing area at the top left corner and to make it 1280 wide and 1024 high.

If you put in a view port of
/viewport 0 0 1000 750

it would be telling your computer that it wants it to start drawing the viewing area at the top left corner, but to only make it 1000 pixels wide and 750 pixels high. This would let you put stuff down the right hand side of the screen and across the bottom, without them hiding the viewing area at all.

Now, say you wanted to put some stuff down the left hand side of the screen, and across the top, but again, you don't want to have it hide stuff on the screen. Let's say that the items you are putting down the right hand side are 20 pixels wide, and the ones across the top are 24 pixels high. What you would type is:

/viewport 20 24

That tells it to move over 20 pixels and down 24.

But you still need the last two numbers, right?

You figure that out by taking the width and height of your screen and subtracting the two amounts above.

So, if you have a viewing area that is 1280 wide by 1024 high, yoou would go:

1280 wide minus 20 (the amount you are moving it over) = 1260
and
1024 high minus 24 (the amount you have moved it down) = 1000

Which means that your complete command line would be

/viewport 20 24 1260 1000

Make sense?
__________________
"My friends, love is better than anger. Hope is better than fear. Optimism is better than despair. So let us
be loving, hopeful and optimistic. And we’ll change the world."


Co-Founder & Admin: MMOUI
FaceBook Profile, Page, Group
Avatar Image by RafM
Cairenn is offline   Reply With Quote
 



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT -5. The time now is 09:57 AM.


vBulletin Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© MMOUI