aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorY. Wang <yw05@forksworld.de>2023-01-07 14:17:17 +0100
committerY. Wang <yw05@forksworld.de>2023-03-23 20:06:03 +0100
commite61fe3176a2ef9c41a3fe16a3ffd58bd03fd96a6 (patch)
tree7cf49da3dac1eeb80ffbb506e8b1fb82a4668cb9
parentd443d8e07af89665a6bb3d87af91f43f08a6c47e (diff)
downloadadvtrains-e61fe3176a2ef9c41a3fe16a3ffd58bd03fd96a6.tar.gz
advtrains-e61fe3176a2ef9c41a3fe16a3ffd58bd03fd96a6.tar.bz2
advtrains-e61fe3176a2ef9c41a3fe16a3ffd58bd03fd96a6.zip
Show IP form for repeater signals
-rw-r--r--advtrains_interlocking/signal_aspect_ui.lua10
1 files changed, 9 insertions, 1 deletions
diff --git a/advtrains_interlocking/signal_aspect_ui.lua b/advtrains_interlocking/signal_aspect_ui.lua
index ddab793..186d2fe 100644
--- a/advtrains_interlocking/signal_aspect_ui.lua
+++ b/advtrains_interlocking/signal_aspect_ui.lua
@@ -199,12 +199,20 @@ function advtrains.interlocking.show_signal_aspect_selector(pname, p_suppasp, p_
info = {},
}
local purpose = p_purpose or ""
+ local pos
if type(p_purpose) == "table" then
- purpose = {pname = pname, pos = p_purpose}
+ pos = p_purpose
+ purpose = {pname = pname, pos = pos}
end
local form
if suppasp.type == 2 then
+ if suppasp.dst_shift then
+ if pos then
+ advtrains.interlocking.show_ip_form(pos, pname)
+ end
+ return
+ end
form = make_signal_aspect_selector_t2(suppasp, purpose, isasp)
else
form = make_signal_aspect_selector_t1(suppasp, purpose, isasp)