May be bugs in supporting libraries, but the multitasking library is fully updated. The guimanager may have a bug or 2, but I haven't found any ground breaking bugs that haven't been fixed
13 lines
396 B
Plaintext
13 lines
396 B
Plaintext
function gui:SetImage(i)
|
|
if type(i)=="string" or tostring(i):find("ImageData") then
|
|
self.Image=love.graphics.newImage(i)
|
|
else
|
|
self.Image=i
|
|
end
|
|
if self.Image then
|
|
self.ImageHeigth=self.Image:getHeight()
|
|
self.ImageWidth=self.Image:getWidth()
|
|
self.Quad=love.graphics.newQuad(0,0,self.width,self.height,self.ImageWidth,self.ImageHeigth)
|
|
end
|
|
return self.ImageWidth,self.ImageHeigth
|
|
end |