From 12eeb048f0cefb0d7574efe4dacdfca57752b842 Mon Sep 17 00:00:00 2001 From: Robert Jelic <36573031+NoryiE@users.noreply.github.com> Date: Sun, 3 Apr 2022 21:16:02 +0200 Subject: [PATCH] Updated Basalt (markdown) --- Basalt.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Basalt.md b/Basalt.md index 7c0086d..d86aded 100644 --- a/Basalt.md +++ b/Basalt.md @@ -20,7 +20,7 @@ local mainFrame = basalt.createFrame("myFirstFrame"):show() removes the frame ````lua local mainFrame = basalt.createFrame("myFirstFrame"):show() -NyoUI.removeFrame("myFirstFrame") +basalt.removeFrame("myFirstFrame") ```` **args:** the id as string
**returns:**-
@@ -70,7 +70,7 @@ basalt.debug("Hi i am cute") **returns:**-
# Tipps -If you are new to such things, you want to create your own logic (lets say for example a redstone or rednet handler) while using the NyoUI Framework, you just have to create something like this: +If you are new to such things, you want to create your own logic (lets say for example a redstone or rednet handler) while using the basalt Framework, you just have to create something like this: ````lua local basalt = dofile("basalt.lua") @@ -85,14 +85,14 @@ local function yourCustomHandler() end end -parallel.waitForAll(basalt.startUpdate, yourCustomHandler) -- here it will handle your function (yourCustomHandler) and NyoUIs handlers at the time +parallel.waitForAll(basalt.startUpdate, yourCustomHandler) -- here it will handle your function (yourCustomHandler) and basalts handlers at the time ```` You can read [here](http://www.computercraft.info/wiki/Parallel_(API)) what exactly parallel.waitForAll() does # Installer Here is a premade installer you can add into your script if you want: -This is a visual version, it asks the user if he wants to install NyoUI.lua (if not found)
+This is a visual version, it asks the user if he wants to install basalt.lua (if not found)
![](https://i.imgur.com/b4Ys7FB.png) ````lua --Basalt configurated installer @@ -146,9 +146,9 @@ local basalt = dofile(filePath) -- here you can change the variablename in any v ------------------------------ ```` -Here is a very basic one which just installs NyoUI.lua if don't exist: +Here is a very basic one which just installs basalt.lua if don't exist: ````lua ---NyoUI configurated installer +--Basalt configurated installer local filePath = "basalt.lua" --here you can change the file path default: basalt.lua if not(fs.exists(filePath))then shell.run("wget https://raw.githubusercontent.com/NoryiE/Basalt/master/basalt.lua "..filePath)