Actions bar dynamic resizing (#31759)
* action bar dynamic resizing * action bar dynamic resizing for separated style * decreased indent for separated style --------- Co-authored-by: YourUsername <you@example.com>
This commit is contained in:
@@ -25,7 +25,15 @@ public sealed partial class DefaultGameScreen : InGameScreen
|
||||
|
||||
Chat.OnResized += ChatOnResized;
|
||||
Chat.OnChatResizeFinish += ChatOnResizeFinish;
|
||||
Actions.ActionsContainer.Columns = 1;
|
||||
|
||||
MainViewport.OnResized += ResizeActionContainer;
|
||||
Inventory.OnResized += ResizeActionContainer;
|
||||
}
|
||||
|
||||
private void ResizeActionContainer()
|
||||
{
|
||||
float indent = Inventory.Size.Y + TopBar.Size.Y + 40;
|
||||
Actions.ActionsContainer.MaxGridHeight = MainViewport.Size.Y - indent;
|
||||
}
|
||||
|
||||
private void ChatOnResizeFinish(Vector2 _)
|
||||
|
||||
Reference in New Issue
Block a user