2022-09-19 21:47:00 +02:00
|
|
|
local self = {}
|
|
|
|
|
|
|
|
function self.sprite(self)
|
2022-09-19 20:33:55 +02:00
|
|
|
self:basezoomx(sw / dw)
|
|
|
|
self:basezoomy(-sh / dh)
|
|
|
|
self:x(scx)
|
|
|
|
self:y(scy)
|
|
|
|
end
|
|
|
|
|
2022-09-19 21:47:00 +02:00
|
|
|
function self.aft(self)
|
2022-09-19 20:33:55 +02:00
|
|
|
self:SetWidth(dw)
|
|
|
|
self:SetHeight(dh)
|
|
|
|
self:EnableDepthBuffer(false)
|
|
|
|
self:EnableAlphaBuffer(false)
|
|
|
|
self:EnableFloat(false)
|
|
|
|
self:EnablePreserveTexture(true)
|
|
|
|
self:Create()
|
2022-09-19 21:47:00 +02:00
|
|
|
end
|
|
|
|
|
2023-05-04 20:56:26 +02:00
|
|
|
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
|
|
|
|
|
2022-09-19 21:47:00 +02:00
|
|
|
return self
|