08-03-2007, 09:24 AM
|
That one guy...
|
|
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
|
|
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!
|
|
|