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>
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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:
|
||||||
- type: Icon
|
- state: mvcable_0
|
||||||
color: Yellow
|
color: Yellow
|
||||||
|
- state: mvstripes_0
|
||||||
|
- type: Icon
|
||||||
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
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 201 B After Width: | Height: | Size: 394 B |
|
Before Width: | Height: | Size: 270 B After Width: | Height: | Size: 489 B |
|
Before Width: | Height: | Size: 373 B After Width: | Height: | Size: 723 B |
|
Before Width: | Height: | Size: 201 B After Width: | Height: | Size: 273 B |
|
Before Width: | Height: | Size: 270 B After Width: | Height: | Size: 364 B |
|
Before Width: | Height: | Size: 356 B After Width: | Height: | Size: 524 B |
|
Before Width: | Height: | Size: 171 B After Width: | Height: | Size: 182 B |
|
Before Width: | Height: | Size: 279 B After Width: | Height: | Size: 258 B |
|
Before Width: | Height: | Size: 280 B After Width: | Height: | Size: 270 B |
|
Before Width: | Height: | Size: 301 B After Width: | Height: | Size: 258 B |
@@ -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"
|
||||||
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 156 B After Width: | Height: | Size: 154 B |
|
Before Width: | Height: | Size: 186 B After Width: | Height: | Size: 154 B |
|
Before Width: | Height: | Size: 222 B After Width: | Height: | Size: 184 B |
|
Before Width: | Height: | Size: 243 B After Width: | Height: | Size: 223 B |
|
Before Width: | Height: | Size: 95 B After Width: | Height: | Size: 115 B |
|
Before Width: | Height: | Size: 240 B After Width: | Height: | Size: 207 B |
|
Before Width: | Height: | Size: 238 B After Width: | Height: | Size: 207 B |
|
Before Width: | Height: | Size: 261 B After Width: | Height: | Size: 263 B |
|
Before Width: | Height: | Size: 192 B After Width: | Height: | Size: 160 B |
|
Before Width: | Height: | Size: 114 B After Width: | Height: | Size: 127 B |
|
Before Width: | Height: | Size: 175 B After Width: | Height: | Size: 138 B |
|
Before Width: | Height: | Size: 222 B After Width: | Height: | Size: 178 B |
|
Before Width: | Height: | Size: 208 B After Width: | Height: | Size: 176 B |
|
Before Width: | Height: | Size: 245 B After Width: | Height: | Size: 220 B |
|
Before Width: | Height: | Size: 181 B After Width: | Height: | Size: 143 B |
|
Before Width: | Height: | Size: 210 B After Width: | Height: | Size: 175 B |
|
After Width: | Height: | Size: 96 B |
|
After Width: | Height: | Size: 137 B |
|
After Width: | Height: | Size: 180 B |
|
After Width: | Height: | Size: 205 B |
|
After Width: | Height: | Size: 125 B |
|
After Width: | Height: | Size: 192 B |
|
After Width: | Height: | Size: 207 B |
|
After Width: | Height: | Size: 246 B |
|
After Width: | Height: | Size: 136 B |
|
After Width: | Height: | Size: 154 B |
|
After Width: | Height: | Size: 129 B |
|
After Width: | Height: | Size: 171 B |
|
After Width: | Height: | Size: 182 B |
|
After Width: | Height: | Size: 208 B |
|
After Width: | Height: | Size: 130 B |
|
After Width: | Height: | Size: 160 B |