From 9d5bc5be7be2f88ff6fed8e11986a6595ee50290 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Mon, 16 Nov 2020 21:27:13 -0500 Subject: Added watermark to desktop --- System/boot.lua | 6 +++--- System/desktop.lua | 5 +++++ System/post-setup.lua | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/System/boot.lua b/System/boot.lua index 2b81f8f..d1d2ff9 100644 --- a/System/boot.lua +++ b/System/boot.lua @@ -20,7 +20,7 @@ term.clear() term.setCursorPos(1,1) print("Starting up bits-UI ".. version .."...") - +term.setTextColor(colours.yellow) print(_HOST) --[[ @@ -42,7 +42,7 @@ else os.shutdown() end - + if fs.exists(desktop) then term.setTextColor(colors.green) print("[OK] Desktop has been found...") @@ -87,4 +87,4 @@ term.setTextColor(colors.green) print("[DONE] Boot sequence has been completed...") term.setTextColor(colors.white) sleep(3) -shell.run(desktop) \ No newline at end of file +shell.run(desktop) diff --git a/System/desktop.lua b/System/desktop.lua index 786b668..12f5a9f 100644 --- a/System/desktop.lua +++ b/System/desktop.lua @@ -18,6 +18,7 @@ local backgroundColour = 32768 local backgroundImage = "/home/.background" local panelColour = 8192 local appTitle = "[Programs]" +local w, h = term.getSize(); function drawPanel() local time = os.time() @@ -38,6 +39,10 @@ function drawDesktop() bground = paintutils.loadImage(backgroundImage) paintutils.drawImage(bground,1,1) drawPanel() + term.setCursorPos(1,17) + term.setBackgroundColor(colours.black) + write("bits-UI 1.0 Alpha 2\n") + write("Licensed with GPL-3.0") end --[[ if fs.exists("/programs") then diff --git a/System/post-setup.lua b/System/post-setup.lua index 802e597..9a13808 100644 --- a/System/post-setup.lua +++ b/System/post-setup.lua @@ -23,7 +23,7 @@ term.setTextColor(colors.white) print("Welcome to the bits-UI Post Setup!") sleep(2) --[[print("Please enter your password.") ---print("(Don't set your real password in servers.)") +print("(Don't set your real password in Minecraft Servers!)") local passPath = "/etc/passwd.pwd" if fs.exists(passPath) then -- cgit v1.2.3