collapse bottom panel
This commit is contained in:
@@ -31,7 +31,11 @@ public partial class BottomPanelManager : Panel
|
||||
{
|
||||
if (type == null)
|
||||
{
|
||||
// TODO: Ask parent to to collapse slider.
|
||||
GodotGlobalEvents.InvokeBottomPanelVisibilityChangeRequested(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
GodotGlobalEvents.InvokeBottomPanelVisibilityChangeRequested(true);
|
||||
}
|
||||
foreach (var kvp in _panelTypeMap)
|
||||
{
|
||||
|
||||
@@ -7,6 +7,23 @@ public partial class InvertedVSplitContainer : VSplitContainer
|
||||
{
|
||||
[Export]
|
||||
private int _invertedOffset = 200;
|
||||
private bool _invertedCollapsed = false;
|
||||
|
||||
public void InvertedSetCollapsed(bool collapsed)
|
||||
{
|
||||
if (_invertedCollapsed == collapsed) return;
|
||||
_invertedCollapsed = collapsed;
|
||||
if (collapsed)
|
||||
{
|
||||
SplitOffset = (int)Size.Y + 100;
|
||||
DraggingEnabled = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
SplitOffset = (int)Size.Y - _invertedOffset;
|
||||
DraggingEnabled = true;
|
||||
}
|
||||
}
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user