Bureaucrats, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, translator
2,564
edits
m (how's this?) |
m (Add custom tooltips for {{Slot}}) |
||
Line 151: | Line 151: | ||
else | else | ||
sprite:SetSize(args['size'] or args['Size'] or 32) | sprite:SetSize(args['size'] or args['Size'] or 32) | ||
end | |||
local name = args['name'] or args['Name'] or args['title'] or args['Title'] | |||
if name then | |||
sprite:SetTitle(name) | |||
end | |||
local lore = args['lore'] or args['Lore'] or args['text'] or args['Text'] | |||
if lore then | |||
sprite:SetLore(lore) | |||
end | |||
local hideTooltip = args['hideToolTip'] or args['hideTooltip'] or args['HideToolTip'] or args['HideTooltip'] | |||
if hideTooltip then | |||
sprite:HideTooltip() | |||
end | end | ||
edits