peppek1993
New Member
- Joined
- Dec 17, 2017
- Messages
- 1
- Reaction score
- 0
Hey, I've followed this tutorial Module Tutorial (https://github.com/edubart/otclient/wiki/Module-Tutorial) and made some placeholder module, but right now I want to add a button to topmenu that I can click to toggle this module on/off, but I can't find where to register it.
I did this in my init() function but I'm guessing that's not all. Can't seem to find any function that actually loops through these buttons and adds them
LUA:
spellbookButton = modules.client_topmenu.addRightGameToggleButton('spellbookButton', tr('Spellbook'),
'/images/topbuttons/cooldowns', toggle)
I did this in my init() function but I'm guessing that's not all. Can't seem to find any function that actually loops through these buttons and adds them