Helliot1
Owner of Empire Online
- Joined
- Jul 26, 2017
- Messages
- 315
- Solutions
- 1
- Reaction score
- 59
Hello!!
How I can shorten this lua function?
How I can shorten this lua function?
LUA:
function resetHotkeys()
spellsF1:setImageSource()
spellsF1:setText('F1')
spellsF2:setImageSource()
spellsF2:setText('F2')
spellsF3:setImageSource()
spellsF3:setText('F3')
spellsF4:setImageSource()
spellsF4:setText('F4')
spellsF5:setImageSource()
spellsF5:setText('F5')
spellsF6:setImageSource()
spellsF6:setText('F6')
spellsF7:setImageSource()
spellsF7:setText('F7')
spellsF8:setImageSource()
spellsF8:setText('F8')
spellsF9:setImageSource()
spellsF9:setText('F9')
spellsF10:setImageSource()
spellsF10:setText('F10')
spellsF11:setImageSource()
spellsF11:setText('F11')
spellsF12:setImageSource()
spellsF12:setText('F12')
end