Module:InventorySlot: Difference between revisions
Jump to navigation
Jump to search
m (Shouldn't help so frick) |
(Should now add `invslot` to html item slots) |
||
Line 60: | Line 60: | ||
else | else | ||
slot = mw.html.create("div") | slot = mw.html.create("div") | ||
end | |||
slot:addClass( "invslot" ) | |||
if self.__large then | |||
slot:addClass( "invslot-large") | |||
end | end | ||
if self.__html then | if self.__html then | ||
slot:wikitext(self.__html) | |||
end | end | ||
if self.__sprite then | if self.__sprite then | ||
self.__sprite:GenerateHTML(slot) | |||
end | end | ||
return slot | return slot |