Blasphemy
Well-Known Member
- Joined
- Jan 5, 2012
- Messages
- 387
- Reaction score
- 67
I have another issue with this system..how to make it work using otcv8?
fixed:
you have to replace the wholewith this one:Code:function UIMiniWindow:onDragLeave(droppedWidget, mousePos)
Code:function UIMiniWindow:onDragLeave(droppedWidget, mousePos) if self.movedWidget then self.setMovedChildMargin(self.movedOldMargin or 0) self.movedWidget = nil self.setMovedChildMargin = nil self.movedOldMargin = nil self.movedIndex = nil end local children = rootWidget:recursiveGetChildrenByMarginPos(mousePos) local dropInPanel = 0 for i=1,#children do local child = children[i] if child:getId() == 'gameLeftPanel' or child:getId() == 'gameRightPanel' then dropInPanel = 1 end end if dropInPanel == 0 then tmpp = self if(modules.game_interface.getLeftPanel():isVisible()) then if modules.game_interface.getRootPanel():getWidth() / 2 < mousePos.x then addEvent(function() tmpp:setParent(modules.game_interface.getRightPanel()) end) else addEvent(function() tmpp:setParent(modules.game_interface.getLeftPanel()) end) end else addEvent(function() tmpp:setParent(modules.game_interface.getRightPanel()) end) end end end
when i add more than 1 panel in each side, i cant drag windows to secondary panels