Bureaucrats, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, translator
2,564
edits
m (only use custom names and lore if the parameters are set to something) |
mNo edit summary |
||
Line 85: | Line 85: | ||
local name = args['name'] or args['Name'] or args['title'] or args['Title'] | local name = args['name'] or args['Name'] or args['title'] or args['Title'] | ||
if name ~= | if name.len() ~= 0 then | ||
sprite:SetTitle(name) | sprite:SetTitle(name) | ||
end | end | ||
local lore = args['lore'] or args['Lore'] or args['text'] or args['Text'] | local lore = args['lore'] or args['Lore'] or args['text'] or args['Text'] | ||
if lore ~= | if lore.len() ~= 0 then | ||
sprite:SetLore(lore) | sprite:SetLore(lore) | ||
end | end | ||
Line 155: | Line 155: | ||
local name = args['name'] or args['Name'] or args['title'] or args['Title'] | local name = args['name'] or args['Name'] or args['title'] or args['Title'] | ||
if name ~= | if name.len() ~= 0 then | ||
sprite:SetTitle(name) | sprite:SetTitle(name) | ||
end | end | ||
local lore = args['lore'] or args['Lore'] or args['text'] or args['Text'] | local lore = args['lore'] or args['Lore'] or args['text'] or args['Text'] | ||
if lore ~= | if lore.len() ~= 0 then | ||
sprite:SetLore(lore) | sprite:SetLore(lore) | ||
end | end |
edits