-
Notifications
You must be signed in to change notification settings - Fork 636
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1494 from space-syndicate/upstream-sync
Upstream sync
- Loading branch information
Showing
592 changed files
with
7,876 additions
and
19,070 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Update Contrib and Patreons in credits | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: 0 0 * * 0 | ||
|
||
jobs: | ||
get_credits: | ||
runs-on: ubuntu-latest | ||
# Hey there fork dev! If you like to include your own contributors in this then you can probably just change this to your own repo | ||
# Do this in dump_github_contributors.ps1 too into your own repo | ||
if: github.repository == 'space-wizards/space-station-14' | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
ref: master | ||
|
||
- name: Get this week's Contributors | ||
shell: pwsh | ||
run: Tools/dump_github_contributors.ps1 > Resources/Credits/GitHub.txt | ||
|
||
# TODO | ||
#- name: Get this week's Patreons | ||
# run: Tools/script2dumppatreons > Resources/Credits/Patrons.yml | ||
|
||
- name: Commit new credit files | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: Update Credits | ||
commit_author: PJBot <[email protected]> |
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
39 changes: 16 additions & 23 deletions
39
Content.Client/Chemistry/Visualizers/SolutionContainerVisualsComponent.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 |
---|---|---|
@@ -1,52 +1,45 @@ | ||
using System; | ||
using Content.Shared.Chemistry; | ||
using JetBrains.Annotations; | ||
using Robust.Client.GameObjects; | ||
using Robust.Shared.GameObjects; | ||
using Robust.Shared.IoC; | ||
using Robust.Shared.Maths; | ||
using Robust.Shared.Serialization.Manager.Attributes; | ||
using Robust.Shared.Utility; | ||
|
||
namespace Content.Client.Chemistry.Visualizers | ||
{ | ||
[RegisterComponent] | ||
public sealed partial class SolutionContainerVisualsComponent : Component | ||
{ | ||
[DataField("maxFillLevels")] | ||
[DataField] | ||
public int MaxFillLevels = 0; | ||
[DataField("fillBaseName")] | ||
[DataField] | ||
public string? FillBaseName = null; | ||
[DataField("layer")] | ||
public SolutionContainerLayers FillLayer = SolutionContainerLayers.Fill; | ||
[DataField("baseLayer")] | ||
[DataField] | ||
public SolutionContainerLayers Layer = SolutionContainerLayers.Fill; | ||
[DataField] | ||
public SolutionContainerLayers BaseLayer = SolutionContainerLayers.Base; | ||
[DataField("overlayLayer")] | ||
[DataField] | ||
public SolutionContainerLayers OverlayLayer = SolutionContainerLayers.Overlay; | ||
[DataField("changeColor")] | ||
[DataField] | ||
public bool ChangeColor = true; | ||
[DataField("emptySpriteName")] | ||
[DataField] | ||
public string? EmptySpriteName = null; | ||
[DataField("emptySpriteColor")] | ||
[DataField] | ||
public Color EmptySpriteColor = Color.White; | ||
[DataField("metamorphic")] | ||
[DataField] | ||
public bool Metamorphic = false; | ||
[DataField("metamorphicDefaultSprite")] | ||
[DataField] | ||
public SpriteSpecifier? MetamorphicDefaultSprite; | ||
[DataField("metamorphicNameFull")] | ||
public string MetamorphicNameFull = "transformable-container-component-glass"; | ||
[DataField] | ||
public LocId MetamorphicNameFull = "transformable-container-component-glass"; | ||
|
||
/// <summary> | ||
/// Which solution of the SolutionContainerManagerComponent to represent. | ||
/// If not set, will work as default. | ||
/// </summary> | ||
[DataField("solutionName")] | ||
[DataField] | ||
public string? SolutionName; | ||
|
||
[DataField("initialName")] | ||
[DataField] | ||
public string InitialName = string.Empty; | ||
|
||
[DataField("initialDescription")] | ||
[DataField] | ||
public string InitialDescription = string.Empty; | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using Content.Shared.Ghost; | ||
using Robust.Client.GameObjects; | ||
using Robust.Shared.Console; | ||
|
||
namespace Content.Client.Ghost; | ||
|
||
public sealed class GhostToggleSelfVisibility : IConsoleCommand | ||
{ | ||
public string Command => "toggleselfghost"; | ||
public string Description => "Toggles seeing your own ghost."; | ||
public string Help => "toggleselfghost"; | ||
public void Execute(IConsoleShell shell, string argStr, string[] args) | ||
{ | ||
var attachedEntity = shell.Player?.AttachedEntity; | ||
if (!attachedEntity.HasValue) | ||
return; | ||
|
||
var entityManager = IoCManager.Resolve<IEntityManager>(); | ||
if (!entityManager.HasComponent<GhostComponent>(attachedEntity)) | ||
{ | ||
shell.WriteError("Entity must be a ghost."); | ||
return; | ||
} | ||
|
||
if (!entityManager.TryGetComponent(attachedEntity, out SpriteComponent? spriteComponent)) | ||
return; | ||
|
||
spriteComponent.Visible = !spriteComponent.Visible; | ||
} | ||
} |
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
2 changes: 1 addition & 1 deletion
2
Content.Client/DragDrop/DragDropHelper.cs → Content.Client/Interaction/DragDropHelper.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
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 was deleted.
Oops, something went wrong.
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
Oops, something went wrong.