mirror of
https://github.com/edubart/otclient.git
synced 2025-10-16 04:24:54 +02:00
Provide the option to suppress lua call in setText
This commit is contained in:
@@ -403,5 +403,8 @@ function Spells.getSpellProfileByName(spellName)
|
||||
end
|
||||
|
||||
function Spells.getImageClip(id, profile)
|
||||
return (((id-1)%12)*SpelllistSettings[profile].iconSize.width) .. ' ' .. ((math.ceil(id/12)-1)*SpelllistSettings[profile].iconSize.height) .. ' ' .. SpelllistSettings[profile].iconSize.width .. ' ' .. SpelllistSettings[profile].iconSize.height
|
||||
return (((id-1)%12)*SpelllistSettings[profile].iconSize.width) .. ' '
|
||||
.. ((math.ceil(id/12)-1)*SpelllistSettings[profile].iconSize.height) .. ' '
|
||||
.. SpelllistSettings[profile].iconSize.width .. ' '
|
||||
.. SpelllistSettings[profile].iconSize.height
|
||||
end
|
Reference in New Issue
Block a user