Module:InventorySlot: Difference between revisions

m
Shouldn't help so frick
(Should allow arbitrary html be inserted into the slots. Mainly used for specialized items)
m (Shouldn't help so frick)
Line 14: Line 14:


function UISlot:SetItem(item)
function UISlot:SetItem(item)
if string.sub(item,1,1) == '<' then
if string.sub(item or "",1,1) == '<' then
-- If the item is already html just save that
-- If the item is already html just save that
self.__html = item
self.__html = item
Bureaucrats, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, translator, Widget editors
154

edits