committed by
GitHub
parent
4cf8e18d1f
commit
26da24c3c5
@@ -86,7 +86,7 @@ namespace Content.Client.GameObjects.EntitySystems
|
||||
panel.AddStyleClass(StyleClassEntityTooltip);
|
||||
panel.ModulateSelfOverride = Color.LightGray.WithAlpha(0.90f);
|
||||
_examineTooltipOpen.AddChild(panel);
|
||||
panel.SetAnchorAndMarginPreset(Control.LayoutPreset.Wide);
|
||||
//panel.SetAnchorAndMarginPreset(Control.LayoutPreset.Wide);
|
||||
var vBox = new VBoxContainer();
|
||||
panel.AddChild(vBox);
|
||||
var hBox = new HBoxContainer { SeparationOverride = 5};
|
||||
@@ -145,7 +145,7 @@ namespace Content.Client.GameObjects.EntitySystems
|
||||
}
|
||||
}
|
||||
|
||||
_examineTooltipOpen.Position += Vector2.ComponentMin(Vector2.Zero,_userInterfaceManager.StateRoot.Size - (panel.Size + _examineTooltipOpen.Position));
|
||||
//_examineTooltipOpen.Position += Vector2.ComponentMin(Vector2.Zero,_userInterfaceManager.StateRoot.Size - (panel.Size + _examineTooltipOpen.Position));
|
||||
}
|
||||
|
||||
public void CloseTooltip()
|
||||
|
||||
@@ -198,14 +198,14 @@ namespace Content.Client.GameObjects.EntitySystems
|
||||
vBox.AddChild(panel);
|
||||
}
|
||||
|
||||
_currentPopup.Size = vBox.CombinedMinimumSize;
|
||||
//_currentPopup.Size = vBox.CombinedMinimumSize;
|
||||
|
||||
// If we're at the bottom of the window and the menu would go below the bottom of the window,
|
||||
// shift it up so it extends UP.
|
||||
var bottomCoords = vBox.CombinedMinimumSize.Y + _currentPopup.Position.Y;
|
||||
if (bottomCoords > _userInterfaceManager.StateRoot.Size.Y)
|
||||
{
|
||||
_currentPopup.Position = _currentPopup.Position - new Vector2(0, vBox.CombinedMinimumSize.Y);
|
||||
// _currentPopup.Position = _currentPopup.Position - new Vector2(0, vBox.CombinedMinimumSize.Y);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user