From 247c7a1d4d8f9494689c87bed79dfe6ab3f18f67 Mon Sep 17 00:00:00 2001
From: 0x6273 <0x40@keemail.me>
Date: Thu, 15 Jun 2023 03:44:28 +0200
Subject: [PATCH] Fix PDA capitalization to be PascalCase (#17335)
---
.../NetworkConfiguratorLinkMenu.xaml | 10 +-
...omponent.cs => PdaBorderColorComponent.cs} | 2 +-
...rInterface.cs => PdaBoundUserInterface.cs} | 30 ++--
.../PDA/{PDAMenu.xaml => PdaMenu.xaml} | 36 ++---
.../PDA/{PDAMenu.xaml.cs => PdaMenu.xaml.cs} | 24 +--
...onButton.xaml => PdaNavigationButton.xaml} | 4 +-
...on.xaml.cs => PdaNavigationButton.xaml.cs} | 4 +-
...DAProgramItem.xaml => PdaProgramItem.xaml} | 4 +-
...ramItem.xaml.cs => PdaProgramItem.xaml.cs} | 4 +-
...ingsButton.xaml => PdaSettingsButton.xaml} | 4 +-
...tton.xaml.cs => PdaSettingsButton.xaml.cs} | 4 +-
.../PDA/{PDASystem.cs => PdaSystem.cs} | 24 +--
.../PDA/{PDAWindow.xaml => PdaWindow.xaml} | 20 +--
.../{PDAWindow.xaml.cs => PdaWindow.xaml.cs} | 4 +-
.../UI/MiniTechnologyCardControl.xaml | 2 +-
.../Research/UI/TechnologyCardControl.xaml | 2 +-
Content.Client/Stylesheets/StyleNano.cs | 48 +++---
.../Tests/InventoryHelpersTest.cs | 2 +-
.../Access/Systems/IdExaminableSystem.cs | 4 +-
.../Commands/SetOutfitCommand.cs | 6 +-
.../Systems/AdminVerbSystem.Tools.cs | 6 +-
Content.Server/AlertLevel/AlertLevelSystem.cs | 2 +-
.../CartridgeLoader/CartridgeLoaderSystem.cs | 6 +-
Content.Server/Entry/IgnoredComponents.cs | 2 +-
Content.Server/Mind/Commands/RenameCommand.cs | 4 +-
.../PDA/{PDASystem.cs => PdaSystem.cs} | 74 ++++-----
Content.Server/PDA/Ringer/RingerSystem.cs | 4 +-
Content.Server/Sandbox/SandboxSystem.cs | 6 +-
.../Station/Systems/StationSpawningSystem.cs | 6 +-
.../Systems/StationRecordsSystem.cs | 2 +-
Content.Server/Traitor/Uplink/UplinkSystem.cs | 4 +-
.../Access/Components/IdCardComponent.cs | 4 +-
.../Access/Systems/AccessReaderSystem.cs | 8 +-
.../Access/Systems/SharedIdCardSystem.cs | 6 +-
Content.Shared/PDA/PDAMessagesUI.cs | 39 -----
.../PDA/{PDAComponent.cs => PdaComponent.cs} | 8 +-
Content.Shared/PDA/PdaMessagesUi.cs | 39 +++++
.../{PDAUpdateState.cs => PdaUpdateState.cs} | 10 +-
.../PDA/{PDAVisuals.cs => PdaVisuals.cs} | 6 +-
...{SharedPDASystem.cs => SharedPdaSystem.cs} | 32 ++--
.../Catalog/Fills/Boxes/general.yml | 2 +-
.../Entities/Objects/Devices/pda.yml | 146 +++++++++---------
.../Machines/material_reclaimer.yml | 2 +-
.../Entities/Structures/Machines/recycler.yml | 2 +-
44 files changed, 329 insertions(+), 329 deletions(-)
rename Content.Client/PDA/{PDABorderColorComponent.cs => PdaBorderColorComponent.cs} (86%)
rename Content.Client/PDA/{PDABoundUserInterface.cs => PdaBoundUserInterface.cs} (79%)
rename Content.Client/PDA/{PDAMenu.xaml => PdaMenu.xaml} (81%)
rename Content.Client/PDA/{PDAMenu.xaml.cs => PdaMenu.xaml.cs} (93%)
rename Content.Client/PDA/{PDANavigationButton.xaml => PdaNavigationButton.xaml} (78%)
rename Content.Client/PDA/{PDANavigationButton.xaml.cs => PdaNavigationButton.xaml.cs} (96%)
rename Content.Client/PDA/{PDAProgramItem.xaml => PdaProgramItem.xaml} (92%)
rename Content.Client/PDA/{PDAProgramItem.xaml.cs => PdaProgramItem.xaml.cs} (91%)
rename Content.Client/PDA/{PDASettingsButton.xaml => PdaSettingsButton.xaml} (82%)
rename Content.Client/PDA/{PDASettingsButton.xaml.cs => PdaSettingsButton.xaml.cs} (94%)
rename Content.Client/PDA/{PDASystem.cs => PdaSystem.cs} (56%)
rename Content.Client/PDA/{PDAWindow.xaml => PdaWindow.xaml} (77%)
rename Content.Client/PDA/{PDAWindow.xaml.cs => PdaWindow.xaml.cs} (94%)
rename Content.Server/PDA/{PDASystem.cs => PdaSystem.cs} (71%)
delete mode 100644 Content.Shared/PDA/PDAMessagesUI.cs
rename Content.Shared/PDA/{PDAComponent.cs => PdaComponent.cs} (85%)
create mode 100644 Content.Shared/PDA/PdaMessagesUi.cs
rename Content.Shared/PDA/{PDAUpdateState.cs => PdaUpdateState.cs} (77%)
rename Content.Shared/PDA/{PDAVisuals.cs => PdaVisuals.cs} (70%)
rename Content.Shared/PDA/{SharedPDASystem.cs => SharedPdaSystem.cs} (53%)
diff --git a/Content.Client/NetworkConfigurator/NetworkConfiguratorLinkMenu.xaml b/Content.Client/NetworkConfigurator/NetworkConfiguratorLinkMenu.xaml
index b048f4527b..a512e694f6 100644
--- a/Content.Client/NetworkConfigurator/NetworkConfiguratorLinkMenu.xaml
+++ b/Content.Client/NetworkConfigurator/NetworkConfiguratorLinkMenu.xaml
@@ -35,12 +35,12 @@
-
-
+
+
-
-
-
+
+
+
diff --git a/Content.Client/PDA/PDABorderColorComponent.cs b/Content.Client/PDA/PdaBorderColorComponent.cs
similarity index 86%
rename from Content.Client/PDA/PDABorderColorComponent.cs
rename to Content.Client/PDA/PdaBorderColorComponent.cs
index c9af50d2f5..fc0ba25963 100644
--- a/Content.Client/PDA/PDABorderColorComponent.cs
+++ b/Content.Client/PDA/PdaBorderColorComponent.cs
@@ -4,7 +4,7 @@
/// Used for specifying the pda windows border colors
///
[RegisterComponent]
-public sealed class PDABorderColorComponent : Component
+public sealed class PdaBorderColorComponent : Component
{
[DataField("borderColor", required: true)]
public string? BorderColor;
diff --git a/Content.Client/PDA/PDABoundUserInterface.cs b/Content.Client/PDA/PdaBoundUserInterface.cs
similarity index 79%
rename from Content.Client/PDA/PDABoundUserInterface.cs
rename to Content.Client/PDA/PdaBoundUserInterface.cs
index 4553b23fd3..6e569dcf13 100644
--- a/Content.Client/PDA/PDABoundUserInterface.cs
+++ b/Content.Client/PDA/PdaBoundUserInterface.cs
@@ -12,14 +12,14 @@ using Robust.Shared.Configuration;
namespace Content.Client.PDA
{
[UsedImplicitly]
- public sealed class PDABoundUserInterface : CartridgeLoaderBoundUserInterface
+ public sealed class PdaBoundUserInterface : CartridgeLoaderBoundUserInterface
{
[Dependency] private readonly IEntityManager? _entityManager = default!;
[Dependency] private readonly IConfigurationManager _configManager = default!;
- private PDAMenu? _menu;
+ private PdaMenu? _menu;
- public PDABoundUserInterface(ClientUserInterfaceComponent owner, Enum uiKey) : base(owner, uiKey)
+ public PdaBoundUserInterface(ClientUserInterfaceComponent owner, Enum uiKey) : base(owner, uiKey)
{
IoCManager.InjectDependencies(this);
}
@@ -27,13 +27,13 @@ namespace Content.Client.PDA
protected override void Open()
{
base.Open();
- SendMessage(new PDARequestUpdateInterfaceMessage());
- _menu = new PDAMenu();
+ SendMessage(new PdaRequestUpdateInterfaceMessage());
+ _menu = new PdaMenu();
_menu.OpenCenteredLeft();
_menu.OnClose += Close;
_menu.FlashLightToggleButton.OnToggled += _ =>
{
- SendMessage(new PDAToggleFlashlightMessage());
+ SendMessage(new PdaToggleFlashlightMessage());
};
if (_configManager.GetCVar(CCVars.CrewManifestUnsecure))
@@ -47,32 +47,32 @@ namespace Content.Client.PDA
_menu.EjectIdButton.OnPressed += _ =>
{
- SendMessage(new ItemSlotButtonPressedEvent(PDAComponent.PDAIdSlotId));
+ SendMessage(new ItemSlotButtonPressedEvent(PdaComponent.PdaIdSlotId));
};
_menu.EjectPenButton.OnPressed += _ =>
{
- SendMessage(new ItemSlotButtonPressedEvent(PDAComponent.PDAPenSlotId));
+ SendMessage(new ItemSlotButtonPressedEvent(PdaComponent.PdaPenSlotId));
};
_menu.ActivateMusicButton.OnPressed += _ =>
{
- SendMessage(new PDAShowMusicMessage());
+ SendMessage(new PdaShowMusicMessage());
};
_menu.AccessRingtoneButton.OnPressed += _ =>
{
- SendMessage(new PDAShowRingtoneMessage());
+ SendMessage(new PdaShowRingtoneMessage());
};
_menu.ShowUplinkButton.OnPressed += _ =>
{
- SendMessage(new PDAShowUplinkMessage());
+ SendMessage(new PdaShowUplinkMessage());
};
_menu.LockUplinkButton.OnPressed += _ =>
{
- SendMessage(new PDALockUplinkMessage());
+ SendMessage(new PdaLockUplinkMessage());
};
_menu.OnProgramItemPressed += ActivateCartridge;
@@ -93,7 +93,7 @@ namespace Content.Client.PDA
{
base.UpdateState(state);
- if (state is not PDAUpdateState updateState)
+ if (state is not PdaUpdateState updateState)
return;
_menu?.UpdateState(updateState);
@@ -130,9 +130,9 @@ namespace Content.Client.PDA
_menu?.Dispose();
}
- private PDABorderColorComponent? GetBorderColorComponent()
+ private PdaBorderColorComponent? GetBorderColorComponent()
{
- return _entityManager?.GetComponentOrNull(Owner.Owner);
+ return _entityManager?.GetComponentOrNull(Owner.Owner);
}
}
}
diff --git a/Content.Client/PDA/PDAMenu.xaml b/Content.Client/PDA/PdaMenu.xaml
similarity index 81%
rename from Content.Client/PDA/PDAMenu.xaml
rename to Content.Client/PDA/PdaMenu.xaml
index 0b61cde932..a06032d6d2 100644
--- a/Content.Client/PDA/PDAMenu.xaml
+++ b/Content.Client/PDA/PdaMenu.xaml
@@ -1,25 +1,25 @@
-
-
-
-
+
+
+
-
-
+
-
-
-
-
+
+
+
-
-
-
-
-
@@ -88,8 +88,8 @@
-
-
+
+
-
+
diff --git a/Content.Client/PDA/PDAMenu.xaml.cs b/Content.Client/PDA/PdaMenu.xaml.cs
similarity index 93%
rename from Content.Client/PDA/PDAMenu.xaml.cs
rename to Content.Client/PDA/PdaMenu.xaml.cs
index a639c9d184..e19c6710a2 100644
--- a/Content.Client/PDA/PDAMenu.xaml.cs
+++ b/Content.Client/PDA/PdaMenu.xaml.cs
@@ -13,7 +13,7 @@ using Robust.Shared.Timing;
namespace Content.Client.PDA
{
[GenerateTypedNameReferences]
- public sealed partial class PDAMenu : PDAWindow
+ public sealed partial class PdaMenu : PdaWindow
{
[Dependency] private readonly IGameTiming _gameTiming = default!;
[Dependency] private readonly IEntitySystemManager _entitySystem = default!;
@@ -29,7 +29,7 @@ namespace Content.Client.PDA
public event Action? OnProgramItemPressed;
public event Action? OnUninstallButtonPressed;
public event Action? OnInstallButtonPressed;
- public PDAMenu()
+ public PdaMenu()
{
IoCManager.InjectDependencies(this);
_gameTicker = _entitySystem.GetEntitySystem();
@@ -88,22 +88,22 @@ namespace Content.Client.PDA
ToHomeScreen();
}
- public void UpdateState(PDAUpdateState state)
+ public void UpdateState(PdaUpdateState state)
{
FlashLightToggleButton.IsActive = state.FlashlightEnabled;
- if (state.PDAOwnerInfo.ActualOwnerName != null)
+ if (state.PdaOwnerInfo.ActualOwnerName != null)
{
PdaOwnerLabel.SetMarkup(Loc.GetString("comp-pda-ui-owner",
- ("actualOwnerName", state.PDAOwnerInfo.ActualOwnerName)));
+ ("actualOwnerName", state.PdaOwnerInfo.ActualOwnerName)));
}
- if (state.PDAOwnerInfo.IdOwner != null || state.PDAOwnerInfo.JobTitle != null)
+ if (state.PdaOwnerInfo.IdOwner != null || state.PdaOwnerInfo.JobTitle != null)
{
IdInfoLabel.SetMarkup(Loc.GetString("comp-pda-ui",
- ("owner", state.PDAOwnerInfo.IdOwner ?? Loc.GetString("comp-pda-ui-unknown")),
- ("jobTitle", state.PDAOwnerInfo.JobTitle ?? Loc.GetString("comp-pda-ui-unassigned"))));
+ ("owner", state.PdaOwnerInfo.IdOwner ?? Loc.GetString("comp-pda-ui-unknown")),
+ ("jobTitle", state.PdaOwnerInfo.JobTitle ?? Loc.GetString("comp-pda-ui-unassigned"))));
}
else
{
@@ -118,8 +118,8 @@ namespace Content.Client.PDA
StationTimeLabel.SetMarkup(Loc.GetString("comp-pda-ui-station-time",
("time", stationTime.ToString("hh\\:mm\\:ss"))));
- var alertLevel = state.PDAOwnerInfo.StationAlertLevel;
- var alertColor = state.PDAOwnerInfo.StationAlertColor;
+ var alertLevel = state.PdaOwnerInfo.StationAlertLevel;
+ var alertColor = state.PdaOwnerInfo.StationAlertColor;
var alertLevelKey = alertLevel != null ? $"alert-level-{alertLevel}" : "alert-level-unknown";
StationAlertLevelLabel.SetMarkup(Loc.GetString(
@@ -135,7 +135,7 @@ namespace Content.Client.PDA
AddressLabel.Text = state.Address?.ToUpper() ?? " - ";
- EjectIdButton.IsActive = state.PDAOwnerInfo.IdOwner != null || state.PDAOwnerInfo.JobTitle != null;
+ EjectIdButton.IsActive = state.PdaOwnerInfo.IdOwner != null || state.PdaOwnerInfo.JobTitle != null;
EjectPenButton.IsActive = state.HasPen;
ActivateMusicButton.Visible = state.CanPlayMusic;
ShowUplinkButton.Visible = state.HasUplink;
@@ -172,7 +172,7 @@ namespace Content.Client.PDA
ProgramList.AddChild(row);
}
- var item = new PDAProgramItem();
+ var item = new PdaProgramItem();
if (component.Icon is not null)
item.Icon.SetFromSpriteSpecifier(component.Icon);
diff --git a/Content.Client/PDA/PDANavigationButton.xaml b/Content.Client/PDA/PdaNavigationButton.xaml
similarity index 78%
rename from Content.Client/PDA/PDANavigationButton.xaml
rename to Content.Client/PDA/PdaNavigationButton.xaml
index 94badd9451..03cf68f0ec 100644
--- a/Content.Client/PDA/PDANavigationButton.xaml
+++ b/Content.Client/PDA/PdaNavigationButton.xaml
@@ -1,5 +1,5 @@
-
+
-
+
diff --git a/Content.Client/PDA/PDANavigationButton.xaml.cs b/Content.Client/PDA/PdaNavigationButton.xaml.cs
similarity index 96%
rename from Content.Client/PDA/PDANavigationButton.xaml.cs
rename to Content.Client/PDA/PdaNavigationButton.xaml.cs
index 83907717c3..3e44829411 100644
--- a/Content.Client/PDA/PDANavigationButton.xaml.cs
+++ b/Content.Client/PDA/PdaNavigationButton.xaml.cs
@@ -7,7 +7,7 @@ using Robust.Shared.Utility;
namespace Content.Client.PDA;
[GenerateTypedNameReferences]
-public sealed partial class PDANavigationButton : ContainerButton
+public sealed partial class PdaNavigationButton : ContainerButton
{
private bool _isCurrent;
@@ -100,7 +100,7 @@ public sealed partial class PDANavigationButton : ContainerButton
}
}
- public PDANavigationButton()
+ public PdaNavigationButton()
{
RobustXamlLoader.Load(this);
Background.PanelOverride = _styleBox;
diff --git a/Content.Client/PDA/PDAProgramItem.xaml b/Content.Client/PDA/PdaProgramItem.xaml
similarity index 92%
rename from Content.Client/PDA/PDAProgramItem.xaml
rename to Content.Client/PDA/PdaProgramItem.xaml
index d47df17e7f..9f9fba938f 100644
--- a/Content.Client/PDA/PDAProgramItem.xaml
+++ b/Content.Client/PDA/PdaProgramItem.xaml
@@ -1,4 +1,4 @@
-
@@ -14,4 +14,4 @@
-
+
diff --git a/Content.Client/PDA/PDAProgramItem.xaml.cs b/Content.Client/PDA/PdaProgramItem.xaml.cs
similarity index 91%
rename from Content.Client/PDA/PDAProgramItem.xaml.cs
rename to Content.Client/PDA/PdaProgramItem.xaml.cs
index 9348cc5c12..9709f5706b 100644
--- a/Content.Client/PDA/PDAProgramItem.xaml.cs
+++ b/Content.Client/PDA/PdaProgramItem.xaml.cs
@@ -6,7 +6,7 @@ using Robust.Client.UserInterface.XAML;
namespace Content.Client.PDA;
[GenerateTypedNameReferences]
-public sealed partial class PDAProgramItem : ContainerButton
+public sealed partial class PdaProgramItem : ContainerButton
{
public const string StylePropertyBgColor = "backgroundColor";
public const string NormalBgColor = "#313138";
@@ -23,7 +23,7 @@ public sealed partial class PDAProgramItem : ContainerButton
set => _styleBox.BackgroundColor = value;
}
- public PDAProgramItem()
+ public PdaProgramItem()
{
RobustXamlLoader.Load(this);
Panel.PanelOverride = _styleBox;
diff --git a/Content.Client/PDA/PDASettingsButton.xaml b/Content.Client/PDA/PdaSettingsButton.xaml
similarity index 82%
rename from Content.Client/PDA/PDASettingsButton.xaml
rename to Content.Client/PDA/PdaSettingsButton.xaml
index 39bd560324..213616f6c9 100644
--- a/Content.Client/PDA/PDASettingsButton.xaml
+++ b/Content.Client/PDA/PdaSettingsButton.xaml
@@ -1,4 +1,4 @@
-
-
+
diff --git a/Content.Client/PDA/PDASettingsButton.xaml.cs b/Content.Client/PDA/PdaSettingsButton.xaml.cs
similarity index 94%
rename from Content.Client/PDA/PDASettingsButton.xaml.cs
rename to Content.Client/PDA/PdaSettingsButton.xaml.cs
index c62f214194..f460f60200 100644
--- a/Content.Client/PDA/PDASettingsButton.xaml.cs
+++ b/Content.Client/PDA/PdaSettingsButton.xaml.cs
@@ -6,7 +6,7 @@ using Robust.Client.UserInterface.XAML;
namespace Content.Client.PDA;
[GenerateTypedNameReferences]
-public sealed partial class PDASettingsButton : ContainerButton
+public sealed partial class PdaSettingsButton : ContainerButton
{
public const string StylePropertyFgColor = "foregroundColor";
public const string StylePropertyBgColor = "backgroundColor";
@@ -49,7 +49,7 @@ public sealed partial class PDASettingsButton : ContainerButton
}
}
- public PDASettingsButton()
+ public PdaSettingsButton()
{
RobustXamlLoader.Load(this);
Panel.PanelOverride = _styleBox;
diff --git a/Content.Client/PDA/PDASystem.cs b/Content.Client/PDA/PdaSystem.cs
similarity index 56%
rename from Content.Client/PDA/PDASystem.cs
rename to Content.Client/PDA/PdaSystem.cs
index a5de98b9cf..00a12ae2e6 100644
--- a/Content.Client/PDA/PDASystem.cs
+++ b/Content.Client/PDA/PdaSystem.cs
@@ -4,28 +4,28 @@ using Robust.Client.GameObjects;
namespace Content.Client.PDA;
-public sealed class PDASystem : SharedPDASystem
+public sealed class PdaSystem : SharedPdaSystem
{
public override void Initialize()
{
base.Initialize();
- SubscribeLocalEvent(OnAppearanceChange);
+ SubscribeLocalEvent(OnAppearanceChange);
}
- private void OnAppearanceChange(EntityUid uid, PDAComponent component, ref AppearanceChangeEvent args)
+ private void OnAppearanceChange(EntityUid uid, PdaComponent component, ref AppearanceChangeEvent args)
{
if (args.Sprite == null)
return;
if (Appearance.TryGetData(uid, UnpoweredFlashlightVisuals.LightOn, out var isFlashlightOn, args.Component))
- args.Sprite.LayerSetVisible(PDAVisualLayers.Flashlight, isFlashlightOn);
+ args.Sprite.LayerSetVisible(PdaVisualLayers.Flashlight, isFlashlightOn);
- if (Appearance.TryGetData(uid, PDAVisuals.IDCardInserted, out var isCardInserted, args.Component))
- args.Sprite.LayerSetVisible(PDAVisualLayers.IDLight, isCardInserted);
+ if (Appearance.TryGetData(uid, PdaVisuals.IdCardInserted, out var isCardInserted, args.Component))
+ args.Sprite.LayerSetVisible(PdaVisualLayers.IdLight, isCardInserted);
}
- protected override void OnComponentInit(EntityUid uid, PDAComponent component, ComponentInit args)
+ protected override void OnComponentInit(EntityUid uid, PdaComponent component, ComponentInit args)
{
base.OnComponentInit(uid, component, args);
@@ -33,16 +33,16 @@ public sealed class PDASystem : SharedPDASystem
return;
if (component.State != null)
- sprite.LayerSetState(PDAVisualLayers.Base, component.State);
+ sprite.LayerSetState(PdaVisualLayers.Base, component.State);
- sprite.LayerSetVisible(PDAVisualLayers.Flashlight, component.FlashlightOn);
- sprite.LayerSetVisible(PDAVisualLayers.IDLight, component.IdSlot.StartingItem != null);
+ sprite.LayerSetVisible(PdaVisualLayers.Flashlight, component.FlashlightOn);
+ sprite.LayerSetVisible(PdaVisualLayers.IdLight, component.IdSlot.StartingItem != null);
}
- public enum PDAVisualLayers : byte
+ public enum PdaVisualLayers : byte
{
Base,
Flashlight,
- IDLight
+ IdLight
}
}
diff --git a/Content.Client/PDA/PDAWindow.xaml b/Content.Client/PDA/PdaWindow.xaml
similarity index 77%
rename from Content.Client/PDA/PDAWindow.xaml
rename to Content.Client/PDA/PdaWindow.xaml
index fd6ec57ebe..0b0898cc3a 100644
--- a/Content.Client/PDA/PDAWindow.xaml
+++ b/Content.Client/PDA/PdaWindow.xaml
@@ -1,11 +1,11 @@
-
-
+
-
-
-
+
+
+
@@ -16,16 +16,16 @@
-
+
-
-
+
+
-
+
-
+
diff --git a/Content.Client/PDA/PDAWindow.xaml.cs b/Content.Client/PDA/PdaWindow.xaml.cs
similarity index 94%
rename from Content.Client/PDA/PDAWindow.xaml.cs
rename to Content.Client/PDA/PdaWindow.xaml.cs
index 4a7ef89c64..cc4d622751 100644
--- a/Content.Client/PDA/PDAWindow.xaml.cs
+++ b/Content.Client/PDA/PdaWindow.xaml.cs
@@ -6,7 +6,7 @@ namespace Content.Client.PDA;
[Virtual]
[GenerateTypedNameReferences]
-public partial class PDAWindow : BaseWindow
+public partial class PdaWindow : BaseWindow
{
public string? BorderColor
@@ -38,7 +38,7 @@ public partial class PDAWindow : BaseWindow
}
}
- public PDAWindow()
+ public PdaWindow()
{
RobustXamlLoader.Load(this);
diff --git a/Content.Client/Research/UI/MiniTechnologyCardControl.xaml b/Content.Client/Research/UI/MiniTechnologyCardControl.xaml
index 2808995524..c447df7bc0 100644
--- a/Content.Client/Research/UI/MiniTechnologyCardControl.xaml
+++ b/Content.Client/Research/UI/MiniTechnologyCardControl.xaml
@@ -2,7 +2,7 @@
().Class("PDAContentBackground")
+ Element().Class("PdaContentBackground")
.Prop(PanelContainer.StylePropertyPanel, BaseButtonOpenBoth)
.Prop(Control.StylePropertyModulateSelf, Color.FromHex("#25252a")),
- Element().Class("PDABackground")
+ Element().Class("PdaBackground")
.Prop(PanelContainer.StylePropertyPanel, BaseButtonOpenBoth)
.Prop(Control.StylePropertyModulateSelf, Color.FromHex("#000000")),
- Element().Class("PDABackgroundRect")
+ Element().Class("PdaBackgroundRect")
.Prop(PanelContainer.StylePropertyPanel, BaseAngleRect)
.Prop(Control.StylePropertyModulateSelf, Color.FromHex("#717059")),
- Element().Class("PDABorderRect")
+ Element().Class("PdaBorderRect")
.Prop(PanelContainer.StylePropertyPanel, AngleBorderRect),
Element().Class("BackgroundDark")
.Prop(PanelContainer.StylePropertyPanel, new StyleBoxFlat(Color.FromHex("#25252A"))),
//PDA - Buttons
- Element().Pseudo(ContainerButton.StylePseudoClassNormal)
- .Prop(PDASettingsButton.StylePropertyBgColor, Color.FromHex(PDASettingsButton.NormalBgColor))
- .Prop(PDASettingsButton.StylePropertyFgColor, Color.FromHex(PDASettingsButton.EnabledFgColor)),
+ Element().Pseudo(ContainerButton.StylePseudoClassNormal)
+ .Prop(PdaSettingsButton.StylePropertyBgColor, Color.FromHex(PdaSettingsButton.NormalBgColor))
+ .Prop(PdaSettingsButton.StylePropertyFgColor, Color.FromHex(PdaSettingsButton.EnabledFgColor)),
- Element().Pseudo(ContainerButton.StylePseudoClassHover)
- .Prop(PDASettingsButton.StylePropertyBgColor, Color.FromHex(PDASettingsButton.HoverColor))
- .Prop(PDASettingsButton.StylePropertyFgColor, Color.FromHex(PDASettingsButton.EnabledFgColor)),
+ Element().Pseudo(ContainerButton.StylePseudoClassHover)
+ .Prop(PdaSettingsButton.StylePropertyBgColor, Color.FromHex(PdaSettingsButton.HoverColor))
+ .Prop(PdaSettingsButton.StylePropertyFgColor, Color.FromHex(PdaSettingsButton.EnabledFgColor)),
- Element().Pseudo(ContainerButton.StylePseudoClassPressed)
- .Prop(PDASettingsButton.StylePropertyBgColor, Color.FromHex(PDASettingsButton.PressedColor))
- .Prop(PDASettingsButton.StylePropertyFgColor, Color.FromHex(PDASettingsButton.EnabledFgColor)),
+ Element().Pseudo(ContainerButton.StylePseudoClassPressed)
+ .Prop(PdaSettingsButton.StylePropertyBgColor, Color.FromHex(PdaSettingsButton.PressedColor))
+ .Prop(PdaSettingsButton.StylePropertyFgColor, Color.FromHex(PdaSettingsButton.EnabledFgColor)),
- Element().Pseudo(ContainerButton.StylePseudoClassDisabled)
- .Prop(PDASettingsButton.StylePropertyBgColor, Color.FromHex(PDASettingsButton.NormalBgColor))
- .Prop(PDASettingsButton.StylePropertyFgColor, Color.FromHex(PDASettingsButton.DisabledFgColor)),
+ Element().Pseudo(ContainerButton.StylePseudoClassDisabled)
+ .Prop(PdaSettingsButton.StylePropertyBgColor, Color.FromHex(PdaSettingsButton.NormalBgColor))
+ .Prop(PdaSettingsButton.StylePropertyFgColor, Color.FromHex(PdaSettingsButton.DisabledFgColor)),
- Element().Pseudo(ContainerButton.StylePseudoClassNormal)
- .Prop(PDAProgramItem.StylePropertyBgColor, Color.FromHex(PDAProgramItem.NormalBgColor)),
+ Element().Pseudo(ContainerButton.StylePseudoClassNormal)
+ .Prop(PdaProgramItem.StylePropertyBgColor, Color.FromHex(PdaProgramItem.NormalBgColor)),
- Element().Pseudo(ContainerButton.StylePseudoClassHover)
- .Prop(PDAProgramItem.StylePropertyBgColor, Color.FromHex(PDAProgramItem.HoverColor)),
+ Element().Pseudo(ContainerButton.StylePseudoClassHover)
+ .Prop(PdaProgramItem.StylePropertyBgColor, Color.FromHex(PdaProgramItem.HoverColor)),
- Element().Pseudo(ContainerButton.StylePseudoClassPressed)
- .Prop(PDAProgramItem.StylePropertyBgColor, Color.FromHex(PDAProgramItem.HoverColor)),
+ Element().Pseudo(ContainerButton.StylePseudoClassPressed)
+ .Prop(PdaProgramItem.StylePropertyBgColor, Color.FromHex(PdaProgramItem.HoverColor)),
//PDA - Text
- Element