Graal Forums  

Go Back   Graal Forums > Graal V6 forums > Questions about V6
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-03-2007, 09:24 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
File Dragging, Yay!

This is a scripting question I know but it is a new feature in v5 that I want to know about and I figure the only people with the answers are more likely to look here then the other place.

control.acceptdropfiles = true;
Drag a file
control.onDropFiles(mousexpos, mouseypos, files) { stuff(); }

Yes, yes, yes.

BUT!

How do you load the lines of that file? I can see how you could use this with clientrc to upload something but loadlines (vars, string, etc.) is limited to only 3 folders (that being scriptfiles, updatepackages and tiledefs).

Do I really have to upload the file, then loadlines it serverside and send that clientside all the while being connected via sendtext (clientrc) just so I can look at a file on my computer with Graal? I don't think clientrc should be required for this...

I can see the security issues here but maybe you can have something like:
control.loaddropfilelines = true;

And when it's true:
control.onDropFiles(mousexpos, mouseypos, files, lines) { stuff(); }

Lines would just be blank when the above is false. (People who want to load vars or other things can just loadvarsfromarray and such)
__________________
Do it with a DON!
Reply With Quote
 


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 03:33 PM.


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