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.
38 lines
862 B
C#
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);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|