Fixed unknown .displayName after startup
This commit is contained in:
parent
2432bc6919
commit
bc481bef48
1 changed files with 6 additions and 2 deletions
|
|
@ -117,8 +117,12 @@ do
|
|||
end
|
||||
|
||||
function Details:SetDisplayName(actor, newDisplayName)
|
||||
local thisActor = self.displayName and self or actor
|
||||
thisActor.displayName = newDisplayName
|
||||
if (not newDisplayName) then
|
||||
newDisplayName = actor
|
||||
self.displayName = newDisplayName
|
||||
else
|
||||
actor.displayName = newDisplayName
|
||||
end
|
||||
end
|
||||
|
||||
function _detalhes:GetOnlyName (string)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue