Module:Sprite: Difference between revisions

m
Lore prep
(I think this should do it?)
m (Lore prep)
Line 94: Line 94:
sheetWidth = size,
sheetWidth = size,
tiles = 1,
tiles = 1,
name = name
name = name,
text = text
}
}
}
}
Line 119: Line 120:
function Sprite:setItem(item)
function Sprite:setItem(item)
     if aliases[item] then
     if aliases[item] then
         self.__settings.name = aliases[item].title;
         self.__settings.name = aliases[item].title
self.__settings.text = aliases[item].text
     else
     else
         self.__settings.name = item;
         self.__settings.name = item;
Line 200: Line 202:
sprite:addClass(source.settings.classname)
sprite:addClass(source.settings.classname)
sprite:attr( "title", self.__settings.name )
sprite:attr( "title", self.__settings.name )
sprite:attr( "text", self.__settings.text )


local styles =  self:calculateStyles()
local styles =  self:calculateStyles()
Bureaucrats, Check users, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, Widget editors
1,659

edits