summaryrefslogtreecommitdiff
path: root/dispatcherfw.lua
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2024-04-20 12:22:42 -0500
committercheapie <no-email-for-you@example.com>2024-04-20 12:22:42 -0500
commitcca9176c15fe3316495742e52d5f01f1c1b08d4e (patch)
treeb9ddce9ea9a4c38099ad02749577ac3e82c038f6 /dispatcherfw.lua
parent77c32763509853e9b616bea162aaa904e27e304f (diff)
downloadcelevator-cca9176c15fe3316495742e52d5f01f1c1b08d4e.tar
celevator-cca9176c15fe3316495742e52d5f01f1c1b08d4e.tar.gz
celevator-cca9176c15fe3316495742e52d5f01f1c1b08d4e.tar.bz2
celevator-cca9176c15fe3316495742e52d5f01f1c1b08d4e.tar.xz
celevator-cca9176c15fe3316495742e52d5f01f1c1b08d4e.zip
Improve door operation in unloaded mapblocks
Diffstat (limited to 'dispatcherfw.lua')
-rw-r--r--dispatcherfw.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/dispatcherfw.lua b/dispatcherfw.lua
index 528adc7..4e98d47 100644
--- a/dispatcherfw.lua
+++ b/dispatcherfw.lua
@@ -452,6 +452,11 @@ elseif event.type == "ui" then
end
end
end
+ if fields.scrollup and (mem.screenpage-1)*10+1 < #mem.params.floornames then
+ mem.screenpage = mem.screenpage + 1
+ elseif fields.scrolldown and mem.screenpage > 1 then
+ mem.screenpage = mem.screenpage - 1
+ end
end
elseif event.iid == "connecttimeout" then
if mem.screenstate == "oobe_connecting" then
@@ -856,6 +861,12 @@ elseif mem.screenstate == "status" then
end
end
end
+ if lowestfloor > 1 then
+ fs("image_button[6,0.5;0.75,0.75;celevator_menu_arrow.png^\\[transformFY;scrolldown;;false;false;celevator_menu_arrow.png^\\[transformFY]")
+ end
+ if lowestfloor+9 < #mem.params.floornames then
+ fs("image_button[5,0.5;0.75,0.75;celevator_menu_arrow.png;scrollup;;false;false;celevator_menu_arrow.png]")
+ end
end
mem.infotext = string.format("ID: %d",mem.carid)