Fixed bundler
Added :setOffset/:getOffset for Containers
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -5,5 +5,4 @@ test.xml
|
|||||||
ascii.lua
|
ascii.lua
|
||||||
tests
|
tests
|
||||||
testWorkflows
|
testWorkflows
|
||||||
basaltImage.lua
|
|
||||||
.vscode
|
.vscode
|
||||||
@@ -62,6 +62,9 @@ Container.defineProperty(Container, "offsetY", {default = 0, type = "number", ca
|
|||||||
return value
|
return value
|
||||||
end})
|
end})
|
||||||
|
|
||||||
|
---@combinedProperty offset {offsetX offsetY} Combined property for offsetX and offsetY
|
||||||
|
Container.combineProperties(Container, "offset", "offsetX", "offsetY")
|
||||||
|
|
||||||
for k, _ in pairs(elementManager:getElementList()) do
|
for k, _ in pairs(elementManager:getElementList()) do
|
||||||
local capitalizedName = k:sub(1,1):upper() .. k:sub(2)
|
local capitalizedName = k:sub(1,1):upper() .. k:sub(2)
|
||||||
if capitalizedName ~= "BaseFrame" then
|
if capitalizedName ~= "BaseFrame" then
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ local function bundle()
|
|||||||
'local project = {}\n',
|
'local project = {}\n',
|
||||||
'local loadedProject = {}\n',
|
'local loadedProject = {}\n',
|
||||||
'local baseRequire = require\n',
|
'local baseRequire = require\n',
|
||||||
'require = function(path) if(project[path..".lua"])then if(loadedProject[path]==nil)then loadedProject[path] = project[path..".lua"]() end return loadedProject[path] end baseRequire(path) end\n'
|
'require = function(path) if(project[path..".lua"])then if(loadedProject[path]==nil)then loadedProject[path] = project[path..".lua"]() end return loadedProject[path] end return baseRequire(path) end\n'
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, file in ipairs(files) do
|
for _, file in ipairs(files) do
|
||||||
|
|||||||
Reference in New Issue
Block a user