LDDFM - An API-based file manager for your...
LDDestroier 19 Sep 2016
Way back when I first coded Whisk (or heck, even back when I had to use other people's file transfer programs), I kinda found it cumbersome to remember the names of files and type them into a prompt to send it or whatever. I know, a nitpick...but no longer!
(by the way I am listening to some epic music; forgive my glamour)
The idea is that it can be easily snuck into your program code so you can have the user select a file/folder with a file manager instead of through a read() prompt. Makes it way better.
One cool thing this does it that the whole interface can be fit into a rectangle (x1,y1,x2,y2), so you can slip the thing into an existing GUI!
I made this primarily for Whisk, but this can be used anywhere.
HOW TO USE: (recommended)
SCREENSHOTS:
In another update, I might add a text prompt in addition to the file select GUI.
When putting this in a program, feel free to strip any blank newlines or comments. I added them for clarity, mostly.
Edited by EldidiStroyrr, 20 September 2016 - 06:01 PM.
(by the way I am listening to some epic music; forgive my glamour)
LDDFM
The idea is that it can be easily snuck into your program code so you can have the user select a file/folder with a file manager instead of through a read() prompt. Makes it way better.
One cool thing this does it that the whole interface can be fit into a rectangle (x1,y1,x2,y2), so you can slip the thing into an existing GUI!
I made this primarily for Whisk, but this can be used anywhere.
pastebin get wfdb986Z lddfm std PB wfdb986Z lddfm
HOW TO USE: (recommended)
Spoiler
SCREENSHOTS:
Spoiler
In another update, I might add a text prompt in addition to the file select GUI.
When putting this in a program, feel free to strip any blank newlines or comments. I added them for clarity, mostly.
Edited by EldidiStroyrr, 20 September 2016 - 06:01 PM.
LDDestroier 19 Sep 2016
LDDestroier 19 Sep 2016
Dahknee 19 Sep 2016
I have been waiting for this!!
Completely love it, my only question, is if you can also have another parameter where we can give it a table of colours So an example:
local theme = {
["background_colour"] = "white";
["folder_colour"] = "blue";
["menu_colour"] = "red";
}
// ^ example
local path = makeMenu(3, 3, 40, 11, "/", _, _, _, _, theme);
So we could have colours for path display at the top right, path text colour, background colour, file colour, folder colour etc???
Also can you add a little close button also please? This would be awesome! Top-right or something?
Completely love it, my only question, is if you can also have another parameter where we can give it a table of colours So an example:
local theme = {
["background_colour"] = "white";
["folder_colour"] = "blue";
["menu_colour"] = "red";
}
// ^ example
local path = makeMenu(3, 3, 40, 11, "/", _, _, _, _, theme);
So we could have colours for path display at the top right, path text colour, background colour, file colour, folder colour etc???
Also can you add a little close button also please? This would be awesome! Top-right or something?
Sewbacca 19 Sep 2016
I've don't seen the code, but I would love it, if i could give makeMenu a term object created by window.create (it would be usefull).
Sewbacca 19 Sep 2016
Okay, it is really nice.
I just typed in lua:
and i love it.
Nice work dude
=)
Sewbacca
Edited by Sewbacca, 19 September 2016 - 07:10 PM.
I just typed in lua:
local sPath = makeMenu() while true do shell.run('edit', sPath) sPath = makeMenu(nil, nil, nil, nil, fs.getDir(sPath)) end
and i love it.
Nice work dude
=)
Sewbacca
Edited by Sewbacca, 19 September 2016 - 07:10 PM.
LDDestroier 20 Sep 2016
An update! Woo!
...oh, and uh, I tried to make the scrollbar dragable, but I couldn't remember how to do it. Even though STD-GUI has that. Mhm.
- A palate can now be specified in the makeMenu() arguments (file txt/bg, folder txt/bg, path txt/bg, close button txt/bg, scrollbar colors)
- You can toggle hidden files/folders with CTRL+H (defaults to hidden)
- You can add an argument (the twelfth one) to add a close button
- Fixed minor graphical bugs
- Made makeMenu(true) return all argument names
...oh, and uh, I tried to make the scrollbar dragable, but I couldn't remember how to do it. Even though STD-GUI has that. Mhm.
LDDestroier 21 Sep 2016
STD is a file downloader that was made before wget was a default command. It downloads from pastebin, hastebin, codepad, and most importantly, from a premade list of programs and their URLs. Basically, I take programs on the forums and add them to this list, which STD downloads.
It's kinda like apt-get, but with only one repository. STD-GUI is the GUI version that just downloads programs from that list. You can look at the forum post too. There's a link in my profile page.
...It means 'Super Text Downloader', if you were curious.
Edited by EldidiStroyrr, 14 October 2016 - 02:07 AM.
It's kinda like apt-get, but with only one repository. STD-GUI is the GUI version that just downloads programs from that list. You can look at the forum post too. There's a link in my profile page.
...It means 'Super Text Downloader', if you were curious.
Edited by EldidiStroyrr, 14 October 2016 - 02:07 AM.