aboutsummaryrefslogtreecommitdiff
path: root/advtrains/api_doc.txt
diff options
context:
space:
mode:
authorywang <yw05@forksworld.de>2021-08-05 11:49:17 +0200
committerywang <yw05@forksworld.de>2021-08-05 11:49:17 +0200
commite5fd5b08f9f422cb61496b48b3352c7494c4d316 (patch)
treeb67cab91fd71173dc14df117ae9700156d5d91aa /advtrains/api_doc.txt
parent0cd678b21784653e61110d63a3798ce6f726461c (diff)
downloadadvtrains-e5fd5b08f9f422cb61496b48b3352c7494c4d316.tar.gz
advtrains-e5fd5b08f9f422cb61496b48b3352c7494c4d316.tar.bz2
advtrains-e5fd5b08f9f422cb61496b48b3352c7494c4d316.zip
Add option to exclude inside display from the text HUD
Diffstat (limited to 'advtrains/api_doc.txt')
-rw-r--r--advtrains/api_doc.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/advtrains/api_doc.txt b/advtrains/api_doc.txt
index d3e7ca9..ef625db 100644
--- a/advtrains/api_doc.txt
+++ b/advtrains/api_doc.txt
@@ -111,6 +111,8 @@ advtrains.register_wagon(name, prototype, description, inventory_image)
graphical_hud = function(train, flip) end
^- optional: Graphical HUD to show to the driver.
The HUD formats defined by advtrains are used by default.
+ hud_without_text_inside = false
+ ^- optional: whether the inside display should be excluded from the text HUD
custom_on_step = function(self, dtime) end
^- optional: Execute custom code on every step
@@ -146,7 +148,7 @@ If you can't enter or leave a train because the doors are closed, holding the Sn
# Train HUD
The text_hud and graphical_hud fields of the wagons allow you to specify the look of your driver HUDs.
-* The text_hud function should return a string that will be shown to the driver. This should usually include the inside display as well
+* The text_hud function should return a string that will be shown to the driver. Usually this should not include the inside display.
* The graphical_hud function should return a texture string and the height of the texture. This is used to allow proper positioning of the text HUD.
There are currently a few pre-defined elements that can help create the graphical HUD. These functions are in the advtrains.hud table: