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

Upstream 1(fixed) #80

Merged
merged 183 commits into from
Nov 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
183 commits
Select commit Hold shift + click to select a range
af72f2e
Applying Fix from #32764 to staging
Jezithyr Oct 13, 2024
30effd5
Fix random test fail in DeleteAllThenGhost (#32753)
Errant-4 Oct 11, 2024
e5ad32f
Fix random test fail in DeleteAllThenGhost (#32753)
Errant-4 Oct 11, 2024
796764d
Fix some rounds failing to end due to mind roles (#32792) (#32793)
PJB3005 Oct 13, 2024
519a6b2
HOTFIX: Fix tech anomaly nexttimer (#32805) (#32807)
Errant-4 Oct 14, 2024
e04e3a6
HOTFIX spider clan charges can be armed again (#32866)
Errant-4 Oct 18, 2024
b137b0c
HOTFIX Plushies no longer delete items when recycled (#32882)
Errant-4 Oct 18, 2024
928877f
HOTFIX (stable) submodule update (#32900)
PJB3005 Oct 19, 2024
2b02545
Hotfix server config changes for playercap and Levi bunker (#32925)
nikthechampiongr Oct 22, 2024
c28665c
Merge branch 'staging' of ssh://github.com/space-wizards/space-statio…
VasilisThePikachu Oct 25, 2024
ae1c557
Applying Fix from #32764 to staging
Jezithyr Oct 13, 2024
9b0ae98
Merge branch 'staging' of ssh://github.com/space-wizards/space-statio…
VasilisThePikachu Oct 25, 2024
4fbe50a
Fix Bug With Uppercase Radio Keys (#32997)
Aeshus Oct 27, 2024
a471755
Fix loneop spawnrate by reverting it to not use the shuttle event sys…
BramvanZijp Oct 26, 2024
0468c0f
Fix playtime formatting (#32974)
stalengd Oct 28, 2024
a399c1e
Fixes tailthump breaking positional audio by making it mono (#33092)
deathride58 Oct 31, 2024
190d965
Hotfix add debug info to traitor activation (#33119)
Errant-4 Nov 2, 2024
69c0f87
we hate powergaming
cohanna Nov 4, 2024
3972a25
HOTFIX latejoin traitor activations (#33180)
Errant-4 Nov 5, 2024
18971f2
Reverted #31978
cohanna Nov 7, 2024
6c7336b
oops reverted too much
cohanna Nov 7, 2024
fea5769
dark green jumpsuit recolor, casual green jumpsuits added (#31710)
Boaz1111 Nov 8, 2024
6ed2ab9
Automatic changelog update
PJBot Nov 8, 2024
41b84fc
Label workflow - stable (#33220)
Errant-4 Nov 8, 2024
b968585
Label workflow - staging (#33221)
Errant-4 Nov 8, 2024
1e368ae
Add a Walking alert (#32954)
SlamBamActionman Nov 9, 2024
4004420
The Jumpsuit Re-Detailening (#33096)
Flareguy Nov 9, 2024
287a9a0
Intellicards now have a doAfter. (#33198)
ScarKy0 Nov 9, 2024
675e42d
Automatic changelog update
PJBot Nov 9, 2024
d1c66d7
Update Credits (#33237)
github-actions[bot] Nov 10, 2024
d939e99
Removed bola stam damage (#32989)
ARMOKS Nov 10, 2024
33b780f
tweak: weather command tooltip (#33130)
IProduceWidgets Nov 10, 2024
9396ce3
Automatic changelog update
PJBot Nov 10, 2024
1c8992f
Goliath rebalance (#31492)
Shaddap1 Nov 10, 2024
9b72006
Omega Station: Fix Air Alarm in CMO office (#33216)
scrivoy Nov 10, 2024
63f2c84
Merge remote-tracking branch 'upstream/staging' into stable-test
VasilisThePikachu Nov 10, 2024
63f7325
[Maps] Astra Update (#2760)
lastPechkin Nov 10, 2024
7dfd725
Automatic changelog update
IanComradeBot Nov 10, 2024
1dfc913
Фикс законов боргов. (#2754)
Vonsant Nov 10, 2024
ebf55ea
Automatic changelog update
IanComradeBot Nov 10, 2024
d187108
Resprite some captain clothing (#2740)
Zekins3366 Nov 11, 2024
4fe3b7f
Automatic changelog update
IanComradeBot Nov 11, 2024
21979a7
Fix vape use without check if doafter cancelled (#33245)
leonidussaks Nov 11, 2024
197d9e6
HOTFIX: Fix Security Shell Gun being uncraftable. (#33247)
BramvanZijp Nov 11, 2024
436ca94
New lobby art (#2762)
NotSoDana Nov 11, 2024
20c049a
Automatic changelog update
IanComradeBot Nov 11, 2024
a138fed
Make the Flare Gun & Security Shell Gun be unbolted by default. (#33248)
BramvanZijp Nov 11, 2024
b9c2b0c
Automatic changelog update
PJBot Nov 11, 2024
d22b021
Remove roundStart: false for Anivia voice prototype (#2764)
Vonsant Nov 11, 2024
991bbc2
Merge branch 'stable' of https://github.com/space-wizards/space-stati…
BramvanZijp Nov 11, 2024
bbdbad5
Merge Shell Gun Hotfix into Master (#33260)
VasilisThePikachu Nov 11, 2024
e0e46d2
Zombies able to see infection.
Halches Nov 11, 2024
1136200
BUGFIX: Fix APEs being able to be turned on without power (#32493)
AndrewMontagne Nov 11, 2024
3795837
Automatic changelog update
PJBot Nov 11, 2024
806e1e4
Separate CCVars into separate files
Simyon264 Nov 12, 2024
a1966d8
improve BiomeDunGen (#33113)
TheShuEd Nov 12, 2024
70e3650
Make Droppers Respect Closed/Sealed Containers (#33011)
thetolbean Nov 12, 2024
8776c71
Automatic changelog update
PJBot Nov 12, 2024
8b15489
Allow editing angle of the fired projectile (#33254)
MilenVolf Nov 12, 2024
ef51700
Fix unban/editing role bans placed in groups. (#30659)
Titian3 Nov 12, 2024
cc3712b
Automatic changelog update
PJBot Nov 12, 2024
998fc7f
[Maps] Paper Tweak (#2761)
XsenonDash Nov 12, 2024
63aa8c6
Automatic changelog update
IanComradeBot Nov 12, 2024
af3593a
Adds new sprites for shotgun shell boxes (#33176)
SpaceRox1244 Nov 12, 2024
e9f6a02
un-reverted fixes
cohanna Nov 13, 2024
21074bd
oops
cohanna Nov 13, 2024
bd2d0ee
Added the ability to microwave inert flesh anomaly cores to turn into…
august-sun Nov 13, 2024
52c1708
Automatic changelog update
PJBot Nov 13, 2024
99b4604
Cog fixes (#33285)
Spessmann Nov 13, 2024
06480e7
[Maps] Corvax CentCom fix (#2767)
lastPechkin Nov 13, 2024
8cf279e
Window sprite tweaks (#33282)
UbaserB Nov 13, 2024
c978eef
Automatic changelog update
PJBot Nov 13, 2024
ff25bdc
Automatic changelog update
IanComradeBot Nov 13, 2024
2914f53
[Maps] Astra goals (#2768)
lastPechkin Nov 13, 2024
885347d
Automatic changelog update
IanComradeBot Nov 13, 2024
6f7066e
Separate CCVars into separate files (#33268)
VasilisThePikachu Nov 13, 2024
51d2b51
tag:with toolshed command (#31751)
dffdff2423 Nov 13, 2024
9643598
Automatic changelog update
PJBot Nov 13, 2024
fa3a04a
Ethereal Jaunt Spell for Wizard & Jaunt ECS (#33201)
keronshb Nov 13, 2024
b91c977
Automatic changelog update
PJBot Nov 13, 2024
f2b7743
Half Revert #31978 (#33160)
keronshb Nov 14, 2024
5e54536
Hotfix 33160 (#33302)
keronshb Nov 14, 2024
75ec546
Update Label workflows to use new labels (#33310)
SlamBamActionman Nov 14, 2024
815e37e
Fix mime broken vow alert (#33303)
CheddaCheez Nov 14, 2024
669bc14
Automatic changelog update
PJBot Nov 14, 2024
1bebb33
Borg type switching. (#32586)
PJB3005 Nov 14, 2024
0437ec6
Automatic changelog update
PJBot Nov 14, 2024
2c9f227
Marathon Station: Added air alarms to CMO, Surgery, Security Checkpoi…
scrivoy Nov 14, 2024
d205d17
Meta Station: Add a fully functional TEG room (#32941)
scrivoy Nov 15, 2024
530a741
Rule amendment - Remove role abandonment aHelp requirement. (#33287)
Titian3 Nov 15, 2024
30d5379
[Maps] Maus minor tweak (#2774)
Meguneri Nov 15, 2024
7a12044
Automatic changelog update
IanComradeBot Nov 15, 2024
dfda557
Note expiry time is now relative instead of using timestamps (#33262)
beck-thompson Nov 15, 2024
606d44b
Automatic changelog update
PJBot Nov 15, 2024
f75be07
Merge hotfix #33287 from "stable" into "master"
SaphireLattice Nov 15, 2024
b4e0362
Update Core (#33325)
UbaserB Nov 15, 2024
465170f
Prevent Digiboard recycling (#33315)
thetolbean Nov 15, 2024
e3b6110
Automatic changelog update
PJBot Nov 15, 2024
081e87d
Atro tiles weather disable (#2777)
Ko4ergaPunk Nov 15, 2024
dc4df2e
Weather tweak (#2778)
Ko4ergaPunk Nov 15, 2024
97ce69f
Command external airlocks (#33333)
UbaserB Nov 15, 2024
cf96679
New ruin variant (#33332)
UbaserB Nov 15, 2024
4fc7a4c
Edited Snow White reaction to output proper amount of drink. (#33331)
RedBookcase Nov 15, 2024
3a6ae97
Automatic changelog update
PJBot Nov 15, 2024
089f190
Add succumb action 10 sec delay (#32985)
lzk228 Nov 15, 2024
6683dc9
Automatic changelog update
PJBot Nov 15, 2024
09d0565
Adds gorilla gauntlet storage sprite and updates hit sound (#33167)
SpaceRox1244 Nov 15, 2024
da4fa9b
Clumsy system refactor (#31147)
beck-thompson Nov 15, 2024
abdefbd
Automatic changelog update
PJBot Nov 15, 2024
e7e1d96
Improve crayon UI to not be stuck in 1996 (#33101)
SaphireLattice Nov 16, 2024
4426bbe
Automatic changelog update
PJBot Nov 16, 2024
862c2ac
BRB sign in the Bureaucracy Crate (#33341)
southbridge-fur Nov 16, 2024
c4e8751
Automatic changelog update
PJBot Nov 16, 2024
1f5eb6a
Fix utensils not being thrown away (#33326)
SaphireLattice Nov 16, 2024
6bcfe6f
Automatic changelog update
PJBot Nov 16, 2024
11963e5
Fix server crash when the seed extractor is used on the dev map (#33312)
MossyGreySlope Nov 16, 2024
4f659b9
Solar assembly crate buff (#33019)
K-Dynamic Nov 16, 2024
7077b93
Automatic changelog update
PJBot Nov 16, 2024
2c82a2d
Add admin remarks button to lobby (#31761)
dffdff2423 Nov 16, 2024
47f94d1
Automatic changelog update
PJBot Nov 16, 2024
156db8f
[Art] Conveyor resprite (#2565)
Ko4ergaPunk Nov 16, 2024
d9a5ffb
Cog christmas update (#33344)
Spessmann Nov 16, 2024
f5b63b8
Box Holiday Update (#33340)
southbridge-fur Nov 16, 2024
f071bf6
Marathon holiday update (#33335)
southbridge-fur Nov 16, 2024
bdab412
bagel christmas update (#33347)
Emisse Nov 16, 2024
5cd9243
Throwing Knife description tweak (#33349)
ThatGuyUSA Nov 17, 2024
0991b6b
Update Credits (#33360)
github-actions[bot] Nov 17, 2024
d9c677e
Adds paper label visuals to closets and lockers (#33318)
SpaceRox1244 Nov 17, 2024
96b9d1a
Automatic changelog update
PJBot Nov 17, 2024
f484118
Omega Update (Christmas Edition) (#33357)
spanky-spanky Nov 17, 2024
c7f8352
Packed Update (Christmas Edition) (#33356)
spanky-spanky Nov 17, 2024
22987fc
Wizard Summon Guns/Magic (#32692)
ActiveMammmoth Nov 17, 2024
31d5a66
Chemical synthesis kit tweak (#33345)
ThatGuyUSA Nov 17, 2024
824efd4
Dim light bulbs (#33383)
UbaserB Nov 18, 2024
b0fd9d5
Automatic changelog update
PJBot Nov 18, 2024
647db6a
Shift air alarm sprites to better reflect their direction (#33379)
SpaceManiac Nov 18, 2024
52772b2
replace zzz (#2758)
lzk228 Nov 18, 2024
66d5795
Арт "Культ Нар'Си" (#2603)
Vonsant Nov 18, 2024
9447410
Avrite update (#2782)
CaptainMaru Nov 18, 2024
8d2e693
Automatic changelog update
IanComradeBot Nov 18, 2024
e77548d
add new goal and tweak others (#2673)
lzk228 Nov 18, 2024
c466ed9
reduce mime and clown playtime requirement (#2668)
lzk228 Nov 18, 2024
19d0af0
Automatic changelog update
IanComradeBot Nov 18, 2024
df512c9
remove HiddenDesc from Implanters (#2530)
lzk228 Nov 18, 2024
f5f4ddc
fix antags hidden desc (#2702)
lzk228 Nov 18, 2024
3cc6e5b
Automatic changelog update
IanComradeBot Nov 18, 2024
79ff990
Replace direct uses of GameTicker dictionary with `TryGetValue` (#33222)
ficcialfaint Nov 18, 2024
96d2fe4
Service Worker Job Icon Change (#33361)
spanky-spanky Nov 18, 2024
dffece4
Cog update (#33410)
Spessmann Nov 19, 2024
909235c
fix viewing nav slowing shuttle down (#32381)
Ilya246 Nov 19, 2024
10ee37a
Automatic changelog update
PJBot Nov 19, 2024
437a586
Welded secret doors no longer say they are welded shut. (#33365)
ScarKy0 Nov 19, 2024
0e2e6a0
Automatic changelog update
PJBot Nov 19, 2024
fa377d8
Merge remote-tracking branch 'wizards/master' into upstream-sync
Morb0 Nov 19, 2024
905f239
Update locale
Morb0 Nov 19, 2024
9979e6b
Remove locale borg parts
Morb0 Nov 19, 2024
f045e0b
Merge pull request #2785 from space-syndicate/upstream-sync
Morb0 Nov 19, 2024
27b918a
[Maps] Glacier update (#2788)
NotSoDana Nov 19, 2024
305eee7
[Maps] ERT&Salvage shuttle update (#2789)
lastPechkin Nov 20, 2024
b34220e
Automatic changelog update
IanComradeBot Nov 20, 2024
b313fad
Rebalancing zombie mode chances (#2791)
Halches Nov 20, 2024
57d5afc
Automatic changelog update
IanComradeBot Nov 20, 2024
5d022c6
Syndicate footsoldiers now have death acidifier as an autoimplant (#2…
NazrinNya Nov 20, 2024
764c93d
Automatic changelog update
IanComradeBot Nov 20, 2024
6729be8
nerf maxcap radius (#2794)
Vonsant Nov 21, 2024
6a61d4d
Automatic changelog update
IanComradeBot Nov 21, 2024
7d74c3a
Corvax New Year stuff (#2793)
Ko4ergaPunk Nov 21, 2024
9ee1aa2
Automatic changelog update
IanComradeBot Nov 21, 2024
a231dde
[Maps] Avrite update (#2796)
CaptainMaru Nov 21, 2024
fb326de
Automatic changelog update
IanComradeBot Nov 21, 2024
39add41
Translate Upstream #2785 (#2797)
lapatison Nov 22, 2024
30dad22
Добавление скрытого описания модулей киборгов (#2544)
Nimfar11 Nov 22, 2024
8170b59
Automatic changelog update
IanComradeBot Nov 22, 2024
27bad21
set see own notes to true (#2786)
lzk228 Nov 22, 2024
c5cdd8d
Automatic changelog update
IanComradeBot Nov 22, 2024
f7626a3
[Maps] Astra Winter Update (#2798)
lastPechkin Nov 22, 2024
0d72dc3
Automatic changelog update
IanComradeBot Nov 22, 2024
d44f76d
Displacement maps for Vulpas and Reptiles (#2447)
Litogin Nov 23, 2024
bfcc656
Merge remote-tracking branch 'upstream/master'
AwareFoxy Nov 24, 2024
4f81f2d
fix reptilians
AwareFoxy Nov 24, 2024
9313f32
Remove brigmed from paper
AwareFoxy Nov 24, 2024
2d1fdfd
Also remove brigmedic from avrite
AwareFoxy Nov 24, 2024
610d271
fix prices for tests
AwareFoxy Nov 24, 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
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
- changed-files:
- any-glob-to-any-file: '**/*.ftl'

"No C#":
"Changes: No C#":
- changed-files:
# Equiv to any-glob-to-all as long as this has one matcher. If ALL changed files are not C# files, then apply label.
- all-globs-to-all-files: "!**/*.cs"
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ jobs:
- name: Check for Merge Conflicts
uses: eps1lon/[email protected]
with:
dirtyLabel: "Merge Conflict"
dirtyLabel: "S: Merge Conflict"
repoToken: "${{ secrets.GITHUB_TOKEN }}"
commentOnDirty: "This pull request has conflicts, please resolve those before we can evaluate the pull request."
4 changes: 2 additions & 2 deletions .github/workflows/labeler-needsreview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
steps:
- uses: actions-ecosystem/action-add-labels@v1
with:
labels: "Status: Needs Review"
labels: "S: Needs Review"
- uses: actions-ecosystem/action-remove-labels@v1
with:
labels: "Status: Awaiting Changes"
labels: "S: Awaiting Changes"
20 changes: 20 additions & 0 deletions .github/workflows/labeler-size.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: "Labels: Size"
on: pull_request_target
jobs:
size-label:
runs-on: ubuntu-latest
steps:
- name: size-label
uses: "pascalgn/[email protected]"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
# Custom size configuration
sizes: >
{
"0": "XS",
"10": "S",
"30": "M",
"100": "L",
"1000": "XL"
}
16 changes: 16 additions & 0 deletions .github/workflows/labeler-stable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "Labels: Branch stable"

on:
pull_request_target:
types:
- opened
branches:
- 'stable'

jobs:
add_label:
runs-on: ubuntu-latest
steps:
- uses: actions-ecosystem/action-add-labels@v1
with:
labels: "Branch: Stable"
16 changes: 16 additions & 0 deletions .github/workflows/labeler-staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "Labels: Branch staging"

on:
pull_request_target:
types:
- opened
branches:
- 'staging'

jobs:
add_label:
runs-on: ubuntu-latest
steps:
- uses: actions-ecosystem/action-add-labels@v1
with:
labels: "Branch: Staging"
4 changes: 3 additions & 1 deletion .github/workflows/labeler-untriaged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
on:
issues:
types: [opened]
pull_request_target:
types: [opened]

jobs:
add_label:
Expand All @@ -11,4 +13,4 @@ jobs:
- uses: actions-ecosystem/action-add-labels@v1
if: join(github.event.issue.labels) == ''
with:
labels: "Status: Untriaged"
labels: "S: Untriaged"
1 change: 1 addition & 0 deletions Content.Client/Administration/UI/Notes/NoteEdit.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<Label Name="ExpiryLabel" Text="{Loc admin-note-editor-expiry-label}" Visible="False" />
<HistoryLineEdit Name="ExpiryLineEdit" PlaceHolder="{Loc admin-note-editor-expiry-placeholder}"
Visible="False" HorizontalExpand="True" />
<OptionButton Name="ExpiryLengthDropdown" Visible="False" />
</BoxContainer>
<BoxContainer Orientation="Horizontal" HorizontalExpand="True">
<OptionButton Name="TypeOption" HorizontalAlignment="Center" />
Expand Down
53 changes: 50 additions & 3 deletions Content.Client/Administration/UI/Notes/NoteEdit.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,17 @@ public sealed partial class NoteEdit : FancyWindow
[Dependency] private readonly IGameTiming _gameTiming = default!;
[Dependency] private readonly IClientConsoleHost _console = default!;

private enum Multipliers
{
Minutes,
Hours,
Days,
Weeks,
Months,
Years,
Centuries
}

public event Action<int, NoteType, string, NoteSeverity?, bool, DateTime?>? SubmitPressed;

public NoteEdit(SharedAdminNote? note, string playerName, bool canCreate, bool canEdit)
Expand All @@ -31,6 +42,20 @@ public NoteEdit(SharedAdminNote? note, string playerName, bool canCreate, bool c

ResetSubmitButton();

// It's weird to use minutes as the IDs, but it works and makes sense kind of :)
ExpiryLengthDropdown.AddItem(Loc.GetString("admin-note-button-minutes"), (int) Multipliers.Minutes);
ExpiryLengthDropdown.AddItem(Loc.GetString("admin-note-button-hours"), (int) Multipliers.Hours);
ExpiryLengthDropdown.AddItem(Loc.GetString("admin-note-button-days"), (int) Multipliers.Days);
ExpiryLengthDropdown.AddItem(Loc.GetString("admin-note-button-weeks"), (int) Multipliers.Weeks);
ExpiryLengthDropdown.AddItem(Loc.GetString("admin-note-button-months"), (int) Multipliers.Months);
ExpiryLengthDropdown.AddItem(Loc.GetString("admin-note-button-years"), (int) Multipliers.Years);
ExpiryLengthDropdown.AddItem(Loc.GetString("admin-note-button-centuries"), (int) Multipliers.Centuries);
ExpiryLengthDropdown.OnItemSelected += OnLengthChanged;

ExpiryLengthDropdown.SelectId((int) Multipliers.Weeks);

ExpiryLineEdit.OnTextChanged += OnTextChanged;

TypeOption.AddItem(Loc.GetString("admin-note-editor-type-note"), (int) NoteType.Note);
TypeOption.AddItem(Loc.GetString("admin-note-editor-type-message"), (int) NoteType.Message);
TypeOption.AddItem(Loc.GetString("admin-note-editor-type-watchlist"), (int) NoteType.Watchlist);
Expand Down Expand Up @@ -172,8 +197,9 @@ private void UpdatePermanentCheckboxFields()
{
ExpiryLabel.Visible = !PermanentCheckBox.Pressed;
ExpiryLineEdit.Visible = !PermanentCheckBox.Pressed;
ExpiryLengthDropdown.Visible = !PermanentCheckBox.Pressed;

ExpiryLineEdit.Text = !PermanentCheckBox.Pressed ? DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") : string.Empty;
ExpiryLineEdit.Text = !PermanentCheckBox.Pressed ? 1.ToString() : string.Empty;
}

private void OnSecretPressed(BaseButton.ButtonEventArgs _)
Expand All @@ -187,6 +213,16 @@ private void OnSeverityChanged(OptionButton.ItemSelectedEventArgs args)
SeverityOption.SelectId(args.Id);
}

private void OnLengthChanged(OptionButton.ItemSelectedEventArgs args)
{
ExpiryLengthDropdown.SelectId(args.Id);
}

private void OnTextChanged(HistoryLineEdit.LineEditEventArgs args)
{
ParseExpiryTime();
}

private void OnSubmitButtonPressed(BaseButton.ButtonEventArgs args)
{
if (!ParseExpiryTime())
Expand Down Expand Up @@ -263,13 +299,24 @@ private bool ParseExpiryTime()
return true;
}

if (string.IsNullOrWhiteSpace(ExpiryLineEdit.Text) || !DateTime.TryParse(ExpiryLineEdit.Text, out var result) || DateTime.UtcNow > result)
if (string.IsNullOrWhiteSpace(ExpiryLineEdit.Text) || !uint.TryParse(ExpiryLineEdit.Text, out var inputInt))
{
ExpiryLineEdit.ModulateSelfOverride = Color.Red;
return false;
}

ExpiryTime = result.ToUniversalTime();
var mult = ExpiryLengthDropdown.SelectedId switch
{
(int) Multipliers.Minutes => TimeSpan.FromMinutes(1).TotalMinutes,
(int) Multipliers.Hours => TimeSpan.FromHours(1).TotalMinutes,
(int) Multipliers.Days => TimeSpan.FromDays(1).TotalMinutes,
(int) Multipliers.Weeks => TimeSpan.FromDays(7).TotalMinutes,
(int) Multipliers.Months => TimeSpan.FromDays(30).TotalMinutes,
(int) Multipliers.Years => TimeSpan.FromDays(365).TotalMinutes,
(int) Multipliers.Centuries => TimeSpan.FromDays(36525).TotalMinutes,
_ => throw new ArgumentOutOfRangeException(nameof(ExpiryLengthDropdown.SelectedId), "Multiplier out of range :(")
};
ExpiryTime = DateTime.UtcNow.AddMinutes(inputInt * mult);
ExpiryLineEdit.ModulateSelfOverride = null;
return true;
}
Expand Down
15 changes: 10 additions & 5 deletions Content.Client/Alerts/ClientAlertsSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Content.Shared.Alert;
using JetBrains.Annotations;
using Robust.Client.Player;
using Robust.Shared.GameStates;
using Robust.Shared.Player;
using Robust.Shared.Prototypes;

Expand All @@ -24,8 +25,7 @@ public override void Initialize()

SubscribeLocalEvent<AlertsComponent, LocalPlayerAttachedEvent>(OnPlayerAttached);
SubscribeLocalEvent<AlertsComponent, LocalPlayerDetachedEvent>(OnPlayerDetached);

SubscribeLocalEvent<AlertsComponent, AfterAutoHandleStateEvent>(ClientAlertsHandleState);
SubscribeLocalEvent<AlertsComponent, ComponentHandleState>(OnHandleState);
}
protected override void LoadPrototypes()
{
Expand All @@ -47,17 +47,22 @@ public IReadOnlyDictionary<AlertKey, AlertState>? ActiveAlerts
}
}

protected override void AfterShowAlert(Entity<AlertsComponent> alerts)
private void OnHandleState(Entity<AlertsComponent> alerts, ref ComponentHandleState args)
{
if (args.Current is not AlertComponentState cast)
return;

alerts.Comp.Alerts = cast.Alerts;

UpdateHud(alerts);
}

protected override void AfterClearAlert(Entity<AlertsComponent> alerts)
protected override void AfterShowAlert(Entity<AlertsComponent> alerts)
{
UpdateHud(alerts);
}

private void ClientAlertsHandleState(Entity<AlertsComponent> alerts, ref AfterAutoHandleStateEvent args)
protected override void AfterClearAlert(Entity<AlertsComponent> alerts)
{
UpdateHud(alerts);
}
Expand Down
24 changes: 19 additions & 5 deletions Content.Client/Clothing/ClientClothingSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public override void Initialize()
base.Initialize();

SubscribeLocalEvent<ClothingComponent, GetEquipmentVisualsEvent>(OnGetVisuals);
SubscribeLocalEvent<ClothingComponent, InventoryTemplateUpdated>(OnInventoryTemplateUpdated);

SubscribeLocalEvent<InventoryComponent, VisualsChangedEvent>(OnVisualsChanged);
SubscribeLocalEvent<SpriteComponent, DidUnequipEvent>(OnDidUnequip);
Expand All @@ -70,11 +71,7 @@ private void OnAppearanceUpdate(EntityUid uid, InventoryComponent component, ref
if (args.Sprite == null)
return;

var enumerator = _inventorySystem.GetSlotEnumerator((uid, component));
while (enumerator.NextItem(out var item, out var slot))
{
RenderEquipment(uid, item, slot.Name, component);
}
UpdateAllSlots(uid, component);

// No clothing equipped -> make sure the layer is hidden, though this should already be handled by on-unequip.
if (args.Sprite.LayerMapTryGet(HumanoidVisualLayers.StencilMask, out var layer))
Expand All @@ -84,6 +81,23 @@ private void OnAppearanceUpdate(EntityUid uid, InventoryComponent component, ref
}
}

private void OnInventoryTemplateUpdated(Entity<ClothingComponent> ent, ref InventoryTemplateUpdated args)
{
UpdateAllSlots(ent.Owner, clothing: ent.Comp);
}

private void UpdateAllSlots(
EntityUid uid,
InventoryComponent? inventoryComponent = null,
ClothingComponent? clothing = null)
{
var enumerator = _inventorySystem.GetSlotEnumerator((uid, inventoryComponent));
while (enumerator.NextItem(out var item, out var slot))
{
RenderEquipment(uid, item, slot.Name, inventoryComponent, clothingComponent: clothing);
}
}

private void OnGetVisuals(EntityUid uid, ClothingComponent item, GetEquipmentVisualsEvent args)
{
if (!TryComp(args.Equipee, out InventoryComponent? inventory))
Expand Down
12 changes: 11 additions & 1 deletion Content.Client/Crayon/UI/CrayonBoundUserInterface.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ protected override void Open()
private void PopulateCrayons()
{
var crayonDecals = _protoManager.EnumeratePrototypes<DecalPrototype>().Where(x => x.Tags.Contains("crayon"));
_menu?.Populate(crayonDecals);
_menu?.Populate(crayonDecals.ToList());
}

public override void OnProtoReload(PrototypesReloadedEventArgs args)
Expand All @@ -44,6 +44,16 @@ public override void OnProtoReload(PrototypesReloadedEventArgs args)
PopulateCrayons();
}

protected override void ReceiveMessage(BoundUserInterfaceMessage message)
{
base.ReceiveMessage(message);

if (_menu is null || message is not CrayonUsedMessage crayonMessage)
return;

_menu.AdvanceState(crayonMessage.DrawnDecal);
}

protected override void UpdateState(BoundUserInterfaceState state)
{
base.UpdateState(state);
Expand Down
11 changes: 5 additions & 6 deletions Content.Client/Crayon/UI/CrayonWindow.xaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
<DefaultWindow xmlns="https://spacestation14.io"
Title="{Loc 'crayon-window-title'}"
MinSize="250 300"
SetSize="250 300">
MinSize="450 500"
SetSize="450 500">
<BoxContainer Orientation="Vertical">
<ColorSelectorSliders Name="ColorSelector" Visible="False" />
<LineEdit Name="Search" />
<LineEdit Name="Search" Margin="0 0 0 8" PlaceHolder="{Loc 'crayon-window-placeholder'}" />
<ScrollContainer VerticalExpand="True">
<GridContainer Name="Grid" Columns="6">
<!-- Crayon decals get added here by code -->
</GridContainer>
<BoxContainer Name="Grids" Orientation="Vertical">
</BoxContainer>
</ScrollContainer>
</BoxContainer>
</DefaultWindow>
Loading
Loading