[OTCLIENT] Options button on inventory.

alekzg

Well-Known Member
Joined
Jul 20, 2010
Messages
19
Best answers
0
Reaction score
0
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
692
Best answers
9
Reaction score
229
@onClick: function() modules.client_options.toggle() end
 
Top