Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Content.Client/Lathe/UI/LatheMenu.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,12 @@ public Control GetRecipeDisplayControl(LatheRecipePrototype recipe)
textRect.Texture = _spriteSystem.Frame0(recipe.Icon);
return textRect;
}
else if (recipe.IconPath is { } iconPath) // CorvaxGoob
{
var textRect = new TextureRect();
textRect.Texture = _spriteSystem.Frame0(new SpriteSpecifier.Texture(iconPath));
return textRect;
}

if (recipe.Result is { } result)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
using Content.Client.IconSmoothing;
using Content.Shared._CorvaxGoob.SprayableWall;
using Content.Shared.SprayPainter.Prototypes;
using Robust.Client.GameObjects;
using Robust.Shared.Prototypes;

namespace Content.Client._CorvaxGoob.SprayableWall;

public sealed class SprayableWallVisualizerSystem : VisualizerSystem<SprayableWallComponent>
{
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;
[Dependency] private readonly IComponentFactory _componentFactory = default!;
[Dependency] private readonly IconSmoothSystem _iconSmooth = default!;

protected override void OnAppearanceChange(EntityUid uid,
SprayableWallComponent comp,
ref AppearanceChangeEvent args)
{
if (args.Sprite == null)
return;

if (AppearanceSystem.TryGetData<string>(uid, PaintableVisuals.Prototype, out var prototype, args.Component))
{
if (_prototypeManager.Resolve(prototype, out var proto))
{
if (TryComp<IconSmoothComponent>(uid, out var origSmooth) && proto.TryGetComponent(out IconSmoothComponent? protoSmooth, _componentFactory))
{
origSmooth.StateBase = protoSmooth.StateBase;

var tempUid = Spawn(prototype);
SpriteSystem.CopySprite(tempUid, uid);
QueueDel(tempUid);

_iconSmooth.DirtyNeighbours(uid);
}
}
}
}
}
7 changes: 7 additions & 0 deletions Content.Shared/Research/Prototypes/LatheRecipePrototype.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ public sealed partial class LatheRecipePrototype : IPrototype, IInheritingProtot
[DataField]
public SpriteSpecifier? Icon;

// CorvaxGoob
/// <summary>
/// Альтернативный вариант поля <see cref="Icon"/> для ссылки на прямой путь до файла спрайта.
/// </summary>
[DataField]
public ResPath? IconPath;

[DataField("completetime")]
public TimeSpan CompleteTime = TimeSpan.FromSeconds(5);

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
namespace Content.Shared._CorvaxGoob.SprayableWall;

[RegisterComponent]
public sealed partial class SprayableWallComponent : Component;
27 changes: 27 additions & 0 deletions Content.Shared/_CorvaxGoob/SprayableWall/SprayableWallSystem.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
using Content.Shared.SprayPainter;
using Robust.Shared.Prototypes;
using Robust.Shared.Toolshed.TypeParsers;

namespace Content.Shared._CorvaxGoob.SprayableWall;

public sealed class SprayableWallSystem : EntitySystem
{
[Dependency] private readonly MetaDataSystem _meta = default!;
[Dependency] private readonly IPrototypeManager _proto = default!;

public override void Initialize()
{
base.Initialize();

SubscribeLocalEvent<SprayableWallComponent, EntityPaintedEvent>(OnPainted);
}

private void OnPainted(Entity<SprayableWallComponent> entity, ref EntityPaintedEvent ev)
{
if (!_proto.Resolve(ev.Prototype, out var proto))
return;

_meta.SetEntityName(entity, proto.Name);
_meta.SetEntityDescription(entity, proto.Description);
}
}
2 changes: 2 additions & 0 deletions Resources/Locale/ru-RU/_CorvaxGoob/tiles/tiles.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
tiles-astro-snow-dug = астро-копаный снег

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
tiles-astro-snow-dug = астро-копаный снег
tiles-astro-snow-dug = астро-вскопанный снег

либо

Suggested change
tiles-astro-snow-dug = астро-копаный снег
tiles-astro-snow-dug = астро-рыхлый снег

tiles-astro-chromite = астро-хромит
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,54 @@ spray-painter-style-canisters-healium = Хилиум
spray-painter-style-canisters-bz = Би-зет
spray-painter-style-canisters-oxygen-nitrous-oxide = Кислород с оксидом азота
spray-painter-style-canisters-nitrium = Нитриум
spray-painter-style-canisters-pluoxium = Плюоксий
spray-painter-style-canisters-pluoxium = Плюоксий

# Walls

spray-painter-tab-category-walls = Стены

spray-painter-style-walls-andesitecobblebrick = Булыжник (андесит)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
spray-painter-style-walls-andesitecobblebrick = Булыжник (андесит)
spray-painter-style-walls-andesitecobblebrick = Булыжник (андезит)

spray-painter-style-walls-andesiterock = Камень (андесит)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
spray-painter-style-walls-andesiterock = Камень (андесит)
spray-painter-style-walls-andesiterock = Камень (андезит)

