otclient
otclient copied to clipboard
Use gameLeftPanel as gameRightPanel
It's provide to use gameLeftPanel (if it's ON) like gameRightPanel, by using function addToPanels().
When gameRightPanel is full:
When in gameRightPanel one window is resized (now windows it's moved to gameLeftPanel, normal it's would be removed):
New functions:
[modules.game_interface] addToPanels(<UIWidget>
) - they set uiminiwindow in gameRightPanel or in gameLeftPanel (according on free place) priority gameRightPanel [function may set uiminiwindow to gameLeftPanel only when it's ON], additional they moved (if find free place in gameRightPanel or gameLeftPanel) window when we add other uiminiwindow or resize one from them when uiminiwindowcontainer is full (instead remove) to other Panel.
UIMiniWindowContainer:getEmptySpaceHeight() - return height of UIMiniWindowContainer without windows (uiminiwindow), who we may set to other windows.
New signals (signalcall):
UIMiniWindowContainer.onRemoveFromContainer [<UIWidget>
] - return UIWidget who want to be removed (before deleted who provide to set operation to stopped deleted this UIWidget [change parent]) from UIMiniWindowContainer (by UIMiniWindowContainer:fitAll()).
I have extra right panel on my otclient how can i add that panel into this code?
This is a good start at which we can actually support multiple containers. Any chance we could see this dynamically handled by the user using an "arrow" on the top corner of the last panel?
I'm looking to merging this!