Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > Code Gallery
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-09-2010, 08:09 AM
Cubical Cubical is offline
Banned
Join Date: Feb 2007
Posts: 1,348
Cubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant future
SetShape2 Editor

I originally started this like 2 days ago because I wanted to use pics1 with terrain and couldn't figure out a way to do it so I decided to use GuiDrawingPanel and save the image that it rendered and just use that. That's when I found out what a hassle it was to do setshape2 for larger objects so I continued on making it and added support for any image size, I got a little carried away haha. I'm sure it could be scripted better but it was originally for personal use and it got the job done. Hopefully it will help people if for nothing more save time on creating setshape2 arrays. This is in no way done, I had a lot more things I was going to add to it but I just don't feel like putting anymore time into it because it pretty much has everything I could need.


This is how it works:
You can either put a Tile Array in the bottom left box and click load or goto file-> open and type an image on the server to open up.

If you plan on saving a setshape2 array that was created from a tile array you must first save the image however if you loaded the image you do not; all files are saved into "scriptfiles/servername/SetShapeEditor/imagename" so it doesn't get messy.

You can click the images on the right hand side of the gui to set the tiletype you want to set because I know how annoying it is to constantly go through a dropbox.


Thanks to dusty for his tile functions and to people who answered my questions in irc
Attached Thumbnails
Click image for larger version

Name:	SetShape2Editor-1.png
Views:	388
Size:	165.6 KB
ID:	50533   Click image for larger version

Name:	SetShape2Editor-2.png
Views:	379
Size:	169.4 KB
ID:	50534   Click image for larger version

Name:	SetShape2Editor-3.png
Views:	361
Size:	175.1 KB
ID:	50535   Click image for larger version

Name:	SetShape2Editor-4.png
Views:	360
Size:	176.3 KB
ID:	50536  
Attached Files
File Type: txt SetShape2Editor.txt (20.3 KB, 361 views)
Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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 01:16 PM.


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