spray-painter-style-walls-asteroidcobblebrick = Булыжник (астероид)
spray-painter-style-walls-basaltrock = Камень (базальт)
spray-painter-style-walls-basaltcobblebrick = Булыжник (базальт)
spray-painter-style-walls-basic = Пластик
spray-painter-style-walls-brick = Кирпич
spray-painter-style-walls-cardboard = Картон
spray-painter-style-walls-chromitecobblebrick = Булыжник (хромит)
spray-painter-style-walls-clock = Часовой
spray-painter-style-walls-clown = Банан
spray-painter-style-walls-cobblebrick = Булыжник
spray-painter-style-walls-diamond = Алмаз
spray-painter-style-walls-gold = Золото
spray-painter-style-walls-ice = Лёд
spray-painter-style-walls-meat = Мясо
spray-painter-style-walls-mining = Шахтёр
spray-painter-style-walls-necropolis = Кости
spray-painter-style-walls-plasma = Плазма
spray-painter-style-walls-plastitanium = Пластитан
spray-painter-style-walls-reinforced = Укреплённое
spray-painter-style-walls-riveted = Клёп

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
spray-painter-style-walls-riveted = Клёп
spray-painter-style-walls-riveted = Клёпаное

spray-painter-style-walls-rock = Камень
spray-painter-style-walls-rockchromite = Камень (хромит)
spray-painter-style-walls-rocksand = Камень (песок)
spray-painter-style-walls-rocksnow = Камень (снег)
spray-painter-style-walls-sandcobblebrick = Булыжник (песок)
spray-painter-style-walls-shuttle = Шаттл
spray-painter-style-walls-silver = Серебро
spray-painter-style-walls-solid = Стандарт
spray-painter-style-walls-solidrust = Стандарт (ржавое)
spray-painter-style-walls-uranium = Уран
spray-painter-style-walls-web = Паутина
spray-painter-style-walls-wood = Дерево

# Diagonal Walls

spray-painter-tab-category-diagonalwalls = Диагональные стены

spray-painter-style-diagonalwalls-solid = Стандарт
spray-painter-style-diagonalwalls-basic = Пластик
spray-painter-style-diagonalwalls-mining = Шахтёр
spray-painter-style-diagonalwalls-reinforced = Укреплённое
spray-painter-style-diagonalwalls-shuttle = Шаттл
spray-painter-style-diagonalwalls-plastitanium = Пластитан
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ent-FloorTileItemAstroSnowDug = астро-копаный снег

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ent-FloorTileItemAstroSnowDug = астро-копаный снег
ent-FloorTileItemAstroSnowDug = астро-вскопанный снег

либо

Suggested change
ent-FloorTileItemAstroSnowDug = астро-копаный снег
ent-FloorTileItemAstroSnowDug = астро-рыхлый снег

.desc = { ent-FloorTileItemBase.desc }
ent-FloorTileItemAstroChromite = астро-хромит
.desc = { ent-FloorTileItemBase.desc }
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ent-WallPlasticDiagonal = пластиковая стена
.desc = { ent-WallShuttleDiagonal.desc }
.suffix = Диагональ
2 changes: 2 additions & 0 deletions Resources/Prototypes/Entities/Structures/Machines/lathe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -880,6 +880,8 @@
- FloorConcreteTilesStatic
- CircuitFloorsStatic
- FloorMarbleTilesStatic
- FloorOther # CorvaxGoob
- FloorShuttle # CorvaxGoob
dynamicPacks:
- FauxTiles
- type: MaterialStorage
Expand Down
4 changes: 4 additions & 0 deletions Resources/Prototypes/Entities/Structures/Walls/walls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,10 @@
- type: IconSmooth
key: walls
base: plastic
- type: Appearance # CorvaxGoob
- type: Paintable # CorvaxGoob
group: Walls
- type: SprayableWall # CorvaxGoob
- type: CosmicCorruptible # DeltaV - Cosmic Cult
convertTo: WallCosmicCult

Expand Down
23 changes: 23 additions & 0 deletions Resources/Prototypes/Recipes/Lathes/Packs/tiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,26 @@
- FloorTileItemWood
- FloorTileItemWoodLarge
- FloorTileItemWoodPattern
# CorvaxGoob-Start
- FloorTileItemWoodLargeRed
- FloorTileItemWoodLargeLight
- FloorTileItemWoodLargeDark
- FloorTileItemWoodLargeBlack
- FloorTileItemWoodRed
- FloorTileItemWoodLight
- FloorTileItemWoodDark
- FloorTileItemWoodBlack
- FloorTileItemWoodParquet
- FloorTileItemWoodParquetRed
- FloorTileItemWoodParquetLight
- FloorTileItemWoodParquetDark
- FloorTileItemWoodParquetBlack
- FloorTileItemWoodChess
- FloorTileItemWoodChessRed
- FloorTileItemWoodChessLight
- FloorTileItemWoodChessDark
- FloorTileItemWoodChessBlack
# CorvaxGoob-End

- type: latheRecipePack
id: FloorConcreteTilesStatic
Expand Down Expand Up @@ -85,6 +105,7 @@
recipes:
- FloorTileItemWhiteMarble
- FloorTileItemDarkMarble
- FloorTileItemUraniumMarble # CorvaxGoob

## Dynamic

Expand All @@ -102,3 +123,5 @@
- FauxTileDesertAstroSand
- FauxTileAstroIronsand
- FauxTileAstroIronsandBorderless
- FauxTileAstroSnowDug # CorvaxGoob
- FauxTileItemAstroChromite # CorvaxGoob
Loading
Loading