Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Апстрим Май #166

Closed
wants to merge 720 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
720 commits
Select commit Hold shift + click to select a range
a95b0d0
Automatic changelog update
PJBot May 1, 2024
7ba2287
Optimise navmaps significantly (#27528)
metalgearsloth May 2, 2024
05be6d3
Automatic changelog update
PJBot May 2, 2024
6596584
Update submodule to 221.2.0 (#27603)
metalgearsloth May 2, 2024
5053c8a
Fix effects (#27533)
metalgearsloth May 2, 2024
11a4f9d
Automatic changelog update
PJBot May 2, 2024
a7e6337
Replace NavMap dictionaries with int[] (#27602)
ElectroJr May 2, 2024
fd98941
Fix Gas Analyzers not opening (#27610)
ElectroJr May 2, 2024
889b578
Automatic changelog update
PJBot May 2, 2024
1730406
Track Admin Game Time (#24945)
Titian3 May 2, 2024
05f0fdd
Automatic changelog update
PJBot May 2, 2024
236da1c
Make UseDelay SetLength do EnsureComp (#27601)
Tayrtahn May 2, 2024
70f734e
Disarm throws item in random direction (#27589)
Plykiya May 2, 2024
6680bd4
emote wheel fixes (#27545)
Dutch-VanDerLinde May 2, 2024
b90a58d
Automatic changelog update
PJBot May 2, 2024
316a3d7
added a bunch more fox noises (#27578)
hitomishirichan May 2, 2024
ce3ba57
Automatic changelog update
PJBot May 2, 2024
131c269
Improve CMO's lab coat (#27551)
Doc-Michael May 2, 2024
235091b
Automatic changelog update
PJBot May 2, 2024
a4b0a34
Remove airtight flaps from the construction menu (#27619)
VasilisThePikachu May 2, 2024
64a732a
Automatic changelog update
PJBot May 2, 2024
b728f36
Wine and beer bottles can be inserted into booze dispenser (#27626)
Lamrr May 2, 2024
09b6f5c
Automatic changelog update
PJBot May 2, 2024
eab276a
small SpawnItemsOnUse cleanup (#27625)
slarticodefast May 2, 2024
8909dc7
make ducky slippers waddle (#27628)
deltanedas May 2, 2024
9b17693
Fix SpawnItemsOnUse not playing sound (#27621)
Tayrtahn May 2, 2024
8a7f709
Automatic changelog update
PJBot May 2, 2024
3c3c2da
Fix UI interaction priority (#27631)
ElectroJr May 2, 2024
f76a471
Automatic changelog update
PJBot May 2, 2024
71dbb95
Increase Blast Grenade Recipe Cost and Add Research Requirement (#27580)
Plykiya May 3, 2024
291ecf9
Automatic changelog update
PJBot May 3, 2024
f348e6a
Add EntityWhitelistSystem (#27632)
ElectroJr May 3, 2024
c69bf2f
Add syndicate sleeper agents random event (#27501)
Dutch-VanDerLinde May 3, 2024
192de3d
Automatic changelog update
PJBot May 3, 2024
f64dd5f
Space Ninjas auto-toggle internals after spawning (#25083)
Errant-4 May 3, 2024
4ede460
Automatic changelog update
PJBot May 3, 2024
a282964
Fixes the grammar for the captain's supervisor (#27638)
Lamrr May 3, 2024
a8bf268
Red bool update (#27597)
Hanzdegloker May 3, 2024
40a4eea
Automatic changelog update
PJBot May 3, 2024
0056bef
Allow EMP implants to be used while stunned or cuffed. (#27644)
DuskyJay May 3, 2024
bedec83
Automatic changelog update
PJBot May 3, 2024
0450a41
Revert "Make immovable rod announce at the end of the event" and "Rod…
TheShuEd May 3, 2024
76ecdee
Geras bug fixes (#27308)
Just-a-Unity-Dev May 3, 2024
c045e24
Automatic changelog update
PJBot May 3, 2024
6fc6848
Ninja's pinpointer tracks the research server (#27552)
nikthechampiongr May 3, 2024
960f268
Automatic changelog update
PJBot May 3, 2024
6ecbf0a
Fix some gamerules' round summary not working (#27654)
Dutch-VanDerLinde May 4, 2024
1d5392f
Automatic changelog update
PJBot May 4, 2024
96a3967
Change return to continue in gamerulesystem (#27656)
Dutch-VanDerLinde May 4, 2024
1b3481f
Rename Lizard urist (#27652)
VasilisThePikachu May 4, 2024
e7d24b5
Added Train station into map rotation (#27534)
TheShuEd May 4, 2024
07d43af
Automatic changelog update
PJBot May 4, 2024
5ab1cc0
Pathological Liar (#27618)
TheShuEd May 4, 2024
0e829eb
Vox customization fixes & updating (#27663)
Flareguy May 4, 2024
540c45c
Automatic changelog update
PJBot May 4, 2024
83b486b
npc can no longer attack you through a locker (#27677)
Tyzemol May 4, 2024
8ee9ca2
Automatic changelog update
PJBot May 4, 2024
8737990
Security belts can now hold more items commonly carried by secoffs/Ho…
Blackern5000 May 4, 2024
0a15d08
Automatic changelog update
PJBot May 4, 2024
1c125cb
Floodlights now have medium powercells instead of small (#27672)
Blackern5000 May 4, 2024
4bb0786
Automatic changelog update
PJBot May 4, 2024
c3fe975
More descriptions for the beakers in the status panel (#27669)
Pok27 May 4, 2024
2f3f917
Update Credits (#27681)
github-actions[bot] May 5, 2024
37d0cb9
Revert "npc can no longer attack you through a locker" (#27680)
metalgearsloth May 5, 2024
5183f3e
Scattershot antag fixes (#27429)
EmoGarbage404 May 5, 2024
45fc6be
Rename ChemCleanBoodstream.cs (#27691)
RumiTiger May 5, 2024
ead78b7
Add default whistle + whistles reorganize (#27676)
lzk228 May 5, 2024
92c2ff0
Automatic changelog update
PJBot May 5, 2024
da61fd7
Increase goblin damage (#1339)
Leander-0 May 5, 2024
ca0b0f4
Automatic Changelog (#1339)
FrontierATC May 5, 2024
eb2fac4
Use dotnet run for the run batch files instead of directly calling th…
VasilisThePikachu May 5, 2024
70d3cf7
Emergency Tank + Plasma Can visible on suit storage slot (#27598)
Vermidia May 5, 2024
4a2a63a
Cache regex instances in most cases (#27699)
PJB3005 May 5, 2024
2335be5
Update submodule to 222.0.0 (#27700)
metalgearsloth May 5, 2024
c61e683
Remove useless line in runclient (#27701)
VasilisThePikachu May 5, 2024
7d35d54
welding masks on utility belts (#27694)
Killerqu00 May 5, 2024
b947490
Automatic changelog update
PJBot May 5, 2024
93c5e86
Add solution temperature to chemical analysis goggles (#27693)
Dutch-VanDerLinde May 5, 2024
254a917
Automatic changelog update
PJBot May 5, 2024
d1a5d35
Expeditions audio tweaks (#27524)
metalgearsloth May 6, 2024
b8144df
Added new icons for the emote wheel (#27541)
TyAshley May 6, 2024
82fe5ab
Automatic changelog update
PJBot May 6, 2024
c20df3e
Fix AlertControl throwing an error if the sprite view entity is delet…
DrSmugleaf May 6, 2024
eee8e03
Fix tests (#27711)
DrSmugleaf May 6, 2024
bc6bbc6
Pioneer (Update) + Guidebook (#1321)
dvir001 May 6, 2024
104c2af
New Salvage song: Deadline (#27707)
DogZeroX May 6, 2024
7ffa74a
fix(ui): Fix shuttle control radius marking text vertical spacing (#2…
exincore May 6, 2024
1ecc36b
Automatic changelog update
PJBot May 6, 2024
c7a5587
Dock device link port (#27646)
0x6273 May 6, 2024
3b3cc0e
Automatic changelog update
PJBot May 6, 2024
13dbb95
Update submodule to 222.1.0 (#27714)
metalgearsloth May 6, 2024
76dbd8d
merge upstream
Cheackraze May 7, 2024
e77ade7
Fix UIs and various dependencies
Cheackraze May 7, 2024
f28b46d
changelog and yeeting killer tomatoes
Cheackraze May 7, 2024
4e968eb
delete killer seeds
Cheackraze May 7, 2024
ab287f4
ui yml rewrites
Cheackraze May 7, 2024
5630b65
telecomms changes
Cheackraze May 7, 2024
26a9117
yml updates
Cheackraze May 7, 2024
147e802
more UI fixes
Cheackraze May 7, 2024
8023c78
gamerule changes
Cheackraze May 7, 2024
45c1e0a
no holy
Cheackraze May 7, 2024
94a8516
YAML cleanup 1 - CPR Boxes & Mobs
dvir001 May 7, 2024
5190e8a
Update RespiratorComponent.cs
dvir001 May 7, 2024
a114e94
Pen & Others
dvir001 May 7, 2024
c33c452
Events, barber spawners and lathe
dvir001 May 7, 2024
9649e81
Backport lidgren changes to V218.1.0 (#1347)
NullWanderer May 7, 2024
a9da47f
Cleanup
dvir001 May 7, 2024
799c824
cleanup
dvir001 May 7, 2024
a70c479
modifier_sets issues
dvir001 May 7, 2024
a3da57a
more cleanup
dvir001 May 7, 2024
3ada359
Merge branch 'master' of https://github.com/dvir001/frontier-station-…
dvir001 May 7, 2024
d00c5a3
cleanup
dvir001 May 7, 2024
633222c
cleanup
dvir001 May 7, 2024
880d248
jobs cleanup
dvir001 May 7, 2024
8655c6f
yaml
dvir001 May 7, 2024
2d2a8e5
NT Brigand (New) - Expedition-capable vessel (#1236)
ErhardSteinhauer May 8, 2024
3cf1ced
Automatic Changelog (#1236)
FrontierATC May 8, 2024
71e95c4
database fix
Cheackraze May 8, 2024
d20e6d3
Merge remote-tracking branch 'origin/may24-upstream-merge' into may24…
Cheackraze May 8, 2024
cbd2f9a
Job list cleanup
dvir001 May 8, 2024
6f4ab24
Security Guard
dvir001 May 8, 2024
97e0074
loadouts bank accounts integration
Cheackraze May 9, 2024
20f2139
loadout bank integration UI fixes
Cheackraze May 10, 2024
7930088
hide unwanted job categories
Cheackraze May 10, 2024
5e9830c
jumpsuits base files and general organization
Cheackraze May 10, 2024
60a1da7
belts necks pdas
Cheackraze May 10, 2024
7d7402f
linter
dvir001 May 10, 2024
bf26578
Cleanup
dvir001 May 10, 2024
d855dce
fix(map): Convert uncleanable dirt decals on Frontier Outpost to clea…
exincore May 10, 2024
68ec418
Liquidated
dvir001 May 10, 2024
afdbd26
Jobs Edits Part 1
dvir001 May 10, 2024
b06679e
Cleanup
dvir001 May 10, 2024
d8a3bdb
bags gloves shoes
Cheackraze May 11, 2024
aac04ee
eyes and hats
Cheackraze May 11, 2024
1029cb7
linter
dvir001 May 11, 2024
1984498
name fixing
dvir001 May 11, 2024
9156212
fix
dvir001 May 11, 2024
76cbba7
security cleanup naming
dvir001 May 11, 2024
be2016d
coats
Cheackraze May 12, 2024
125b113
tools face and fun
Cheackraze May 12, 2024
927bb6e
Falcon (New Blackmarket pirate ship) (#1341)
Leander-0 May 12, 2024
3f1c55e
Automatic Changelog (#1341)
FrontierATC May 12, 2024
78b83c3
Fix preference loading bugs (#27742)
PJB3005 May 7, 2024
aaac261
Fix preferences sent to client not being sanitized (#27789)
PJB3005 May 8, 2024
4a91bc7
trinkets and contractor shenanigans
Cheackraze May 13, 2024
25f0634
contractor
Cheackraze May 13, 2024
201d72e
tryfix
Cheackraze May 13, 2024
2e3f792
Revert "fix cargo teleporter (#27255)"
Cheackraze May 13, 2024
116f5d1
fixes
Cheackraze May 13, 2024
e1a4082
vulp stop translater spawn for now
Cheackraze May 13, 2024
2ab5882
refresh prefs async
Cheackraze May 13, 2024
67ec2a1
fix clarpy id
dvir001 May 13, 2024
3adc15a
Create nfsd_loadout_groups.txt
dvir001 May 13, 2024
0e8228e
Merge branch 'may24-upstream-merge' of https://github.com/new-frontie…
dvir001 May 13, 2024
7ffc0c2
Silent down the cargo computer
dvir001 May 13, 2024
a2749d3
pilot
dvir001 May 13, 2024
d30c3d0
pilot loadouts
Cheackraze May 13, 2024
0d524a9
more pilot
Cheackraze May 13, 2024
1de64e4
pilot
Cheackraze May 13, 2024
168c74b
security guard clean up before adding rest
dvir001 May 13, 2024
34c4954
Update role_loadouts.yml
dvir001 May 13, 2024
fd767a9
more
Cheackraze May 13, 2024
917624d
Merge remote-tracking branch 'origin/may24-upstream-merge' into may24…
Cheackraze May 13, 2024
9abd2c2
merc 1
Cheackraze May 13, 2024
ada216b
fix order
dvir001 May 13, 2024
dea0bf9
Merge branch 'may24-upstream-merge' of https://github.com/new-frontie…
dvir001 May 13, 2024
d155372
merc 2
Cheackraze May 13, 2024
62bc403
Merge remote-tracking branch 'origin/may24-upstream-merge' into may24…
Cheackraze May 13, 2024
b4e12fb
ftl job names
dvir001 May 13, 2024
dde9697
sheriff
dvir001 May 13, 2024
ca02e51
sheriff+
dvir001 May 13, 2024
5420ec7
sheriff quick fix
dvir001 May 13, 2024
cc6290b
sprite be fucked
dvir001 May 13, 2024
0432839
bailiff
dvir001 May 13, 2024
016e217
SR loadouts
Cheackraze May 13, 2024
2c4108c
Merge remote-tracking branch 'origin/may24-upstream-merge' into may24…
Cheackraze May 13, 2024
3f0d980
sergeant
dvir001 May 13, 2024
a8aeae4
Merge branch 'may24-upstream-merge' of https://github.com/new-frontie…
dvir001 May 13, 2024
d03013c
fix folder name
dvir001 May 13, 2024
0d63b02
Fix folder name
dvir001 May 13, 2024
9e55516
Fix Folder Name
dvir001 May 13, 2024
90b4bd3
Fix Folder Name
dvir001 May 13, 2024
9c73926
file locations Nfsd fix
dvir001 May 13, 2024
8b84bd6
fix
dvir001 May 13, 2024
cdee727
deputy
dvir001 May 13, 2024
319b1e3
fix
dvir001 May 13, 2024
c4d82ee
emote wheel fixes
Cheackraze May 13, 2024
4771846
Merge remote-tracking branch 'origin/may24-upstream-merge' into may24…
Cheackraze May 13, 2024
973662b
fix
dvir001 May 13, 2024
dba4861
Update bags.yml
dvir001 May 13, 2024
6487e10
cadet
dvir001 May 13, 2024
bb392c5
Update cadet_loadout_groups.yml
dvir001 May 13, 2024
45ea984
fix handedness
Cheackraze May 14, 2024
82985e2
Merge remote-tracking branch 'origin/may24-upstream-merge' into may24…
Cheackraze May 14, 2024
f018065
cargo and vending pass
Cheackraze May 14, 2024
754f68a
fix fills
dvir001 May 14, 2024
bc690e4
Merge branch 'may24-upstream-merge' of https://github.com/new-frontie…
dvir001 May 14, 2024
62c1a22
more yeetus
Cheackraze May 14, 2024
a6492a7
Merge remote-tracking branch 'origin/may24-upstream-merge' into may24…
Cheackraze May 14, 2024
510048c
Update messenger.yml
dvir001 May 14, 2024
5676a6f
Merge branch 'may24-upstream-merge' of https://github.com/new-frontie…
dvir001 May 14, 2024
749ae0d
Emotional Support
dvir001 May 14, 2024
0d465fc
Update npc.yml
dvir001 May 14, 2024
5ef7e12
Update role_loadouts.yml
dvir001 May 14, 2024
4a1cc19
Update astrovend.yml
dvir001 May 14, 2024
aa9947b
Update heads.yml
dvir001 May 14, 2024
a67378a
Update industrial.yml
dvir001 May 14, 2024
5f677e4
Update gloves.yml
dvir001 May 14, 2024
645d164
Update gloves.yml
dvir001 May 14, 2024
4cc357c
Detective
dvir001 May 14, 2024
a3e225c
pda
dvir001 May 14, 2024
3030616
fix
dvir001 May 14, 2024
ef88fc0
Merge remote-tracking branch 'refs/remotes/origin/master' into may24-…
Cheackraze May 14, 2024
17f1fe2
brig
dvir001 May 14, 2024
aee021d
Merge branch 'may24-upstream-merge' of https://github.com/new-frontie…
dvir001 May 14, 2024
8ab6759
map updates and linter fix
Cheackraze May 14, 2024
90738ae
cargo cleanup
Cheackraze May 14, 2024
a679ffa
home stretch
Cheackraze May 14, 2024
c471c3f
stc mail valet
Cheackraze May 14, 2024
8b99329
cleanup
Cheackraze May 14, 2024
45a8217
brigymedic
Cheackraze May 14, 2024
2fe1c93
Merge branch 'may24-upstream-merge' of https://github.com/new-frontie…
dvir001 May 14, 2024
d6129cb
brigmedic
dvir001 May 14, 2024
867fd6e
fix names
dvir001 May 14, 2024
d731f25
Update face.yml
dvir001 May 14, 2024
580f297
cleanups
dvir001 May 14, 2024
b0d7b57
cleanup 2
dvir001 May 14, 2024
d77d754
cleanup 3
dvir001 May 14, 2024
1292485
Frontier events pass
dvir001 May 14, 2024
0e39d2d
cleanup 4
dvir001 May 14, 2024
a99e03e
Update senior_officer_loadout_groups.yml
dvir001 May 14, 2024
b9ec7c1
Tippy Clippy
dvir001 May 14, 2024
249c944
tips
dvir001 May 14, 2024
7cb9338
shoes
dvir001 May 14, 2024
7bd1c05
https://github.com/new-frontiers-14/frontier-station-14/issues/1356
dvir001 May 14, 2024
4df91f4
fix legs and hands order
dvir001 May 14, 2024
5d966eb
bus music
dvir001 May 14, 2024
010d0ce
DeltaV Jukebox additions
Colin-Tel May 4, 2024
2daf279
Merge pull request #1346 from new-frontiers-14/may24-upstream-merge
Cheackraze May 15, 2024
52f0d60
Automatic Changelog (#1346)
FrontierATC May 15, 2024
716aa35
Update .gitmodules (#1358)
NullWanderer May 15, 2024
53c6c48
Фикс конфликтов
Vonsant May 15, 2024
f24ff28
Merge pull request #165 from new-frontiers-14/master
Vonsant May 15, 2024
90fa919
Fixed submodule issue and updated UpstreamMay branch
Vonsant May 15, 2024
2bdbc0c
Фикс
Vonsant May 15, 2024
497cfd4
Updated RobustToolbox submodule to match upstream version
Vonsant May 15, 2024
945a3eb
Test
Vonsant May 15, 2024
5e1e90d
Test
Vonsant May 15, 2024
2273cbf
Merge branch 'master' into UpstreamMay
Vonsant May 15, 2024
2548fc1
Merge branch 'master' into UpstreamMay
Vonsant May 15, 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
  •  
  •  
  •  
3 changes: 1 addition & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ indent_style = space
tab_width = 4

# New line preferences
end_of_line = crlf:suggestion
#end_of_line = crlf
insert_final_newline = true
trim_trailing_whitespace = true

Expand Down Expand Up @@ -104,7 +104,6 @@ csharp_preferred_modifier_order = public, private, protected, internal, new, abs

# 'using' directive preferences
csharp_using_directive_placement = outside_namespace:silent
csharp_style_namespace_declarations = file_scoped:suggestion

#### C# Formatting Rules ####

Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/conflict-labeler.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
name: Check Merge Conflicts

on:
push:
branches:
- master
pull_request_target:
types:
- opened
- synchronize
- reopened
- ready_for_review

jobs:
Label:
if: github.actor != 'PJBot'
if: ( github.event.pull_request.draft == false ) && ( github.actor != 'PJBot' )
runs-on: ubuntu-latest
steps:
- name: Check for Merge Conflicts
uses: ike709/actions-label-merge-conflict@9eefdd17e10566023c46d2dc6dc04fcb8ec76142
uses: eps1lon/actions-label-merge-conflict@v3.0.0
with:
dirtyLabel: "Merge Conflict"
repoToken: "${{ secrets.GITHUB_TOKEN }}"
Expand Down
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
path = Secrets
url = [email protected]:corvax-project/secrets.git
branch = master
update = none
update = none
4 changes: 2 additions & 2 deletions Content.Benchmarks/MapLoadBenchmark.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
Expand Down Expand Up @@ -46,7 +46,7 @@ public async Task Cleanup()
PoolManager.Shutdown();
}

public static readonly string[] MapsSource = { "Empty", "Box", "Bagel", "Dev", "CentComm", "Atlas", "Core", "TestTeg", "Saltern", "Packed", "Omega", "Cluster", "Reach", "Origin", "Meta", "Marathon", "Europa", "MeteorArena", "Fland", "Barratry" };
public static readonly string[] MapsSource = { "Empty", "Box", "Bagel", "Dev", "CentComm", "Atlas", "Core", "TestTeg", "Saltern", "Packed", "Omega", "Cluster", "Reach", "Origin", "Meta", "Marathon", "Europa", "MeteorArena", "Fland", "Barratry", "Oasis" };

[ParamsSource(nameof(MapsSource))]
public string Map;
Expand Down
2 changes: 1 addition & 1 deletion Content.Benchmarks/SpawnEquipDeleteBenchmark.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ await _pair.Server.WaitPost(() =>
for (var i = 0; i < N; i++)
{
_entity = server.EntMan.SpawnAttachedTo(Mob, _coords);
_spawnSys.EquipStartingGear(_entity, _gear, null);
_spawnSys.EquipStartingGear(_entity, _gear);
server.EntMan.DeleteEntity(_entity);
}
});
Expand Down
4 changes: 1 addition & 3 deletions Content.Client/Access/IdCardSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@

namespace Content.Client.Access;

public sealed class IdCardSystem : SharedIdCardSystem
{
}
public sealed class IdCardSystem : SharedIdCardSystem;
6 changes: 3 additions & 3 deletions Content.Client/Access/UI/AgentIDCardBoundUserInterface.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ private void OnJobChanged(string newJob)
SendMessage(new AgentIDCardJobChangedMessage(newJob));
}

public void OnJobIconChanged(string newJobIcon)
public void OnJobIconChanged(string newJobIconId)
{
SendMessage(new AgentIDCardJobIconChangedMessage(newJobIcon));
SendMessage(new AgentIDCardJobIconChangedMessage(newJobIconId));
}

/// <summary>
Expand All @@ -57,7 +57,7 @@ protected override void UpdateState(BoundUserInterfaceState state)

_window.SetCurrentName(cast.CurrentName);
_window.SetCurrentJob(cast.CurrentJob);
_window.SetAllowedIcons(cast.Icons);
_window.SetAllowedIcons(cast.Icons, cast.CurrentJobIconId);
}

protected override void Dispose(bool disposing)
Expand Down
6 changes: 5 additions & 1 deletion Content.Client/Access/UI/AgentIDCardWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public AgentIDCardWindow(AgentIDCardBoundUserInterface bui)
JobLineEdit.OnFocusExit += e => OnJobChanged?.Invoke(e.Text);
}

public void SetAllowedIcons(HashSet<string> icons)
public void SetAllowedIcons(HashSet<string> icons, string currentJobIconId)
{
IconGrid.DisposeAllChildren();

Expand Down Expand Up @@ -79,6 +79,10 @@ public void SetAllowedIcons(HashSet<string> icons)
jobIconButton.AddChild(jobIconTexture);
jobIconButton.OnPressed += _ => _bui.OnJobIconChanged(jobIcon.ID);
IconGrid.AddChild(jobIconButton);

if (jobIconId.Equals(currentJobIconId))
jobIconButton.Pressed = true;

i++;
}
}
Expand Down
5 changes: 5 additions & 0 deletions Content.Client/Access/UI/IdCardConsoleWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ public IdCardConsoleWindow(IdCardConsoleBoundUserInterface owner, IPrototypeMana

foreach (var job in jobs)
{
if (job.HideConsoleVisibility) // Frontier
{
continue;
}

if (!job.OverrideConsoleVisibility.GetValueOrDefault(job.SetPreference))
{
continue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Content.Client.Administration.Components;

[RegisterComponent, NetworkedComponent]
[RegisterComponent]
public sealed partial class HeadstandComponent : SharedHeadstandComponent
{

Expand Down
5 changes: 2 additions & 3 deletions Content.Client/Administration/Components/KillSignComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@

namespace Content.Client.Administration.Components;

[NetworkedComponent, RegisterComponent]
public sealed partial class KillSignComponent : SharedKillSignComponent
{ }
[RegisterComponent]
public sealed partial class KillSignComponent : SharedKillSignComponent;
7 changes: 5 additions & 2 deletions Content.Client/Administration/Managers/ClientAdminManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,15 @@ void IPostInjectInit.PostInject()

public AdminData? GetAdminData(EntityUid uid, bool includeDeAdmin = false)
{
return uid == _player.LocalEntity ? _adminData : null;
if (uid == _player.LocalEntity && (_adminData?.Active ?? includeDeAdmin))
return _adminData;

return null;
}

public AdminData? GetAdminData(ICommonSession session, bool includeDeAdmin = false)
{
if (_player.LocalUser == session.UserId)
if (_player.LocalUser == session.UserId && (_adminData?.Active ?? includeDeAdmin))
return _adminData;

return null;
Expand Down
23 changes: 23 additions & 0 deletions Content.Client/Administration/Systems/AdminVerbSystem.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
using Content.Shared.Administration;
using Content.Shared.Administration.Managers;
using Content.Shared.Mind.Components;
using Content.Shared.Verbs;
using Robust.Client.Console;
using Robust.Shared.Utility;
Expand All @@ -11,10 +14,12 @@ sealed class AdminVerbSystem : EntitySystem
{
[Dependency] private readonly IClientConGroupController _clientConGroupController = default!;
[Dependency] private readonly IClientConsoleHost _clientConsoleHost = default!;
[Dependency] private readonly ISharedAdminManager _admin = default!;

public override void Initialize()
{
SubscribeLocalEvent<GetVerbsEvent<Verb>>(AddAdminVerbs);

}

private void AddAdminVerbs(GetVerbsEvent<Verb> args)
Expand All @@ -33,6 +38,24 @@ private void AddAdminVerbs(GetVerbsEvent<Verb> args)
};
args.Verbs.Add(verb);
}

if (!_admin.IsAdmin(args.User))
return;

if (_admin.HasAdminFlag(args.User, AdminFlags.Admin))
args.ExtraCategories.Add(VerbCategory.Admin);

if (_admin.HasAdminFlag(args.User, AdminFlags.Fun) && HasComp<MindContainerComponent>(args.Target))
args.ExtraCategories.Add(VerbCategory.Antag);

if (_admin.HasAdminFlag(args.User, AdminFlags.Debug))
args.ExtraCategories.Add(VerbCategory.Debug);

if (_admin.HasAdminFlag(args.User, AdminFlags.Fun))
args.ExtraCategories.Add(VerbCategory.Smite);

if (_admin.HasAdminFlag(args.User, AdminFlags.Admin))
args.ExtraCategories.Add(VerbCategory.Tricks);
}
}
}
73 changes: 73 additions & 0 deletions Content.Client/Administration/UI/BanPanel/BanPanel.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.Net.Sockets;
using Content.Client.Administration.UI.CustomControls;
using Content.Shared.Administration;
using Content.Shared.CCVar;
using Content.Shared.Database;
using Content.Shared.Roles;
using Robust.Client.AutoGenerated;
Expand All @@ -11,6 +12,7 @@
using Robust.Client.UserInterface.Controls;
using Robust.Client.UserInterface.CustomControls;
using Robust.Client.UserInterface.XAML;
using Robust.Shared.Configuration;
using Robust.Shared.Prototypes;
using Robust.Shared.Timing;
using Robust.Shared.Utility;
Expand All @@ -32,8 +34,11 @@ public sealed partial class BanPanel : DefaultWindow
// This is less efficient than just holding a reference to the root control and enumerating children, but you
// have to know how the controls are nested, which makes the code more complicated.
private readonly List<CheckBox> _roleCheckboxes = new();
private readonly ISawmill _banpanelSawmill;

[Dependency] private readonly IGameTiming _gameTiming = default!;
[Dependency] private readonly IConfigurationManager _cfg = default!;
[Dependency] private readonly ILogManager _logManager = default!;

private enum TabNumbers
{
Expand Down Expand Up @@ -65,6 +70,7 @@ public BanPanel()
{
RobustXamlLoader.Load(this);
IoCManager.InjectDependencies(this);
_banpanelSawmill = _logManager.GetSawmill("admin.banpanel");
PlayerList.OnSelectionChanged += OnPlayerSelectionChanged;
PlayerNameLine.OnFocusExit += _ => OnPlayerNameChanged();
PlayerCheckbox.OnPressed += _ =>
Expand Down Expand Up @@ -104,6 +110,11 @@ public BanPanel()
};
SubmitButton.OnPressed += SubmitButtonOnOnPressed;

IpCheckbox.Pressed = _cfg.GetCVar(CCVars.ServerBanIpBanDefault);
HwidCheckbox.Pressed = _cfg.GetCVar(CCVars.ServerBanHwidBanDefault);
LastConnCheckbox.Pressed = _cfg.GetCVar(CCVars.ServerBanUseLastDetails);
EraseCheckbox.Pressed = _cfg.GetCVar(CCVars.ServerBanErasePlayer);

SeverityOption.AddItem(Loc.GetString("admin-note-editor-severity-none"), (int) NoteSeverity.None);
SeverityOption.AddItem(Loc.GetString("admin-note-editor-severity-low"), (int) NoteSeverity.Minor);
SeverityOption.AddItem(Loc.GetString("admin-note-editor-severity-medium"), (int) NoteSeverity.Medium);
Expand Down Expand Up @@ -175,6 +186,39 @@ private void CreateRoleGroup(string roleName, IEnumerable<string> roleList, Colo
c.Pressed = args.Pressed;
}
}

if (args.Pressed)
{
if (!Enum.TryParse(_cfg.GetCVar(CCVars.DepartmentBanDefaultSeverity), true, out NoteSeverity newSeverity))
{
_banpanelSawmill
.Warning("Departmental role ban severity could not be parsed from config!");
return;
}
SeverityOption.SelectId((int) newSeverity);
}
else
{
foreach (var childContainer in RolesContainer.Children)
{
if (childContainer is Container)
{
foreach (var child in childContainer.Children)
{
if (child is CheckBox { Pressed: true })
return;
}
}
}

if (!Enum.TryParse(_cfg.GetCVar(CCVars.RoleBanDefaultSeverity), true, out NoteSeverity newSeverity))
{
_banpanelSawmill
.Warning("Role ban severity could not be parsed from config!");
return;
}
SeverityOption.SelectId((int) newSeverity);
}
};
outerContainer.AddChild(innerContainer);
foreach (var role in roleList)
Expand Down Expand Up @@ -353,6 +397,35 @@ private void OnTypeChanged()
{
TypeOption.ModulateSelfOverride = null;
Tabs.SetTabVisible((int) TabNumbers.Roles, TypeOption.SelectedId == (int) Types.Role);
NoteSeverity? newSeverity = null;
switch (TypeOption.SelectedId)
{
case (int)Types.Server:
if (Enum.TryParse(_cfg.GetCVar(CCVars.ServerBanDefaultSeverity), true, out NoteSeverity serverSeverity))
newSeverity = serverSeverity;
else
{
_banpanelSawmill
.Warning("Server ban severity could not be parsed from config!");
}

break;
case (int) Types.Role:

if (Enum.TryParse(_cfg.GetCVar(CCVars.RoleBanDefaultSeverity), true, out NoteSeverity roleSeverity))
{
newSeverity = roleSeverity;
}
else
{
_banpanelSawmill
.Warning("Role ban severity could not be parsed from config!");
}
break;
}

if (newSeverity != null)
SeverityOption.SelectId((int) newSeverity.Value);
}

private void UpdateSubmitEnabled()
Expand Down
17 changes: 17 additions & 0 deletions Content.Client/Animations/TrackUserComponent.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System.Numerics;

namespace Content.Client.Animations;

/// <summary>
/// Entities with this component tracks the user's world position every frame.
/// </summary>
[RegisterComponent]
public sealed partial class TrackUserComponent : Component
{
public EntityUid? User;

/// <summary>
/// Offset in the direction of the entity's rotation.
/// </summary>
public Vector2 Offset = Vector2.Zero;
}
20 changes: 20 additions & 0 deletions Content.Client/Atmos/UI/GasAnalyzerWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,26 @@ private void GenerateGasDisplay(GasMixEntry gasMix, Control parent)
parent.AddChild(panel);
panel.AddChild(dataContainer);

// Volume label
var volBox = new BoxContainer { Orientation = BoxContainer.LayoutOrientation.Horizontal };

volBox.AddChild(new Label
{
Text = Loc.GetString("gas-analyzer-window-volume-text")
});
volBox.AddChild(new Control
{
MinSize = new Vector2(10, 0),
HorizontalExpand = true
});
volBox.AddChild(new Label
{
Text = Loc.GetString("gas-analyzer-window-volume-val-text", ("volume", $"{gasMix.Volume:0.##}")),
Align = Label.AlignMode.Right,
HorizontalExpand = true
});
dataContainer.AddChild(volBox);

// Pressure label
var presBox = new BoxContainer { Orientation = BoxContainer.LayoutOrientation.Horizontal };

Expand Down
Loading
Loading