Just a simple script that not fully functional, to comply with forum rules, since it does not have any actual useful information in the contents of the window.
Also as a brief explination to those new to scripting and gs2 of some of the basic commands. Kind of a neat effect.
PHP Code:
//#CLIENTSIDE
// by Prozac
function onWeaponFired(){onCreated();} //this line causes the window to open whenever the player logs in, or when the player selects the npc and presses D
function onCreated()
{
new GuiWindowCtrl("zoom_window") // this makes a new window with the name zoom_window. The quotes tell the script to interpret the window name as a string.
{
width = 1; //width ahd height tell the script how high and wide to make the window.
height = 1;
x = (screenwidth - width) / 2; //the x and y are where on the screen the top left corner of the window appears.
y = (screenheight - height) / 2; //half of the screen height and width is the center of the screen.
canMove = true; //affects ability to move the window
canResize = false; //these are fairly self explanitory paramaters...
canMaximize = false;
canClose = true;
tile = true;
text = "Zoom Window"; //text in the top left title bar of the window
visible = true;
}
for (this.i=0; this.i<100; this.i++)
{
//you can modify the attributes of a window with windowname.attribute, as seen here.
zoom_window.width+=5;
zoom_window.height+=5;
zoom_window.x = (screenwidth - zoom_window.width) / 2;
zoom_window.y = (screenheight - zoom_window.height) / 2;
sleep .05; // this mades for a gradual expansion of the window instead of expanding it all at once
}
}