From e5fd5b08f9f422cb61496b48b3352c7494c4d316 Mon Sep 17 00:00:00 2001 From: ywang Date: Thu, 5 Aug 2021 11:49:17 +0200 Subject: Add option to exclude inside display from the text HUD --- advtrains/api_doc.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'advtrains/api_doc.txt') 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: -- cgit v1.2.3