uranium-core/stdlib/aft.lua

31 lines
549 B
Lua

local self = {}
function self.sprite(self)
self:basezoomx(sw / dw)
self:basezoomy(-sh / dh)
self:x(scx)
self:y(scy)
end
function self.aft(self)
self:SetWidth(dw)
self:SetHeight(dh)
self:EnableDepthBuffer(false)
self:EnableAlphaBuffer(false)
self:EnableFloat(false)
self:EnablePreserveTexture(true)
self:Create()
end
function self.aftSetup()
local a = ActorFrameTexture()
local b = Sprite()
uranium.on('init', function()
self.aft(a)
self.sprite(b)
b:SetTexture(a:GetTexture())
end)
return a, b
end
return self