Module:Sprite: Difference between revisions

Jump to navigation Jump to search
Use of aliases' name value.
mNo edit summary
(Use of aliases' name value.)
Line 153: Line 153:
         self.__settings.title = item;
         self.__settings.title = item;
end
end
 
if self.__source.ids[item] then
if aliases[item].name then
local itemName = aliases[item.name]
self:setPosition(self.__source.ids[itemName].pos)
if self.__source.ids[itenName].spriteSheet then
self.__settings.image = getSpriteSheet(self.__source.ids[itemName].spriteSheet)
end
elseif self.__source.ids[item] then
self:setPosition(self.__source.ids[item].pos)
self:setPosition(self.__source.ids[item].pos)
         if self.__source.ids[item].spriteSheet then
         if self.__source.ids[item].spriteSheet then
Bureaucrats, Check users, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, Widget editors
1,659

edits

Navigation menu