Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local GUI = require("GUI")
- local image = require("image")
- local buffer = require("doubleBuffering")
- local MineOSInterface = require("MineOSInterface")
- local mainContainer, window = MineOSInterface.addWindow (MineOSInterface.tabbedWindow (1, 1, 88, 25))
- window.tabBar:addItem("Applications")
- window.tabBar:addItem("About")
- function debugObject(t)
- for k,v in pairs(t) do
- print(k, v)
- end
- end
- --debugObject(window)
- local icon = image.load("/MineOS/Applications/Installer.app/Resources/Installer.pic")
- window:addChild(GUI.image(window.width / 2 - icon[1] / 2, 2, icon))
- local aboutText = "Installer v0.1 made by StrangeOne101, Feb 2018\nMade to install apps that are no longer avaliable on the App Market. Some may not be translated into English."
- --Add the about label
- window:addChild(GUI.label(window.width / 2, 2 + 4 + icon[2], window.width - 20, 10, 0xFFFFFF, aboutText)):setAlignment (GUI. alignment . horizontal . center , GUI. alignment . vertical . center)
- function addProgram(name, x, y, url)
- end
- mainContainer: draw ()
- buffer. draw ( true )
- mainContainer: startEventHandling ()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement