• 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!

How to remove buttons from OTClient?

The Frenesy

Member
Joined
Sep 3, 2020
Messages
32
Solutions
1
Reaction score
7
I want to remove some buttons from my OTClient.

Is it possible to remove them without having to change the sources?

Screenshot_1.png
 
for example:
in modules/client_modulemanager/modulemanager.lua
delete:
Lua:
local moduleManagerButton
and:
Lua:
moduleManagerButton = modules.client_topmenu.addLeftButton('moduleManagerButton', tr('Module Manager'), '/images/topbuttons/modulemanager', toggle)
and:
Lua:
moduleManagerButton:destroy()
and:
Lua:
moduleManagerButton:hide()
 
for example:
in modules/client_modulemanager/modulemanager.lua
delete:
Lua:
local moduleManagerButton
and:
Lua:
moduleManagerButton = modules.client_topmenu.addLeftButton('moduleManagerButton', tr('Module Manager'), '/images/topbuttons/modulemanager', toggle)
and:
Lua:
moduleManagerButton:destroy()
and:
Lua:
moduleManagerButton:hide()

Sorry, I quoted a wrong version in print. The OTClient I'm using is V8 2.4.

However, I couldn't find any folder with the name "client_modulemanager" or "modulemanager".
 
@Qbazzz

After searching a lot, I managed to resolve the button issue.
I just need to know now how to remove this character counter from Global.

Screenshot_5.png
 

Which part should I remove or add the dashes "--" ?
I tried to delete some sections but it gave error when running the client.

EDIT:
I managed to remove the information from those who are online, now I just need to try to remove the Discord icon.

Screenshot_1.png
 
Last edited:
Ok then. Let me give you a quick solution.
It is not the best thing to do, but it will do the job for you and I'm kinda too lazy to do it proper way right now.
In the file I linked to you before:

under:
Lua:
topMenu = g_ui.createWidget('TopMenu', g_ui.getRootWidget()) 
  g_keyboard.bindKeyDown('Ctrl+Shift+T', toggle)

add:
Lua:
if topMenu.onlineLabel then
    topMenu.onlineLabel:hide()
  end

remove this:
Lua:
if topMenu.onlineLabel then
    topMenu.onlineLabel:show()
  end
 
Back
Top