Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-23-2009, 09:21 PM
Rave_J Rave_J is offline
Graal Developer
Join Date: Feb 2006
Location: Texas
Posts: 848
Rave_J can only hope to improve
Send a message via AIM to Rave_J Send a message via MSN to Rave_J Send a message via Yahoo to Rave_J
Wink 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.
Reply With Quote
  #2  
Old 10-23-2009, 10:55 PM
[email protected] sid.gottlieb@googlemail.com is offline
Banned
Join Date: Mar 2008
Posts: 861
sid.gottlieb@googlemail.com will become famous soon enough
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.
Reply With Quote
Reply


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

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

Forum Jump


All times are GMT +2. The time now is 11:49 AM.


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