Bureaucrats, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, translator
2,564
edits
m (Add custom tooltips for {{Slot}}) |
m (only use custom names and lore if the parameters are set to something) |
||
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 then | if name ~= nil 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 then | if lore ~= nil 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 then | if name ~= nil 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 then | if lore ~= nil then | ||
sprite:SetLore(lore) | sprite:SetLore(lore) | ||
end | end |
edits