Bureaucrats, Check users, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, Widget editors
1,659
edits
m (Fallbacks) |
m (Gotta have a nil check in fallbacks) |
||
Line 120: | Line 120: | ||
function Sprite:setItem(item) | function Sprite:setItem(item) | ||
if aliases[item] then | if aliases[item] then | ||
if #aliases[item].title == 2 then | if aliases[item].title then | ||
if #aliases[item].title == 2 then | |||
self.__settings.name = aliases[item].title .. aliases[item].name | |||
else | |||
self.__settings.name = aliases[item].title | self.__settings.name = aliases[item].title | ||
end | end | ||
elseif aliases[item].name then | |||
self.__settings.name = aliases[item].name | |||
end | end | ||
else | else | ||
self.__settings.name = item; | self.__settings.name = item; | ||
end | |||
if aliases[item].text then | |||
self.__settings.text = aliases[item].text | |||
end | |||
if self.__source.ids[item] then | if self.__source.ids[item] then | ||
self:setPosition(self.__source.ids[item].pos) | self:setPosition(self.__source.ids[item].pos) |
edits