Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --this is the file manager, it allows players to Open, Edit, and Delete Allowed Files. the list of allowed Files will be in a seperate File
- Opened_File = "n"
- File_Permissions = "r"
- File_Path = "home"
- VisibleItems[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]
- ItemTypes[]
- start()
- function start()
- BackgroundDraw()
- FolderDisplay()
- ScreenDrawer()
- UserManager()
- end
- function BackgroundDraw()
- paintutils.drawFilledBox(0,0,51,19,color.blue)
- paintutils.drawFilledBox(3,2,49,17,color.gray)
- paintutils.drawBox(1,1,50,18,color.black)
- paintutils.drawFilledBox(4,2,47,4,color.white)
- end
- function ScreenDrawer()--makes whatever is on the screen look way better.
- if Opened_File == "n" then
- paintutils.drawFilledBox(1,3,8,5,color.white)
- paintutils.drawFilledBox(10,3,13,5,color.white)
- paintutils.drawFilledBox(15,3,18,5,color.white)
- paintutils.drawFilledBox(20,3,23,5,color.white)
- paintutils.drawFilledBox(25,3,28,5,color.white)
- paintutils.drawFilledBox(1,7,8,9,color.white)
- paintutils.drawFilledBox(10,7,13,9,color.white)
- paintutils.drawFilledBox(15,7,18,9,color.white)
- paintutils.drawFilledBox(20,7,23,9,color.white)
- paintutils.drawFilledBox(25,7,28,9,color.white)
- else
- term.setCursorPos(4,4)
- term.clearLine()
- term.write(Opened_File)
- end
- end
- function FileLookup(file) --allows the User to search for a specific File
- print("called File Look up")
- end
- function FolderDisplay() --gathers all Items in a folder that the user is allowed to see.
- fs.list(File_Path)
- end
- function FileOperator(action)--allows the player to open, close, edit, delete, and save a file
- print("called File Operator")
- end
- function UserManager()-- Allows the Player to type, click files, and many other things
- print("Usermanager active")
- end
Add Comment
Please, Sign In to add comment