New Sprites for cables (#34955)

* initial textures

* Makes it have layers because Milon wanted it

* Makes it have layers because Milon wanted it

* in do NOT understand github

* tested, works

* Update Content.Client/Power/Visualizers/CableVisualizerComponent.cs

Co-authored-by: lzk <124214523+lzk228@users.noreply.github.com>

* Update Content.Client/Power/Visualizers/CableVisualizerComponent.cs

Co-authored-by: lzk <124214523+lzk228@users.noreply.github.com>

* remove extra newline

* EmoGarbage Review - Adjust MV cables to use orange stripes

---------

Co-authored-by: lzk <124214523+lzk228@users.noreply.github.com>
Co-authored-by: Milon <milonpl.git@proton.me>
Co-authored-by: EmoGarbage404 <retron404@gmail.com>
This commit is contained in:
Linkbro
2025-04-16 21:26:25 +01:00
committed by GitHub
parent 89526cfa01
commit 0d70d6bfdf
46 changed files with 75 additions and 4 deletions

View File

@@ -3,6 +3,9 @@ namespace Content.Client.Power.Visualizers;
[RegisterComponent] [RegisterComponent]
public sealed partial class CableVisualizerComponent : Component public sealed partial class CableVisualizerComponent : Component
{ {
[DataField("statePrefix")] [DataField]
public string? StatePrefix; public string? StatePrefix;
[DataField]
public string? ExtraLayerPrefix;
} }

View File

@@ -31,5 +31,7 @@ public sealed class CableVisualizerSystem : EntitySystem
mask = WireVisDirFlags.None; mask = WireVisDirFlags.None;
args.Sprite.LayerSetState(0, $"{component.StatePrefix}{(int) mask}"); args.Sprite.LayerSetState(0, $"{component.StatePrefix}{(int) mask}");
if (component.ExtraLayerPrefix != null)
args.Sprite.LayerSetState(1, $"{component.ExtraLayerPrefix}{(int) mask}");
} }
} }

View File

@@ -115,11 +115,12 @@
description: A medium voltage power cable. description: A medium voltage power cable.
components: components:
- type: Sprite - type: Sprite
color: Yellow
sprite: Structures/Power/Cables/mv_cable.rsi sprite: Structures/Power/Cables/mv_cable.rsi
state: mvcable_0 layers:
- state: mvcable_0
color: Yellow
- state: mvstripes_0
- type: Icon - type: Icon
color: Yellow
sprite: Structures/Power/Cables/mv_cable.rsi sprite: Structures/Power/Cables/mv_cable.rsi
state: mvcable_4 state: mvcable_4
- type: NodeContainer - type: NodeContainer
@@ -151,6 +152,7 @@
acts: [ "Destruction" ] acts: [ "Destruction" ]
- type: CableVisualizer - type: CableVisualizer
statePrefix: mvcable_ statePrefix: mvcable_
extraLayerPrefix: mvstripes_
- type: entity - type: entity
id: CableMVUncuttable id: CableMVUncuttable

Binary file not shown.

Before

Width:  |  Height:  |  Size: 201 B

After

Width:  |  Height:  |  Size: 394 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 270 B

After

Width:  |  Height:  |  Size: 489 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 373 B

After

Width:  |  Height:  |  Size: 723 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 201 B

After

Width:  |  Height:  |  Size: 273 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 270 B

After

Width:  |  Height:  |  Size: 364 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 356 B

After

Width:  |  Height:  |  Size: 524 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 171 B

After

Width:  |  Height:  |  Size: 182 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 279 B

After

Width:  |  Height:  |  Size: 258 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 280 B

After

Width:  |  Height:  |  Size: 270 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 301 B

After

Width:  |  Height:  |  Size: 258 B

View File

@@ -70,6 +70,70 @@
{ {
"name": "mvcable_15" "name": "mvcable_15"
},
{
"name": "mvstripes_0"
},
{
"name": "mvstripes_1"
},
{
"name": "mvstripes_2"
},
{
"name": "mvstripes_3"
},
{
"name": "mvstripes_4"
},
{
"name": "mvstripes_5"
},
{
"name": "mvstripes_6"
},
{
"name": "mvstripes_7"
},
{
"name": "mvstripes_8"
},
{
"name": "mvstripes_9"
},
{
"name": "mvstripes_10"
},
{
"name": "mvstripes_11"
},
{
"name": "mvstripes_12"
},
{
"name": "mvstripes_13"
},
{
"name": "mvstripes_14"
},
{
"name": "mvstripes_15"
} }
] ]
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 156 B

After

Width:  |  Height:  |  Size: 154 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 186 B

After

Width:  |  Height:  |  Size: 154 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 222 B

After

Width:  |  Height:  |  Size: 184 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 243 B

After

Width:  |  Height:  |  Size: 223 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 95 B

After

Width:  |  Height:  |  Size: 115 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 240 B

After

Width:  |  Height:  |  Size: 207 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 238 B

After

Width:  |  Height:  |  Size: 207 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 261 B

After

Width:  |  Height:  |  Size: 263 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 192 B

After

Width:  |  Height:  |  Size: 160 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 114 B

After

Width:  |  Height:  |  Size: 127 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 175 B

After

Width:  |  Height:  |  Size: 138 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 222 B

After

Width:  |  Height:  |  Size: 178 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 208 B

After

Width:  |  Height:  |  Size: 176 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 245 B

After

Width:  |  Height:  |  Size: 220 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 181 B

After

Width:  |  Height:  |  Size: 143 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 210 B

After

Width:  |  Height:  |  Size: 175 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 205 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 125 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 136 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 129 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 182 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 208 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 160 B