Files
RobustToolbox/SS14.Client/UserInterface/Controls/GridContainer.cs
Pieter-Jan Briers dbc88e253b Allow client to run headlessly. (#727)
AKA Without Godot.

Still links against GodotSharp, but this does mean that you can run headless or not from the same binary.
2019-01-19 18:23:41 +01:00

38 lines
862 B
C#

using System;
namespace SS14.Client.UserInterface.Controls
{
[ControlWrap(typeof(Godot.GridContainer))]
public class GridContainer : Control
{
public GridContainer() : base()
{
}
public GridContainer(string name) : base(name)
{
}
internal GridContainer(Godot.GridContainer sceneControl) : base(sceneControl)
{
}
private protected override Godot.Control SpawnSceneControl()
{
return new Godot.GridContainer();
}
public int Columns
{
get => GameController.OnGodot ? (int)SceneControl.Get("columns") : default;
set
{
if (GameController.OnGodot)
{
SceneControl.Set("columns", value);
}
}
}
}
}