added switch tile and corresponding condition

This commit is contained in:
Stephan Richter
2021-02-10 13:22:56 +01:00
parent 3cd6df931d
commit 8ffbbf1109
8 changed files with 284 additions and 1 deletions

View File

@@ -406,4 +406,20 @@ svg.Block text{
.plan-file{
color: green;
}
.Switch rect{
fill:none;
}
.Switch.off rect.enabled,
.Switch.on rect.disabled{
display: none;
}
.Switch.off rect.disabled{
fill: red;
}
.Switch.on rect.enabled{
fill: forestgreen;
}

5
resources/svg/Switch.svg Normal file
View File

@@ -0,0 +1,5 @@
<svg width="100" height="100" viewbox="0 0 100 100" class="%state%">
<rect x="5" y="20" width="90" height="60" />
<rect x="45" y="20" width="50" height="60" class="enabled" />
<rect x="5" y="20" width="50" height="60" class="disabled" />
</svg>

After

Width:  |  Height:  |  Size: 247 B

View File

@@ -1,6 +1,9 @@
abort : abbrechen
Accessory : Zubehör
Action : Aktion
Actions : Aktionen
Actions (On) : Aktionen (Ein)
Actions (Off) : Aktionen (Aus)
Actions and contacts : Aktionen und Kontakte
Action type : Aktions-Typ
Actions will only fire, if all conditions are fullfilled. : Aktionen werden nur ausgeführt, wenn alle Bedingungen erfüllt sind.
@@ -164,6 +167,8 @@ Falls aktiviert, wird die Strecke anhand von Zug- und Kachel-Länge hinter dem Z
internal contacts : interne Kontakte
inverted : invertiert
Inverts the direction {} is heading to. : Kehrt die Richtung, in welche {} fährt, um.
{} is off : {} ist Aus
{} is on : {} ist Ein
{} is oriented {} : {} ist {} gerichtet
known cars : bekannte Waggons
known locomotives : bekannte Lokomotiven
@@ -276,6 +281,7 @@ Select from plan : Auf Plan auswählen
Select object : Objekt auswählen
Select relay : Relais auswählen
Select state : Status auswählen
Select switch : Schalter auswählen
Select train : Zug auswählen
Select turnout : Weiche wählen
SendCommand : Kommando senden
@@ -330,6 +336,7 @@ STRAIGHT : gerade
Swap order : Reihenfolge umkehren
Swap order of trains : Reihenfolge der Züge tauschen
SwitchFunction : Funktion schalten
SwitchIsOn : Schalter is an
Switch power off : Strom ausschalten
Switch power on : Strom anschalten
SYSTEM : Betriebssystem