mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
AKA Without Godot. Still links against GodotSharp, but this does mean that you can run headless or not from the same binary.
34 lines
798 B
C#
34 lines
798 B
C#
using SS14.Client.Graphics.Drawing;
|
|
|
|
namespace SS14.Client.UserInterface.Controls
|
|
{
|
|
[ControlWrap(typeof(Godot.PanelContainer))]
|
|
public class PanelContainer : Control
|
|
{
|
|
public PanelContainer()
|
|
{
|
|
}
|
|
|
|
public PanelContainer(string name) : base(name)
|
|
{
|
|
}
|
|
|
|
internal PanelContainer(Godot.PanelContainer container) : base(container)
|
|
{
|
|
}
|
|
|
|
private protected override Godot.Control SpawnSceneControl()
|
|
{
|
|
return new Godot.PanelContainer();
|
|
}
|
|
|
|
private StyleBox _panelOverride;
|
|
|
|
public StyleBox PanelOverride
|
|
{
|
|
get => _panelOverride ?? GetStyleBoxOverride("panel");
|
|
set => SetStyleBoxOverride("panel", _panelOverride = value);
|
|
}
|
|
}
|
|
}
|