otclient icon indicating copy to clipboard operation
otclient copied to clipboard

Use gameLeftPanel as gameRightPanel

Open EgzoT opened this issue 6 years ago • 2 comments

It's provide to use gameLeftPanel (if it's ON) like gameRightPanel, by using function addToPanels().

When gameRightPanel is full: leftpanel_as_rightpanel_16-06-2018

When in gameRightPanel one window is resized (now windows it's moved to gameLeftPanel, normal it's would be removed): leftpanel_as_rightpanel_16-06-2018_2

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()).

EgzoT avatar Jun 16 '18 01:06 EgzoT

I have extra right panel on my otclient how can i add that panel into this code?

pasturryx avatar Feb 07 '20 13:02 pasturryx

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!

slavidodo avatar Jun 12 '20 09:06 slavidodo