Gravity generator rewrite (#4828)
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
committed by
GitHub
parent
0e33b246db
commit
059fa9ae48
30
Content.Client/UserInterface/FancyWindow.xaml.cs
Normal file
30
Content.Client/UserInterface/FancyWindow.xaml.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using Robust.Client.AutoGenerated;
|
||||
using Robust.Client.UserInterface.CustomControls;
|
||||
using Robust.Client.UserInterface.XAML;
|
||||
using Robust.Shared.Maths;
|
||||
|
||||
namespace Content.Client.UserInterface
|
||||
{
|
||||
[GenerateTypedNameReferences]
|
||||
public partial class FancyWindow : BaseWindow
|
||||
{
|
||||
public FancyWindow()
|
||||
{
|
||||
RobustXamlLoader.Load(this);
|
||||
|
||||
CloseButton.OnPressed += _ => Close();
|
||||
XamlChildren = ContentsContainer.Children;
|
||||
}
|
||||
|
||||
public string? Title
|
||||
{
|
||||
get => WindowTitle.Text;
|
||||
set => WindowTitle.Text = value;
|
||||
}
|
||||
|
||||
protected override DragMode GetDragModeFor(Vector2 relativeMousePos)
|
||||
{
|
||||
return DragMode.Move;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user