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-11-10 16:26:25 +0100
commitf61f5a40a3558a3ab308b1f58737b35c90630a3b (patch)
treecea82b1fc94bb1ce365cfc6d479f5375b012f285 /advtrains/api_doc.txt
parent474bfac6035e549ac4a172193a545e1e2e3eaee2 (diff)
downloadadvtrains-f61f5a40a3558a3ab308b1f58737b35c90630a3b.tar.gz
advtrains-f61f5a40a3558a3ab308b1f58737b35c90630a3b.tar.bz2
advtrains-f61f5a40a3558a3ab308b1f58737b35c90630a3b.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 30a0358..7da53c6 100644
--- a/advtrains/api_doc.txt
+++ b/advtrains/api_doc.txt
@@ -118,6 +118,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
@@ -153,7 +155,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: