forked from space-wizards/space-station-14
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master-ru' of https://gitlab.workbench.network/Workbenc…
…h-Team/space-station-14 into arumoon-server # Conflicts: # Content.Shared/Inventory/InventorySystem.Relay.cs # Resources/Locale/en-US/ss14-ru/prototypes/entities/objects/weapons/guns/rifles/rifles.ftl # Resources/Locale/ru-RU/reagents/meta/toxins.ftl # Resources/Locale/ru-RU/ss14-ru/prototypes/entities/objects/weapons/guns/rifles/rifles.ftl # Resources/Maps/box.yml # Resources/Maps/marathon.yml # Resources/Maps/origin.yml # Resources/Prototypes/Catalog/VendingMachines/Inventories/secdrobe.yml # Resources/Prototypes/Entities/Clothing/Eyes/base_clothingeyes.yml # Resources/Prototypes/Entities/Objects/Weapons/Guns/Rifles/rifles.yml # Resources/Prototypes/GameRules/events.yml # Resources/Prototypes/Reagents/toxins.yml # Resources/Prototypes/Voice/speech_emote_sounds.yml
- Loading branch information
Showing
276 changed files
with
57,252 additions
and
63,906 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,19 @@ | ||
@echo off | ||
chcp 65001 > nul | ||
setlocal | ||
echo Версии сборки: | ||
echo 1 - Debug | ||
echo 2 - Release | ||
:SetBuild | ||
set /p choice="Введите номер требуемой сборки: " | ||
if "%choice%"=="1" ( | ||
echo Сборка Debug версии... | ||
dotnet build -c Debug | ||
)else if "%choice%"=="2" ( | ||
echo Сборка Release версии... | ||
dotnet build -c Release | ||
)else ( | ||
echo Некорректный номер сборки. Пожалуйста, выберите 1 или 2. | ||
goto SetBuild) | ||
endlocal | ||
pause |
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
48 changes: 48 additions & 0 deletions
48
Content.Client/Clothing/FlippableClothingVisualizerSystem.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,48 @@ | ||
using Content.Shared.Clothing; | ||
using Content.Shared.Clothing.Components; | ||
using Content.Shared.Clothing.EntitySystems; | ||
using Content.Shared.Foldable; | ||
using Content.Shared.Item; | ||
using Robust.Client.GameObjects; | ||
|
||
namespace Content.Client.Clothing; | ||
|
||
public sealed class FlippableClothingVisualizerSystem : VisualizerSystem<FlippableClothingVisualsComponent> | ||
{ | ||
[Dependency] private readonly SharedItemSystem _itemSys = default!; | ||
|
||
public override void Initialize() | ||
{ | ||
base.Initialize(); | ||
|
||
SubscribeLocalEvent<FlippableClothingVisualsComponent, GetEquipmentVisualsEvent>(OnGetVisuals, after: [typeof(ClothingSystem)]); | ||
SubscribeLocalEvent<FlippableClothingVisualsComponent, FoldedEvent>(OnFolded); | ||
} | ||
|
||
private void OnFolded(Entity<FlippableClothingVisualsComponent> ent, ref FoldedEvent args) | ||
{ | ||
_itemSys.VisualsChanged(ent); | ||
} | ||
|
||
private void OnGetVisuals(Entity<FlippableClothingVisualsComponent> ent, ref GetEquipmentVisualsEvent args) | ||
{ | ||
if (!TryComp(ent, out SpriteComponent? sprite) || | ||
!TryComp(ent, out ClothingComponent? clothing)) | ||
return; | ||
|
||
if (clothing.MappedLayer == null || | ||
!AppearanceSystem.TryGetData<bool>(ent, FoldableSystem.FoldedVisuals.State, out var folding) || | ||
!sprite.LayerMapTryGet(folding ? ent.Comp.FoldingLayer : ent.Comp.UnfoldingLayer, out var idx)) | ||
return; | ||
|
||
// add each layer to the visuals | ||
var spriteLayer = sprite[idx]; | ||
foreach (var layer in args.Layers) | ||
{ | ||
if (layer.Item1 != clothing.MappedLayer) | ||
continue; | ||
|
||
layer.Item2.Scale = spriteLayer.Scale; | ||
} | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
Content.Client/Clothing/FlippableClothingVisualsComponent.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,16 @@ | ||
namespace Content.Client.Clothing; | ||
|
||
/// <summary> | ||
/// Communicates folded layers data (currently only Scale to handle flipping) | ||
/// to the wearer clothing sprite layer | ||
/// </summary> | ||
[RegisterComponent] | ||
[Access(typeof(FlippableClothingVisualizerSystem))] | ||
public sealed partial class FlippableClothingVisualsComponent : Component | ||
{ | ||
[DataField] | ||
public string FoldingLayer = "foldedLayer"; | ||
|
||
[DataField] | ||
public string UnfoldingLayer = "unfoldedLayer"; | ||
} |
19 changes: 19 additions & 0 deletions
19
Content.Client/Clothing/Systems/PilotedByClothingSystem.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,19 @@ | ||
using Content.Shared.Clothing.Components; | ||
using Robust.Client.Physics; | ||
|
||
namespace Content.Client.Clothing.Systems; | ||
|
||
public sealed partial class PilotedByClothingSystem : EntitySystem | ||
{ | ||
public override void Initialize() | ||
{ | ||
base.Initialize(); | ||
|
||
SubscribeLocalEvent<PilotedByClothingComponent, UpdateIsPredictedEvent>(OnUpdatePredicted); | ||
} | ||
|
||
private void OnUpdatePredicted(Entity<PilotedByClothingComponent> entity, ref UpdateIsPredictedEvent args) | ||
{ | ||
args.BlockPrediction = true; | ||
} | ||
} |
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
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
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
Oops, something went wrong.