Originally Posted by Lynxium
Code:
{
SmallButton,
{
anchors = "BOTTOMLEFT",
onClick = function()
self:ok()
end
},
{
Text,
anchors = "*",
"OK"
}
},
But then again, this is just a hunch because this change might complicate the rendering logic and buy nothing so to really provide insights to how you can improve performance one needs to know the full story beyond the generated code.
|
It actually won't. Thanks for this, I improved this part. It was fairly trivial to achieve next
lua Code:
-- js -> lua
frame.SetPoint('*') -> frame:SetAllPoints()
frame.SetPoint('TOPLEFT') -> frame:SetPoint('TOPLEFT')
frame.SetPoint(['TOPLEFT', 'parent', 'TOPLEFT']) -> frame:SetPoint('TOPLEFT')
frame.SetPoint(['TOPLEFT', 'parent', 'TOPRIGHT']) -> frame:SetPoint('TOPLEFT', frame:GetParent(), 'TOPRIGHT')
frame.SetPoint(['TOPLEFT', 20, 20]) -> frame:SetPoint('TOPLEFT', 20, 20)
frame.SetPoint(someVariable) -> frame:SetPoint(unpack(someVariable))
Originally Posted by Lynxium
p.s. Just a minor note Lua isn't an acronym but a word so you actually need to write Lua instead of LUA.
|
Again: thanks for this