Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   screenwidth ? (https://forums.graalonline.com/forums/showthread.php?t=46950)

Snakeandy7 08-09-2003 12:22 PM

screenwidth ?
 
Yes, i'd like to learn 'screenwidth' i think that's what it's called, i know how to do the 'x' and 'y' co-ordinate's and also the 'z' angle. Could some one please help, i'd like to try the script with this GUI i'm making.
Thank's
BTW can you give me a example or is it a rule not to do so?

Tseng 08-09-2003 12:26 PM

screenwidth is a variable which contains the width of your graal screen, in pixels.

Snakeandy7 08-09-2003 12:34 PM

Hrmm, i'm trying to understand that, it help's alot that, thanks tseng. care to give a example of the screenwidth?

Tseng 08-09-2003 12:45 PM

Quote:

Originally posted by Snakeandy7
Hrmm, i'm trying to understand that, it help's alot that, thanks tseng. care to give a example of the screenwidth?
Sure.

NPC Code:

//#CLIENTSIDE
if (created || timeout) {
setplayerprop #c,My screenwidth is: #v(screenwidth);
timeout=0.05;
}



Change the width of your window and watch the number change! :)

Snakeandy7 08-09-2003 12:52 PM

wow, thank's man, muchly appreachiated. Thank's again :)

Tseng 08-09-2003 01:10 PM

You're quite welcome. :)

osrs 08-09-2003 09:22 PM

screenheight work same,but contains the height of your graal screen.


All times are GMT +2. The time now is 03:23 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.