- 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
22 lines
547 B
Lua
22 lines
547 B
Lua
local _OBJECTS = {}
|
|
|
|
if(packaged)then
|
|
for k,v in pairs(getProject("objects"))do
|
|
_OBJECTS[k] = v()
|
|
end
|
|
return _OBJECTS
|
|
end
|
|
|
|
local args = table.pack(...)
|
|
local dir = fs.getDir(args[2] or "Basalt")
|
|
if(dir==nil)then
|
|
error("Unable to find directory "..args[2].." please report this bug to our discord.")
|
|
end
|
|
|
|
for _,v in pairs(fs.list(fs.combine(dir, "objects")))do
|
|
if(v~="example.lua")and not(v:find(".disabled"))then
|
|
local name = v:gsub(".lua", "")
|
|
_OBJECTS[name] = require(name)
|
|
end
|
|
end
|
|
return _OBJECTS |