• Vote in May Mapping Competition to select a winner!
  • 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
22
Best answers
0
Reaction score
1
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
 

margoh

{{ user.title }}
Joined
Apr 1, 2013
Messages
736
Best answers
14
Reaction score
257
@onClick: function() modules.client_options.toggle() end
 
Top