-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
645 changed files
with
363,109 additions
and
31,148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ jobs: | |
{ | ||
"0": "XS", | ||
"10": "S", | ||
"30": "M", | ||
"100": "L", | ||
"1000": "XL" | ||
"100": "M", | ||
"1000": "L", | ||
"5000": "XL" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: RGA schema validator | ||
on: | ||
push: | ||
branches: [ master, staging, stable ] | ||
merge_group: | ||
pull_request: | ||
types: [ opened, reopened, synchronize, ready_for_review ] | ||
|
||
jobs: | ||
yaml-schema-validation: | ||
name: YAML RGA schema validator | ||
if: github.actor != 'PJBot' && github.event.pull_request.draft == false | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Setup Submodule | ||
run: git submodule update --init | ||
- name: Pull engine updates | ||
uses: space-wizards/[email protected] | ||
- uses: PaulRitter/yaml-schema-validator@v1 | ||
with: | ||
schema: RobustToolbox/Schemas/rga.yml | ||
path_pattern: .*attributions.ya?ml$ | ||
validators_path: RobustToolbox/Schemas/rga_validators.py | ||
validators_requirements: RobustToolbox/Schemas/rga_requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: RSI Validator | ||
|
||
on: | ||
push: | ||
branches: [ master, staging, stable ] | ||
merge_group: | ||
pull_request: | ||
paths: | ||
- '**.rsi/**' | ||
|
||
jobs: | ||
validate_rsis: | ||
name: Validate RSIs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Setup Submodule | ||
run: git submodule update --init | ||
- name: Pull engine updates | ||
uses: space-wizards/[email protected] | ||
- name: Install Python dependencies | ||
run: | | ||
pip3 install --ignore-installed --user pillow jsonschema | ||
- name: Validate RSIs | ||
run: | | ||
python3 RobustToolbox/Schemas/validate_rsis.py Resources/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
Content.Client/Atmos/Consoles/AtmosMonitoringConsoleBoundUserInterface.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
using Content.Shared.Atmos.Components; | ||
|
||
namespace Content.Client.Atmos.Consoles; | ||
|
||
public sealed class AtmosMonitoringConsoleBoundUserInterface : BoundUserInterface | ||
{ | ||
[ViewVariables] | ||
private AtmosMonitoringConsoleWindow? _menu; | ||
|
||
public AtmosMonitoringConsoleBoundUserInterface(EntityUid owner, Enum uiKey) : base(owner, uiKey) { } | ||
|
||
protected override void Open() | ||
{ | ||
base.Open(); | ||
|
||
_menu = new AtmosMonitoringConsoleWindow(this, Owner); | ||
_menu.OpenCentered(); | ||
_menu.OnClose += Close; | ||
} | ||
|
||
protected override void UpdateState(BoundUserInterfaceState state) | ||
{ | ||
base.UpdateState(state); | ||
|
||
if (state is not AtmosMonitoringConsoleBoundInterfaceState castState) | ||
return; | ||
|
||
EntMan.TryGetComponent<TransformComponent>(Owner, out var xform); | ||
_menu?.UpdateUI(xform?.Coordinates, castState.AtmosNetworks); | ||
} | ||
|
||
protected override void Dispose(bool disposing) | ||
{ | ||
base.Dispose(disposing); | ||
if (!disposing) | ||
return; | ||
|
||
_menu?.Dispose(); | ||
} | ||
} |
Oops, something went wrong.