• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Adding a button to topmenu

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.


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
 
Back
Top