Fix require file names

The default install script offered in docs\home\installer.md would install to the file `basalt.lua` instead of `Basalt.lua`, directly following instructions would cause the example script to error because of this.
This commit is contained in:
EmmaKnijn
2022-08-08 17:10:13 +02:00
parent cf387cab5a
commit 878e45bf8c

View File

@@ -2,7 +2,7 @@
To load the framework into your project, make use of the following code on top of your code. To load the framework into your project, make use of the following code on top of your code.
```lua ```lua
local basalt = require("Basalt") local basalt = require("basalt")
``` ```
It does not matter if you have installed the single file version or the full folder project. <br> It does not matter if you have installed the single file version or the full folder project. <br>
@@ -43,7 +43,7 @@ The true keyword in the end is optional and would simply start BPM immediately.
Here is a fully functioning example of Basalt code Here is a fully functioning example of Basalt code
```lua ```lua
local basalt = require("Basalt") --> Load the Basalt framework local basalt = require("basalt") --> Load the Basalt framework
--> Create the first frame. Please note that Basalt needs at least one active "non-parent" frame to properly supply events --> Create the first frame. Please note that Basalt needs at least one active "non-parent" frame to properly supply events
--> When Basalt#createFrame makes use of unique identifiers (commonly referred to as UIDs), meaning that the supplied value must be UNIQUE --> When Basalt#createFrame makes use of unique identifiers (commonly referred to as UIDs), meaning that the supplied value must be UNIQUE
@@ -76,7 +76,7 @@ basalt.autoUpdate() --> Basalt#autoUpdate starts the event listener to detect us
``` ```
If you're like us and strive for succinct and beautiful code, here is a cleaner implementation of the code above: If you're like us and strive for succinct and beautiful code, here is a cleaner implementation of the code above:
```lua ```lua
local basalt = require("Basalt") local basalt = require("basalt")
local mainFrame = basalt.createFrame("mainFrame"):show() local mainFrame = basalt.createFrame("mainFrame"):show()
local button = mainFrame --> Basalt returns an instance of the object on most methods, to make use of "call-chaining" local button = mainFrame --> Basalt returns an instance of the object on most methods, to make use of "call-chaining"