aboutsummaryrefslogtreecommitdiff
path: root/advtrains/wagons.lua
diff options
context:
space:
mode:
authorerstazi <erstazi@c-wd.net>2024-08-08 17:40:43 -0400
committergpcf <gpcf@gpcf.eu>2024-08-08 23:42:07 +0200
commit3526fc2e4afbc0b33269d061ff676dd8613f11a8 (patch)
tree3b902911d1cc119bfb836be09a49f892af46c30d /advtrains/wagons.lua
parent2458e986e82c7d770b25ccad5550bad5dbdee812 (diff)
downloadadvtrains-3526fc2e4afbc0b33269d061ff676dd8613f11a8.tar.gz
advtrains-3526fc2e4afbc0b33269d061ff676dd8613f11a8.tar.bz2
advtrains-3526fc2e4afbc0b33269d061ff676dd8613f11a8.zip
Adding Train ID to Onboard Computer formspec so we know what the Train ID is without LuaATC
Diffstat (limited to 'advtrains/wagons.lua')
-rw-r--r--advtrains/wagons.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/advtrains/wagons.lua b/advtrains/wagons.lua
index 62e65af..730c623 100644
--- a/advtrains/wagons.lua
+++ b/advtrains/wagons.lua
@@ -970,7 +970,7 @@ function wagon:show_bordcom(pname)
local data = advtrains.wagons[self.id]
local linhei
- local form = "size[11,9]label[0.5,0;AdvTrains Boardcom v0.1]"
+ local form = "size[11,9]label[0.5,0;AdvTrains Boardcom v0.1 | "..attrans("Train ID")..": "..(minetest.formspec_escape(self.id or "")).."]"
form=form.."textarea[0.5,1.5;7,1;text_outside;"..attrans("Text displayed outside on train")..";"..(minetest.formspec_escape(train.text_outside or "")).."]"
form=form.."textarea[0.5,3;7,1;text_inside;"..attrans("Text displayed inside train")..";"..(minetest.formspec_escape(train.text_inside or "")).."]"
form=form.."field[7.5,1.75;3,1;line;"..attrans("Line")..";"..(minetest.formspec_escape(train.line or "")).."]"
@@ -1487,4 +1487,4 @@ function advtrains.get_wagon_at_index(train_id, w_index)
end
-- nothing found, dist must be further back
return nil
-end \ No newline at end of file
+end