aboutsummaryrefslogtreecommitdiff
path: root/system/desktop.lua
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@gmail.com>2019-03-06 15:04:04 -0500
committerAndrew Lee <alee14498@gmail.com>2019-03-06 15:04:04 -0500
commit34e25ebda57a7f5a4f28d0ff923ae27daf5c68b2 (patch)
tree1e1e4ef27a885e8602ab9941e7b98a16f3aa0d8a /system/desktop.lua
parentab94bab7e3d45b58084388b0cd5d247790a00005 (diff)
downloadbits-UI-34e25ebda57a7f5a4f28d0ff923ae27daf5c68b2.tar.gz
bits-UI-34e25ebda57a7f5a4f28d0ff923ae27daf5c68b2.tar.bz2
bits-UI-34e25ebda57a7f5a4f28d0ff923ae27daf5c68b2.zip
Another big change!
Diffstat (limited to 'system/desktop.lua')
-rw-r--r--system/desktop.lua18
1 files changed, 15 insertions, 3 deletions
diff --git a/system/desktop.lua b/system/desktop.lua
index e0afe4f..75598c9 100644
--- a/system/desktop.lua
+++ b/system/desktop.lua
@@ -13,24 +13,36 @@
GNU General Public License for more details.
]]--
+os.loadAPI("/system/apis/flib.lua")
+local backgroundColour = 32768
+local backgroundImage = "/home/.background"
+local panelColour = 8192
+local appTitle = "[Apps]"
+
function titleBar()
local time = os.time()
local formattedTime = textutils.formatTime(time, false)
term.setCursorPos(1,1)
- term.setBackgroundColor(colors.green)
+ term.setBackgroundColor(panelColour)
term.setTextColor(1)
term.clearLine()
term.setCursorPos(2, 1)
- print("[Apps]")
+ print(appTitle)
term.setCursorPos(44, 1)
print(formattedTime)
end
function drawDesktop()
- term.setBackgroundColor(colors.black)
+ term.setBackgroundColor(backgroundColour)
term.clear()
+ bground = paintutils.loadImage(backgroundImage)
+ paintutils.drawImage(bground,1,1)
titleBar()
end
+--[[
+ if fs.exists("/programs") then
+end
+]]
drawDesktop()