Changing player detection by GUID

This commit is contained in:
Tercio Jose
2024-08-30 11:44:00 -03:00
committed by andrew6180
parent fe8b3536d1
commit defce45d74
3 changed files with 12 additions and 3 deletions
+4
View File
@@ -5124,6 +5124,10 @@ function _G.__benchmark(bNotPrintResult)
end
end
function DF:DebugTexture(texture, left, right, top, bottom)
return DF:PreviewTexture(texture, left, right, top, bottom)
end
function DF:PreviewTexture(texture, left, right, top, bottom)
if (texture and type(texture) == "table" and texture.GetObjectType and texture:GetObjectType() == "Texture") then
DF:Msg("PreviewTexture: you have passed a texture object (uiobject) instead of the texture atlas, filename or id.")