Added Warning state for AME (#24699)

added warning state for AME
This commit is contained in:
Sergey Dikiy
2024-02-01 09:40:57 +01:00
committed by GitHub
parent ca54709186
commit f3ff35dcfa
5 changed files with 29 additions and 0 deletions

View File

@@ -263,6 +263,7 @@ public sealed class AmeControllerSystem : EntitySystem
{
< 10 => AmeControllerState.Fuck,
< 50 => AmeControllerState.Critical,
< 80 => AmeControllerState.Warning,
_ => AmeControllerState.On,
};

View File

@@ -69,6 +69,7 @@ public enum AmeControllerVisuals
public enum AmeControllerState
{
On,
Warning,
Critical,
Fuck,
Off,

View File

@@ -67,6 +67,7 @@
display:
Off: { visible: false }
On: { state: control_on, visible: true }
Warning: { state: control_warning, visible: true }
Critical: { state: control_critical, visible: true }
Fuck: { state: control_fuck, visible: true }
- type: NodeContainer

Binary file not shown.

After

Width:  |  Height:  |  Size: 643 B

View File

@@ -89,6 +89,32 @@
},
{
"name": "static"
},
{
"name": "control_warning",
"delays": [
[
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1
]
]
},
{
"name": "control_critical",