Bureaucrats, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, translator
2,564
edits
(moving the aliasData to Sprite:setItem (double alias attempt #4)) |
(let's try this again... moving alias check to Sprite:setItem (double alias attempt #5)) |
||
Line 2: | Line 2: | ||
local Sprite = {} | local Sprite = {} | ||
local aliasData = { | |||
vanillaAliases = [[Module:InventorySlot/Aliases]], | |||
gm4Aliases = [[Module:Gm4Sprite/Aliases]] | |||
} | |||
Sprite.aliasData = aliasData | |||
local vanillaAliases = mw.loadData( aliasData.vanillaAliases ) | |||
local gm4Aliases = mw.loadData( aliasData.gm4Aliases ) | |||
local types = { | local types = { | ||
Line 115: | Line 124: | ||
function Sprite:setItem(item, type) | function Sprite:setItem(item, type) | ||
-- | -- set aliases | ||
if type == "gm4" then | |||
local aliases = gm4Aliases | |||
else | |||
local aliases = vanillaAliases | |||
end | |||
-- js-less plaintext title | -- js-less plaintext title | ||
self.__settings.name = item | self.__settings.name = item |
edits