Move PaperSystem to Shared (#30592)

* Fix paper system late localization

* IS THIS WHAT YOU WANT

* well I guess this is happening now

* fix the BUI

* did that even do anything before?

* again with the escapeformatting...

* Dirtying

* Move dirty to function

* Rename PaperSystem to PaperVisualizerSystem

* Fix namespace

* how many namespace changes must I suffer through

* SetContent is for Setting Content

* minor shuffling

* review

---------

Co-authored-by: plykiya <plykiya@protonmail.com>
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
Plykiya
2024-08-04 21:23:23 -07:00
committed by GitHub
parent 0ef5f668e2
commit 01e1624567
22 changed files with 283 additions and 305 deletions

View File

@@ -1,6 +0,0 @@
using Content.Shared.Paper;
namespace Content.Client.Paper;
[RegisterComponent]
public sealed partial class PaperComponent : SharedPaperComponent;

View File

@@ -2,7 +2,7 @@ using JetBrains.Annotations;
using Robust.Client.UserInterface;
using Robust.Client.UserInterface.Controls;
using Robust.Shared.Utility;
using static Content.Shared.Paper.SharedPaperComponent;
using static Content.Shared.Paper.PaperComponent;
namespace Content.Client.Paper.UI;

View File

@@ -1,10 +1,10 @@
using Robust.Client.GameObjects;
using static Content.Shared.Paper.SharedPaperComponent;
using static Content.Shared.Paper.PaperComponent;
namespace Content.Client.Paper;
namespace Content.Client.Paper.UI;
public sealed class PaperSystem : VisualizerSystem<PaperVisualsComponent>
public sealed class PaperVisualizerSystem : VisualizerSystem<PaperVisualsComponent>
{
protected override void OnAppearanceChange(EntityUid uid, PaperVisualsComponent component, ref AppearanceChangeEvent args)
{

View File

@@ -1,6 +1,6 @@
using System.Numerics;
namespace Content.Client.Paper;
namespace Content.Client.Paper.UI;
[RegisterComponent]
public sealed partial class PaperVisualsComponent : Component

View File

@@ -215,9 +215,9 @@ namespace Content.Client.Paper.UI
/// Initialize the paper contents, i.e. the text typed by the
/// user and any stamps that have peen put on the page.
/// </summary>
public void Populate(SharedPaperComponent.PaperBoundUserInterfaceState state)
public void Populate(PaperComponent.PaperBoundUserInterfaceState state)
{
bool isEditing = state.Mode == SharedPaperComponent.PaperAction.Write;
bool isEditing = state.Mode == PaperComponent.PaperAction.Write;
bool wasEditing = InputContainer.Visible;
InputContainer.Visible = isEditing;
EditButtons.Visible = isEditing;

View File

@@ -1,4 +1,4 @@
using Content.Client.Paper;
using Content.Client.Paper.UI;
using Robust.Client.AutoGenerated;
using Robust.Client.Graphics;
using Robust.Client.ResourceManagement;

View File

@@ -1,21 +1,17 @@
using Content.Client.Gameplay;
using System.Numerics;
using Content.Client.Message;
using Content.Client.Paper;
using Content.Client.Paper.UI;
using Content.Shared.CCVar;
using Content.Shared.Movement.Components;
using Content.Shared.Tips;
using Robust.Client.GameObjects;
using Robust.Client.ResourceManagement;
using Robust.Client.State;
using Robust.Client.UserInterface;
using Robust.Client.UserInterface.Controllers;
using Robust.Client.UserInterface.Controls;
using Robust.Client.Audio;
using Robust.Shared.Configuration;
using Robust.Shared.Console;
using Robust.Shared.Map;
using Robust.Shared.Prototypes;
using Robust.Shared.Timing;
using static Content.Client.Tips.TippyUI;