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
867 B
C#
38 lines
867 B
C#
using System;
|
|
|
|
namespace SS14.Client.UserInterface.Controls
|
|
{
|
|
[ControlWrap(typeof(Godot.AcceptDialog))]
|
|
public class AcceptDialog : WindowDialog
|
|
{
|
|
public AcceptDialog() : base()
|
|
{
|
|
}
|
|
|
|
public AcceptDialog(string name) : base(name)
|
|
{
|
|
}
|
|
|
|
internal AcceptDialog(Godot.AcceptDialog control) : base(control)
|
|
{
|
|
}
|
|
|
|
private protected override Godot.Control SpawnSceneControl()
|
|
{
|
|
return new Godot.AcceptDialog();
|
|
}
|
|
|
|
public string DialogText
|
|
{
|
|
get => GameController.OnGodot ? (string)SceneControl.Get("dialog_text") : default;
|
|
set
|
|
{
|
|
if (GameController.OnGodot)
|
|
{
|
|
SceneControl.Set("dialog_text", value);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|