Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upstream2107 (Требуется тестирование) #133

Merged
merged 102 commits into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
4d4f671
Allow attack while pulling (#29703)
ShadowCommander Jul 11, 2024
e01af4d
Automatic changelog update
PJBot Jul 11, 2024
6371a04
Fix baby jail (#29896)
Chief-Engineer Jul 11, 2024
19a06b6
Fix the ability to shoot out of crates (#28961)
Cojoke-dot Jul 11, 2024
3ebfe46
Automatic changelog update
PJBot Jul 11, 2024
eae0412
Glass Airlocks In Spray Painter (#29869)
Cojoke-dot Jul 11, 2024
1ea7e3e
Automatic changelog update
PJBot Jul 11, 2024
1a50760
Picking a ghostrole as an admin will now deadmin you. (#29790)
MFMessage Jul 11, 2024
e45f55e
Automatic changelog update
PJBot Jul 11, 2024
0263638
item toggling giga rework + full ninja refactor (#28039)
deltanedas Jul 11, 2024
e6f55fa
Fix AtmosDeviceSystem debug assert Heisenbug (#29752)
Tayrtahn Jul 11, 2024
03f0257
Revert "Picking a ghostrole as an admin will now deadmin you. (#29790…
metalgearsloth Jul 11, 2024
9a17154
Аnnouncement sender localization (#29907)
chavonadelal Jul 11, 2024
bb67364
Better admin note popups text visibility (#29909)
Winkarst-cpu Jul 11, 2024
8fd35e8
Automatic changelog update
PJBot Jul 11, 2024
e3bb277
Update cluster evac (#29885)
lzk228 Jul 11, 2024
4945e6a
Update FloorTileSystem to not use Component.Owner() (#29930)
Plykiya Jul 11, 2024
00a2c6a
Made musket wieldable. (#29910)
jonathanargo Jul 12, 2024
cd90b41
Automatic changelog update
PJBot Jul 12, 2024
3a9b1ea
Allow notice boards to be built on walls (#29851)
themias Jul 12, 2024
f125dda
Make stun batons be thrown like a throwing weapon (#29883)
slarticodefast Jul 12, 2024
00ec83a
Automatic changelog update
PJBot Jul 12, 2024
65ccd6e
Update RCDSystem.cs to not use Component.Owner (#29940)
Plykiya Jul 12, 2024
b6672f0
Update MapScreen.xaml.cs to not use Component.Owner (#29938)
Plykiya Jul 12, 2024
160364e
Update BiomeSystem.cs to not use Component.Owner (#29939)
Plykiya Jul 12, 2024
a8cae6f
Fixes dropping item in container (#29900)
Plykiya Jul 12, 2024
f53d014
Localization of dungeon direction (#29911)
chavonadelal Jul 12, 2024
b5e49c9
Automatic changelog update
PJBot Jul 12, 2024
560df6e
Throwing system hotfix (#29935)
slarticodefast Jul 12, 2024
caf8776
Automatic changelog update
PJBot Jul 12, 2024
7ce3a1f
Fix supplybot movement state (#29944)
lzk228 Jul 12, 2024
3ee7d7b
Implement Health Consideration for NPCs (#29922)
osjarw Jul 12, 2024
a314a96
Fix timer deconstruction (#29917)
themias Jul 12, 2024
e3697c6
Automatic changelog update
PJBot Jul 12, 2024
c94c727
Updates GasTankSystem and InternalsSystem to not use Component.Owner …
Plykiya Jul 12, 2024
2e694f1
Centered hard hat sprites (#29953)
jonathanargo Jul 12, 2024
a100058
Automatic changelog update
PJBot Jul 12, 2024
890c15f
Translate vox names :trollface: (#2403)
lzk228 Jul 12, 2024
5fa0844
Update UtensilSystem.cs to not use Component.Owner (#29971)
Plykiya Jul 13, 2024
8ed9ea1
Update TriggerSystem.TimedCollide.cs to not use Component.Owner (#29970)
Plykiya Jul 13, 2024
162348e
Change whitelist to pass when null (#29981)
ShadowCommander Jul 13, 2024
55a50d0
Use reinforced glass damage modifier for secure windoors (#29941)
lzk228 Jul 13, 2024
1b360ac
Automatic changelog update
PJBot Jul 13, 2024
b94b523
Add doc comments to target action components (#29982)
ShadowCommander Jul 13, 2024
3acc100
Update ShuttleDockControl.xaml.cs to not use Component.Owner (#29966)
Plykiya Jul 13, 2024
e11f1e6
Update ActionAlertTooltip.cs to use TryFromMarkup (#29975)
Winkarst-cpu Jul 13, 2024
de2ab29
Update SmokingSystem.SmokingPipe.cs to not use Component.Owner (#29967)
Plykiya Jul 13, 2024
3388c0d
Fix antag objectives always overshooting MaxDifficulty (and kill trie…
Tayrtahn Jul 13, 2024
87fa607
Automatic changelog update
PJBot Jul 13, 2024
7b59012
fire extinguisher using item toggle (#29906)
deltanedas Jul 13, 2024
cb98b65
Update SalvageSystem.Magnet to not use Component.Owner (#29961)
Plykiya Jul 13, 2024
f969fd2
Update submodule to 228.0.0 (#29947)
metalgearsloth Jul 13, 2024
361ec59
Dummy vox deserves a proper vox name (#29789)
Errant-4 Jul 13, 2024
49096cf
Watches (#29550)
EmoGarbage404 Jul 13, 2024
eb4ce85
Remove imagesharp and StatusEffectAddedEvent from FlashOverlay (#28930)
slarticodefast Jul 13, 2024
044d841
Automatic changelog update
PJBot Jul 13, 2024
87f7ea8
make cargo balance ui updating its own component (#28295)
deltanedas Jul 13, 2024
ac768fe
fix(SharedGunSystem): Return and debug log on CreateEffect. (#29656)
CaasGit Jul 13, 2024
0f5faaf
Fix corvax role loadouts (#2405)
lzk228 Jul 13, 2024
6c1d105
Replace DetachParentToNull() with DetachEntity() (#29992)
Plykiya Jul 13, 2024
87c82ff
Update SpawnAfterInteractSystem.cs to not use Component.Owner (#29968)
Plykiya Jul 13, 2024
1b0c434
Shiny Diamonds (#25750)
TheShuEd Jul 13, 2024
22a9290
Automatic changelog update
PJBot Jul 13, 2024
dcb3443
Vgroid diamonds hotfix (#29999)
TheShuEd Jul 13, 2024
130697f
Add hyperlink space law in migration (#2406)
lzk228 Jul 13, 2024
e6a5cf0
[Maps] Maus update (#2407)
Meguneri Jul 13, 2024
bf4ef62
Update RadiationPulseOverlay.cs to have 0 warnings (#30004)
Winkarst-cpu Jul 13, 2024
0003103
Add lore books part one (#2404)
Vonsant Jul 13, 2024
5e800e0
New CDN publish workflow (#30009)
PJB3005 Jul 13, 2024
c1915c9
Remove outdated steps from Test Packaging workflow (#30018)
PJB3005 Jul 13, 2024
a03b889
Replace obsolete xform.ToMap() with xformSystem.ToMapCoordinates() (#…
Plykiya Jul 13, 2024
b7aa97e
Replace obsolete EntityCoordiates.InRange() with TransformSystem.InRa…
Plykiya Jul 13, 2024
f687124
Update IdExaminableSystem.cs to use TryFromMarkup (#29957)
Winkarst-cpu Jul 13, 2024
85fba98
Update changelog RSS configuration (#30024)
PJB3005 Jul 13, 2024
a06309b
Update Credits (#30026)
github-actions[bot] Jul 14, 2024
87467a3
Fix lizards losing snouts when equipping a head bandana (#29979)
luizwritescode Jul 14, 2024
6898295
Automatic changelog update
PJBot Jul 14, 2024
5d1702d
Update MainMenu.cs to use ISawmill (#29988)
Winkarst-cpu Jul 14, 2024
922be64
NPC exits MeleeOperator on invalid EntityUid (#30005)
osjarw Jul 14, 2024
bdf7293
Clean itemmapper (#29983)
ShadowCommander Jul 14, 2024
913d1e3
Fix lore books sprites (#2413)
mtrs163 Jul 14, 2024
8ffde2e
Merge remote-tracking branch 'refs/remotes/upstream/master' into upst…
Morb0 Jul 14, 2024
999d01a
Merge remote-tracking branch 'refs/remotes/syndie/master' into upstre…
Morb0 Jul 14, 2024
b143d1d
Fix maps
Morb0 Jul 14, 2024
d937534
Update locale
Morb0 Jul 14, 2024
88e5b8b
Fix books
Morb0 Jul 14, 2024
811626a
Merge pull request #2414 from space-syndicate/upstream-sync
Morb0 Jul 14, 2024
8f7b83f
Translate Upstream #2414 (#2415)
lapatison Jul 14, 2024
c3f4f40
Add new Corvax's pins (#2385)
MureixloI Jul 16, 2024
e2666b5
[Maps] Train remove (#2417)
poeMota Jul 16, 2024
b3c1cbb
[Maps] Delta Tweak (#2400)
meowstushka Jul 17, 2024
ced4197
[Maps] Delta Small Tweak (#2422)
meowstushka Jul 18, 2024
d16a23a
Fix book sprite (#2421)
Dimastra Jul 19, 2024
84e265b
Move lore books text to ftl (#2416)
mtrs163 Jul 19, 2024
51e825b
Remove some names from datasets (#2020)
UmnayaSvinka Jul 19, 2024
113aacc
[Maps] New terminal (#2423)
Ko4ergaPunk Jul 19, 2024
3fa7369
Merge branch 'master' of https://github.com/space-syndicate/space-sta…
Schrodinger71 Jul 21, 2024
51059ac
Фикс TranslatorSystem
Schrodinger71 Jul 21, 2024
22ec224
Fix YAml Linter?
Schrodinger71 Jul 21, 2024
c5aa062
Merge branch 'master' into upstream2107
Schrodinger71 Jul 26, 2024
9ed5aa9
Fix YAml Linter
Schrodinger71 Jul 26, 2024
cf8279f
maybe Fix
Schrodinger71 Jul 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
46 changes: 20 additions & 26 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,33 +60,22 @@ jobs:
- name: Package client
run: dotnet run --project Content.Packaging client --no-wipe-release

- name: Update Build Info
env:
FORK_ID: ${{ vars.FORK_ID }}
run: Tools/gen_build_info.py

- name: Shuffle files around
run: |
mkdir "release/${{ github.sha }}"
mv release/*.zip "release/${{ github.sha }}"

- name: Upload files to mothership
uses: burnett01/rsync-deployments@5.2
with:
switches: -avzr --ignore-existing
path: "release/${{ github.sha }}"
remote_path: ${{ secrets.BUILDS_PATH }}
remote_host: ${{ secrets.BUILDS_HOST }}
remote_user: ${{ secrets.BUILDS_USERNAME }}
remote_key: ${{ secrets.BUILDS_SSH_KEY }}

- name: Update manifest JSON
uses: appleboy/ssh-action@master
- name: Upload build artifact
id: artifact-upload-step
uses: actions/upload-artifact@v4
with:
host: ${{ secrets.BUILDS_HOST }}
username: ${{ secrets.BUILDS_USERNAME }}
key: ${{ secrets.BUILDS_SSH_KEY }}
script: node ~/scripts/push_to_manifest.js -fork ${{ vars.FORK_ID }} -id ${{ github.sha }}
name: build
path: release/*.zip
compression-level: 0
retention-days: 0

- name: Publish version
run: Tools/publish_github_artifact.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
ARTIFACT_ID: ${{ steps.artifact-upload-step.outputs.artifact-id }}
GITHUB_REPOSITORY: ${{ vars.GITHUB_REPOSITORY }}

# - name: Publish changelog (Discord)
# run: Tools/actions_changelogs_since_last_run.py
Expand All @@ -99,3 +88,8 @@ jobs:
# run: Tools/actions_changelog_rss.py
# env:
# CHANGELOG_RSS_KEY: ${{ secrets.CHANGELOG_RSS_KEY }}

- uses: geekyeggo/delete-artifact@v5
if: always()
with:
name: build
10 changes: 0 additions & 10 deletions .github/workflows/test-packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,3 @@ jobs:

- name: Package client
run: dotnet run --project Content.Packaging client --no-wipe-release

- name: Update Build Info
env:
FORK_ID: ${{ vars.FORK_ID }}
run: Tools/gen_build_info.py

- name: Shuffle files around
run: |
mkdir "release/${{ github.sha }}"
mv release/*.zip "release/${{ github.sha }}"
18 changes: 12 additions & 6 deletions Content.Client/Actions/UI/ActionAlertTooltip.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Content.Client.Stylesheets;
using Content.Client.Stylesheets;
using Robust.Client.UserInterface.Controls;
using Robust.Shared.Timing;
using Robust.Shared.Utility;
Expand Down Expand Up @@ -77,9 +77,12 @@ public ActionAlertTooltip(FormattedMessage name, FormattedMessage? desc, string?
MaxWidth = TooltipTextMaxWidth,
StyleClasses = {StyleNano.StyleClassTooltipActionRequirements}
};
requiresLabel.SetMessage(FormattedMessage.FromMarkup("[color=#635c5c]" +
requires +
"[/color]"));

if (!FormattedMessage.TryFromMarkup("[color=#635c5c]" + requires + "[/color]", out var markup))
return;

requiresLabel.SetMessage(markup);

vbox.AddChild(requiresLabel);
}
}
Expand All @@ -97,8 +100,11 @@ protected override void FrameUpdate(FrameEventArgs args)
if (timeLeft > TimeSpan.Zero)
{
var duration = Cooldown.Value.End - Cooldown.Value.Start;
_cooldownLabel.SetMessage(FormattedMessage.FromMarkup(
$"[color=#a10505]{(int) duration.TotalSeconds} sec cooldown ({(int) timeLeft.TotalSeconds + 1} sec remaining)[/color]"));

if (!FormattedMessage.TryFromMarkup($"[color=#a10505]{(int) duration.TotalSeconds} sec cooldown ({(int) timeLeft.TotalSeconds + 1} sec remaining)[/color]", out var markup))
return;

_cooldownLabel.SetMessage(markup);
_cooldownLabel.Visible = true;
}
else
Expand Down
4 changes: 3 additions & 1 deletion Content.Client/Administration/UI/AdminMenuWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@
xmlns:tabs="clr-namespace:Content.Client.Administration.UI.Tabs"
xmlns:playerTab="clr-namespace:Content.Client.Administration.UI.Tabs.PlayerTab"
xmlns:objectsTab="clr-namespace:Content.Client.Administration.UI.Tabs.ObjectsTab"
xmlns:panic="clr-namespace:Content.Client.Administration.UI.Tabs.PanicBunkerTab">
xmlns:panic="clr-namespace:Content.Client.Administration.UI.Tabs.PanicBunkerTab"
xmlns:baby="clr-namespace:Content.Client.Administration.UI.Tabs.BabyJailTab">
<TabContainer Name="MasterTabContainer">
<adminTab:AdminTab />
<adminbusTab:AdminbusTab />
<atmosTab:AtmosTab />
<tabs:RoundTab />
<tabs:ServerTab />
<panic:PanicBunkerTab Name="PanicBunkerControl" Access="Public" />
<baby:BabyJailTab Name="BabyJailControl" Access="Public" />
<playerTab:PlayerTab Name="PlayerTabControl" Access="Public" />
<objectsTab:ObjectsTab Name="ObjectsTabControl" Access="Public" />
</TabContainer>
Expand Down
20 changes: 12 additions & 8 deletions Content.Client/Administration/UI/AdminMenuWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,18 @@ public AdminMenuWindow()
MinSize = new Vector2(650, 250);
Title = Loc.GetString("admin-menu-title");
RobustXamlLoader.Load(this);
MasterTabContainer.SetTabTitle(0, Loc.GetString("admin-menu-admin-tab"));
MasterTabContainer.SetTabTitle(1, Loc.GetString("admin-menu-adminbus-tab"));
MasterTabContainer.SetTabTitle(2, Loc.GetString("admin-menu-atmos-tab"));
MasterTabContainer.SetTabTitle(3, Loc.GetString("admin-menu-round-tab"));
MasterTabContainer.SetTabTitle(4, Loc.GetString("admin-menu-server-tab"));
MasterTabContainer.SetTabTitle(5, Loc.GetString("admin-menu-panic-bunker-tab"));
MasterTabContainer.SetTabTitle(6, Loc.GetString("admin-menu-players-tab"));
MasterTabContainer.SetTabTitle(7, Loc.GetString("admin-menu-objects-tab"));
MasterTabContainer.SetTabTitle((int) TabIndex.Admin, Loc.GetString("admin-menu-admin-tab"));
MasterTabContainer.SetTabTitle((int) TabIndex.Adminbus, Loc.GetString("admin-menu-adminbus-tab"));
MasterTabContainer.SetTabTitle((int) TabIndex.Atmos, Loc.GetString("admin-menu-atmos-tab"));
MasterTabContainer.SetTabTitle((int) TabIndex.Round, Loc.GetString("admin-menu-round-tab"));
MasterTabContainer.SetTabTitle((int) TabIndex.Server, Loc.GetString("admin-menu-server-tab"));
MasterTabContainer.SetTabTitle((int) TabIndex.PanicBunker, Loc.GetString("admin-menu-panic-bunker-tab"));
/*
* TODO: Remove baby jail code once a more mature gateway process is established. This code is only being issued as a stopgap to help with potential tiding in the immediate future.
*/
MasterTabContainer.SetTabTitle((int) TabIndex.BabyJail, Loc.GetString("admin-menu-baby-jail-tab"));
MasterTabContainer.SetTabTitle((int) TabIndex.Players, Loc.GetString("admin-menu-players-tab"));
MasterTabContainer.SetTabTitle((int) TabIndex.Objects, Loc.GetString("admin-menu-objects-tab"));
MasterTabContainer.OnTabChanged += OnTabChanged;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<Popup xmlns="https://spacestation14.io"
xmlns:gfx="clr-namespace:Robust.Client.Graphics;assembly=Robust.Client">
<PanelContainer StyleClasses="BackgroundDark">
<PanelContainer>
<PanelContainer.PanelOverride>
<gfx:StyleBoxFlat BorderThickness="1" BorderColor="#18181B"/>
<gfx:StyleBoxFlat BorderThickness="2" BorderColor="#18181B" BackgroundColor="#25252a"/>
</PanelContainer.PanelOverride>
<BoxContainer Orientation="Vertical">
<BoxContainer Orientation="Vertical" Margin="4 4 4 4">
<Label Name="PlayerNameLabel"/>
<Label Name="IdLabel"/>
<Label Name="TypeLabel"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<controls:BabyJailStatusWindow
xmlns="https://spacestation14.io"
xmlns:controls="clr-namespace:Content.Client.Administration.UI.Tabs.BabyJailTab"
Title="{Loc admin-ui-baby-jail-window-title}">
<RichTextLabel Name="MessageLabel" Access="Public" />
</controls:BabyJailStatusWindow>
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using Content.Client.Message;
using Content.Client.UserInterface.Controls;
using Robust.Client.AutoGenerated;
using Robust.Client.UserInterface.CustomControls;
using Robust.Client.UserInterface.XAML;

namespace Content.Client.Administration.UI.Tabs.BabyJailTab;

/*
* TODO: Remove me once a more mature gateway process is established. This code is only being issued as a stopgap to help with potential tiding in the immediate future.
*/

[GenerateTypedNameReferences]
public sealed partial class BabyJailStatusWindow : FancyWindow
{
public BabyJailStatusWindow()
{
RobustXamlLoader.Load(this);
MessageLabel.SetMarkup(Loc.GetString("admin-ui-baby-jail-is-enabled"));
}
}
26 changes: 26 additions & 0 deletions Content.Client/Administration/UI/Tabs/BabyJailTab/BabyJailTab.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<controls:BabyJailTab
xmlns="https://spacestation14.io"
xmlns:controls="clr-namespace:Content.Client.Administration.UI.Tabs.BabyJailTab"
xmlns:cc="clr-namespace:Content.Client.Administration.UI.CustomControls"
Margin="4">
<BoxContainer Orientation="Vertical">
<cc:CommandButton Name="EnabledButton" Command="babyjail" ToggleMode="True"
Text="{Loc admin-ui-baby-jail-disabled}"
ToolTip="{Loc admin-ui-baby-jail-tooltip}" />
<cc:CommandButton Name="ShowReasonButton" Command="babyjail_show_reason"
ToggleMode="True" Text="{Loc admin-ui-baby-jail-show-reason}"
ToolTip="{Loc admin-ui-baby-jail-show-reason-tooltip}" />
<BoxContainer Orientation="Vertical" Margin="0 10 0 0">
<BoxContainer Orientation="Horizontal" Margin="2">
<Label Text="{Loc admin-ui-baby-jail-max-account-age}" MinWidth="175" />
<LineEdit Name="MaxAccountAge" MinWidth="50" Margin="0 0 5 0" />
<Label Text="{Loc generic-minutes}" />
</BoxContainer>
<BoxContainer Orientation="Horizontal" Margin="2">
<Label Text="{Loc admin-ui-baby-jail-max-overall-minutes}" MinWidth="175" />
<LineEdit Name="MaxOverallMinutes" MinWidth="50" Margin="0 0 5 0" />
<Label Text="{Loc generic-minutes}" />
</BoxContainer>
</BoxContainer>
</BoxContainer>
</controls:BabyJailTab>
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
using Content.Shared.Administration.Events;
using Robust.Client.AutoGenerated;
using Robust.Client.UserInterface;
using Robust.Client.UserInterface.XAML;
using Robust.Shared.Console;

/*
* TODO: Remove me once a more mature gateway process is established. This code is only being issued as a stopgap to help with potential tiding in the immediate future.
*/

namespace Content.Client.Administration.UI.Tabs.BabyJailTab;

[GenerateTypedNameReferences]
public sealed partial class BabyJailTab : Control
{
[Dependency] private readonly IConsoleHost _console = default!;

private string _maxAccountAge;
private string _maxOverallMinutes;

public BabyJailTab()
{
RobustXamlLoader.Load(this);
IoCManager.InjectDependencies(this);

MaxAccountAge.OnTextEntered += args => SendMaxAccountAge(args.Text);
MaxAccountAge.OnFocusExit += args => SendMaxAccountAge(args.Text);
_maxAccountAge = MaxAccountAge.Text;

MaxOverallMinutes.OnTextEntered += args => SendMaxOverallMinutes(args.Text);
MaxOverallMinutes.OnFocusExit += args => SendMaxOverallMinutes(args.Text);
_maxOverallMinutes = MaxOverallMinutes.Text;
}

private void SendMaxAccountAge(string text)
{
if (string.IsNullOrWhiteSpace(text) ||
text == _maxAccountAge ||
!int.TryParse(text, out var minutes))
{
return;
}

_console.ExecuteCommand($"babyjail_max_account_age {minutes}");
}

private void SendMaxOverallMinutes(string text)
{
if (string.IsNullOrWhiteSpace(text) ||
text == _maxOverallMinutes ||
!int.TryParse(text, out var minutes))
{
return;
}

_console.ExecuteCommand($"babyjail_max_overall_minutes {minutes}");
}

public void UpdateStatus(BabyJailStatus status)
{
EnabledButton.Pressed = status.Enabled;
EnabledButton.Text = Loc.GetString(status.Enabled
? "admin-ui-baby-jail-enabled"
: "admin-ui-baby-jail-disabled"
);
EnabledButton.ModulateSelfOverride = status.Enabled ? Color.Red : null;
ShowReasonButton.Pressed = status.ShowReason;

MaxAccountAge.Text = status.MaxAccountAgeMinutes.ToString();
_maxAccountAge = MaxAccountAge.Text;

MaxOverallMinutes.Text = status.MaxOverallMinutes.ToString();
_maxOverallMinutes = MaxOverallMinutes.Text;
}
}
26 changes: 26 additions & 0 deletions Content.Client/Clock/ClockSystem.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using Content.Shared.Clock;
using Robust.Client.GameObjects;

namespace Content.Client.Clock;

public sealed class ClockSystem : SharedClockSystem
{
public override void Update(float frameTime)
{
base.Update(frameTime);

var query = EntityQueryEnumerator<ClockComponent, SpriteComponent>();
while (query.MoveNext(out var uid, out var comp, out var sprite))
{
if (!sprite.LayerMapTryGet(ClockVisualLayers.HourHand, out var hourLayer) ||
!sprite.LayerMapTryGet(ClockVisualLayers.MinuteHand, out var minuteLayer))
continue;

var time = GetClockTime((uid, comp));
var hourState = $"{comp.HoursBase}{time.Hours % 12}";
var minuteState = $"{comp.MinutesBase}{time.Minutes / 5}";
sprite.LayerSetState(hourLayer, hourState);
sprite.LayerSetState(minuteLayer, minuteState);
}
}
}
6 changes: 3 additions & 3 deletions Content.Client/Construction/ConstructionSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ public override void Initialize()

CommandBinds.Builder
.Bind(ContentKeyFunctions.OpenCraftingMenu,
new PointerInputCmdHandler(HandleOpenCraftingMenu, outsidePrediction:true))
new PointerInputCmdHandler(HandleOpenCraftingMenu, outsidePrediction: true))
.Bind(EngineKeyFunctions.Use,
new PointerInputCmdHandler(HandleUse, outsidePrediction: true))
.Bind(ContentKeyFunctions.EditorFlipObject,
new PointerInputCmdHandler(HandleFlip, outsidePrediction:true))
new PointerInputCmdHandler(HandleFlip, outsidePrediction: true))
.Register<ConstructionSystem>();

SubscribeLocalEvent<ConstructionGhostComponent, ExaminedEvent>(HandleConstructionGhostExamined);
Expand Down Expand Up @@ -196,7 +196,7 @@ public bool TrySpawnGhost(
if (GhostPresent(loc))
return false;

var predicate = GetPredicate(prototype.CanBuildInImpassable, loc.ToMap(EntityManager, _transformSystem));
var predicate = GetPredicate(prototype.CanBuildInImpassable, _transformSystem.ToMapCoordinates(loc));
if (!_examineSystem.InRangeUnOccluded(user, loc, 20f, predicate: predicate))
return false;

Expand Down
2 changes: 1 addition & 1 deletion Content.Client/ContextMenu/UI/EntityMenuUIController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ private bool HandleOpenEntityMenu(in PointerInputCmdHandler.PointerInputCmdArgs
if (_combatMode.IsInCombatMode(args.Session?.AttachedEntity))
return false;

var coords = args.Coordinates.ToMap(_entityManager, _xform);
var coords = _xform.ToMapCoordinates(args.Coordinates);

if (_verbSystem.TryGetEntityMenuEntities(coords, out var entities))
OpenRootMenu(entities);
Expand Down
7 changes: 0 additions & 7 deletions Content.Client/Extinguisher/FireExtinguisherComponent.cs

This file was deleted.

Loading
Loading