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

[OTCLIENT] Options button on inventory.

alekzg

New Member
Joined
Jul 20, 2010
Messages
26
Reaction score
3
Hello i have one question,
i create new button "options" on inventory.otui. how can I give the button a command to open to me Options Panel (like main "options" button in the top menu). Can anyone help? I do not have strength anymore :(

36452
Lua:
OptionsBox < Button
  image-source: /images/game/combatmodes/options
  image-clip: 0 0 43 20

  $pressed:
    image-source: /images/game/combatmodes/optionsclick
    image-clip: 0 0 0 0
    
 OptionsBox
      id: optionsBox
      anchors.top: prev.bottom
      anchors.right: prev.right
      margin-top: 3
      margin-right: 0
      width: 43
      height: 20
 
@onClick: function() modules.client_options.toggle() end
 
Back
Top