Demoanlagen hinzufügen, fixes für Installationsdateien

This commit is contained in:
Nero 2023-07-23 11:11:36 +00:00
parent 9ae65e50a1
commit cd3d5c5962
13 changed files with 67 additions and 11 deletions

File diff suppressed because one or more lines are too long

20
Demos/On_Grundprinzip.lua Normal file
View file

@ -0,0 +1,20 @@
clearlog()
require("kskit\\On")
-- In jedem Zyklus prüfen wir, ob die Lok vor dem Signal steht
Main(function()
if EEPGetSignalTrainsCount(2) > 0 then
-- Wenn dies der Fall ist, schalten wir das Signal auf Fahrt
EEPSetSignal(2, 2, 1)
end
end)
-- Wenn das Signal umgestellt wird, wird die Weiche ebenfalls auf Abzweig gestellt
OnSignal(2, function(Stellung)
print("Signal gestellt auf ", Stellung)
EEPSetSwitch(1, 2, 1)
end)
OnSwitch(1, function(Stellung)
print("Weiche gestellt auf ", Stellung)
end)

BIN
Demos/On_GrundprinzipB.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

BIN
Demos/On_GrundprinzipF.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

BIN
Demos/On_GrundprinzipH.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

BIN
Demos/On_GrundprinzipS.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

BIN
Demos/On_GrundprinzipT.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB