Harakiri842
New Member
- Joined
- May 19, 2017
- Messages
- 12
- Reaction score
- 0
Hello, I have a problem with the second right panel. I was looking to add it and I do it:
I am new to code / lua otclient, so can anyone help me with this? : <
When I click one of them, my left panel has disappeared, I don't know why, I would like to have rightpanel2 next to the first right panel.
I saw someone doing it here: Klik, but I do not know how to do it. Can anyone help me with this?
And problem 2 blocks the effect like here: Klik i don't know how and where do this
I am new to code / lua otclient, so can anyone help me with this? : <
Lua:
6 gameRightPanel2 = nil
43 gameRightPanel2 = gameRootPanel:getChildById('gameRightPanel2')
46 connect(gameRightPanel2, { onVisibilityChange = onRightPanel2VisibilityChange })
119 disconnect(gameRightPanel2, { onVisibilityChange = onRightPanel2VisibilityChange })
788 function getRightPanel2()
789 return gameRightPanel2
790 end
805 function onRightPanel2VisibilityChange(RightPanel2, visible)
if not visible and g_game.isOnline() then
local children = RightPanel2:getChildren()
for i=1,#children do
children[i]:setParent(gameRightPanel)
end
end
end
[I]823 gameMapPanel:addAnchor(AnchorRight, 'gameRightPanel2', AnchorTop)
830 gameRightPanel2:setImageColor('white')
833 gameRightPanel2:setMarginTop(0)
858 gameRightPanel2:setImageColor('alpha')
862 gameRightPanel2:setMarginTop(modules.client_topmenu.getTopMenu()
863 :getHeight() - gameRightPanel2:getPaddingTop())
868 gameRightPanel2:setOn(true)
869 gameRightPanel2:setVisible(true)
Lua:
64 GameSidePanel
id: gameRightPanel2
anchors.right: parent.left
anchors.top: parent.top
anchors.bottom: parent.bottom
focusable: false
visible: true
on: true
$!on:
width: 0
visible: false
Lua:
18 showRightPanel2 = false,
205 elseif key == 'showRightPanel2' then
modules.game_interface.getRightPanel2():setOn(value)
Lua:
29
OptionCheckBox
id: showLeftPanel
!text: tr('Show right panel2')
I saw someone doing it here: Klik, but I do not know how to do it. Can anyone help me with this?
And problem 2 blocks the effect like here: Klik i don't know how and where do this
Last edited: