Fix PDA capitalization to be PascalCase (#17335)
This commit is contained in:
56
Content.Client/PDA/PdaWindow.xaml.cs
Normal file
56
Content.Client/PDA/PdaWindow.xaml.cs
Normal file
@@ -0,0 +1,56 @@
|
||||
using Robust.Client.AutoGenerated;
|
||||
using Robust.Client.UserInterface.CustomControls;
|
||||
using Robust.Client.UserInterface.XAML;
|
||||
|
||||
namespace Content.Client.PDA;
|
||||
|
||||
[Virtual]
|
||||
[GenerateTypedNameReferences]
|
||||
public partial class PdaWindow : BaseWindow
|
||||
{
|
||||
|
||||
public string? BorderColor
|
||||
{
|
||||
get => Background.ActualModulateSelf.ToHex();
|
||||
|
||||
set => Background.ModulateSelfOverride = Color.FromHex(value, Color.White);
|
||||
}
|
||||
|
||||
public string? AccentHColor
|
||||
{
|
||||
get => AccentH.ActualModulateSelf.ToHex();
|
||||
|
||||
set
|
||||
{
|
||||
AccentH.ModulateSelfOverride = Color.FromHex(value, Color.White);
|
||||
AccentH.Visible = value != null;
|
||||
}
|
||||
}
|
||||
|
||||
public string? AccentVColor
|
||||
{
|
||||
get => AccentV.ActualModulateSelf.ToHex();
|
||||
|
||||
set
|
||||
{
|
||||
AccentV.ModulateSelfOverride = Color.FromHex(value, Color.White);
|
||||
AccentV.Visible = value != null;
|
||||
}
|
||||
}
|
||||
|
||||
public PdaWindow()
|
||||
{
|
||||
RobustXamlLoader.Load(this);
|
||||
|
||||
CloseButton.OnPressed += _ => Close();
|
||||
XamlChildren = ContentsContainer.Children;
|
||||
|
||||
AccentH.Visible = false;
|
||||
AccentV.Visible = false;
|
||||
}
|
||||
|
||||
protected override DragMode GetDragModeFor(Vector2 relativeMousePos)
|
||||
{
|
||||
return DragMode.Move;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user