Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   showimg guide help lol (https://forums.graalonline.com/forums/showthread.php?t=134256635)

Rave_J 10-23-2009 09:21 PM

showimg guide help lol
 
Hey guy's ok i need a lesson here
i made this cool gui wired style graphics up
i did it like this cuz no server has so
heres the imgs
http://i60.photobucket.com/albums/h2...6298/crazy.jpg
the boxes will display on the left side and the bottom boxes display on the bottom.
so i need someone to take the time into teaching me how to display this as a gui on graal. so im thinking about this
can someone post a normal gui to display the graphics on the fourms and break it down and tell me about it like what parts ect.
i know i use to be able to do this but i quit for some time in the scripting department.
Plz thank you and hope i can learn from this im not here to get others to script stuff for me im here to learn how to script and be good enough to finish my project thanks.

[email protected] 10-23-2009 10:55 PM

You can use a loop on the buttons so you don't need to repeat it. If you made the square block an individual image you'd use something like this
The square block would be 32x32, leaving 2 pixels inbetween each

HTML Code:

temp.boxes = 5; //How many boxes to show
temp.vertical = true; //False for horizontal
temp.opos = {32, 32}; //X & Y of the origional position of the boxes

for (temp.i = 0; temp.i < temp.boxes; temp.i++) { //Would show four boxes
  temp.add = temp.i * 34;
  temp.img = showimg(200 + temp.i, "boximage.png", (!temp.vertical? temp.opos[0] + temp.add: temp.opos[0]), (!temp.vertical? temp.opos[1]: temp.opos[1] + temp.add));
  temp.img.layer = 4;
}

Not tested, but it should work. :)


All times are GMT +2. The time now is 02:19 PM.

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