working on train management
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -4,7 +4,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>de.srsoftware</groupId>
|
<groupId>de.srsoftware</groupId>
|
||||||
<artifactId>web4rail</artifactId>
|
<artifactId>web4rail</artifactId>
|
||||||
<version>0.3.7</version>
|
<version>0.3.8</version>
|
||||||
<name>Web4Rail</name>
|
<name>Web4Rail</name>
|
||||||
<description>Java Model Railway Control</description>
|
<description>Java Model Railway Control</description>
|
||||||
<url>https://github.com/StephanRichter/Web4Rail</url>
|
<url>https://github.com/StephanRichter/Web4Rail</url>
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ svg circle{
|
|||||||
bottom: 10px;
|
bottom: 10px;
|
||||||
left: 10px;
|
left: 10px;
|
||||||
right: 10px;
|
right: 10px;
|
||||||
background: yellow;
|
background: #ecffa2;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
overflow: scroll;
|
overflow: scroll;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -252,15 +252,20 @@ public class Train {
|
|||||||
for (Locomotive loco : this.locos) new Tag("li").content(loco.name()).addTo(l2);
|
for (Locomotive loco : this.locos) new Tag("li").content(loco.name()).addTo(l2);
|
||||||
l2.addTo(locos).addTo(list);
|
l2.addTo(locos).addTo(list);
|
||||||
|
|
||||||
new Tag("li").content(t("Current location: {}",block)).addTo(list);
|
if (block != null) {
|
||||||
new Tag("li").content(t("Direction: heading {}",direction)).addTo(list);
|
new Tag("li").content(t("Current location: {}",block)).addTo(list);
|
||||||
|
Tag actions = new Tag("li").clazz().content(t("Actions: "));
|
||||||
new Tag("li").clazz("link").attr("onclick","train("+id+",'"+MODE_START+"')").content(t("start")).addTo(list);
|
new Tag("span").clazz("link").attr("onclick","train("+id+",'"+MODE_START+"')").content(" "+t("start")+" ").addTo(actions);
|
||||||
if (autopilot == null) {
|
if (autopilot == null) {
|
||||||
new Tag("li").clazz("link").attr("onclick","train("+id+",'"+MODE_AUTO+"')").content(t("auto")).addTo(list);
|
new Tag("span").attr("onclick","train("+id+",'"+MODE_AUTO+"')").content(" "+t("auto")+" ").addTo(actions);
|
||||||
} else {
|
} else {
|
||||||
new Tag("li").clazz("link").attr("onclick","train("+id+",'"+MODE_STOP+"')").content(t("stop")).addTo(list);
|
new Tag("span").clazz("link").attr("onclick","train("+id+",'"+MODE_STOP+"')").content(" "+t("stop")+" ").addTo(actions);
|
||||||
|
}
|
||||||
|
actions.addTo(list);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
if (direction != null) new Tag("li").content(t("Direction: heading {}",direction)).addTo(list);
|
||||||
|
|
||||||
|
|
||||||
list.addTo(window);
|
list.addTo(window);
|
||||||
return window;
|
return window;
|
||||||
|
|||||||
72004
src/socket,sys,os
72004
src/socket,sys,os
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user