- New Objects (Flexbox, Graph, Treeview) - Pluginsystem to add/remove functionality - Reworked the entire Object system, instead of one big Object Class we have multiple classes: Object, VisualObject, ChangeableObject - Instead of one big Frame Class we have multiple Frame Classes: BaseFrame, Frame, MovableFrame, ScrollableFrame, MonitorFrame, Flexbox - Removed the Animation Object, and added a animation plugin instead - Removed the Graphic Object and merged it's functionality with the image object - Updated currently existing objects
18 lines
544 B
Lua
18 lines
544 B
Lua
local curDir = fs.getDir(table.pack(...)[2]) or ""
|
|
|
|
local defaultPath = package.path
|
|
if not(packed)then
|
|
local format = "path;/path/?.lua;/path/?/init.lua;"
|
|
|
|
local main = format:gsub("path", curDir)
|
|
local objFolder = format:gsub("path", curDir.."/objects")
|
|
local plugFolder = format:gsub("path", curDir.."/plugins")
|
|
local libFolder = format:gsub("path", curDir.."/libraries")
|
|
|
|
|
|
package.path = main..objFolder..plugFolder..libFolder..defaultPath
|
|
end
|
|
local Basalt = require("main")
|
|
package.path = defaultPath
|
|
|
|
return Basalt |