-
Notifications
You must be signed in to change notification settings - Fork 275
Новые плитки, перекраска стен #1091
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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); | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
| 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; |
| 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); | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| tiles-astro-snow-dug = астро-копаный снег | ||
| tiles-astro-chromite = астро-хромит | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -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 = Булыжник (андесит) | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| spray-painter-style-walls-andesiterock = Камень (андесит) | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| 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 = Клёп | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| 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 = астро-копаный снег | ||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
либо
Suggested change
|
||||||||||
| .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 = Диагональ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
либо