aboutsummaryrefslogtreecommitdiff
path: root/advtrains
diff options
context:
space:
mode:
authorerstazi <erstazi@c-wd.net>2024-08-15 08:08:19 -0400
committerorwell <orwell@bleipb.de>2024-09-02 22:19:48 +0200
commit0c7e0f322b3f52f3a5f5071cd4c93c8aa7be893a (patch)
treea31a7553415a334843806a5e7ed3d3d85c58da90 /advtrains
parent46fbf89acfe3d182bf497bfa622cd4876d53d7da (diff)
downloadadvtrains-0c7e0f322b3f52f3a5f5071cd4c93c8aa7be893a.tar.gz
advtrains-0c7e0f322b3f52f3a5f5071cd4c93c8aa7be893a.tar.bz2
advtrains-0c7e0f322b3f52f3a5f5071cd4c93c8aa7be893a.zip
Move the Train ID information to a textarea[] without a name attribute so it remains transparent and the player can copy the Train ID.
Diffstat (limited to 'advtrains')
-rw-r--r--advtrains/wagons.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/advtrains/wagons.lua b/advtrains/wagons.lua
index 73200a3..14bb58a 100644
--- a/advtrains/wagons.lua
+++ b/advtrains/wagons.lua
@@ -971,7 +971,8 @@ 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 | "..attrans("Train ID")..": "..(minetest.formspec_escape(train.id or "")).."]"
+ local form = "size[11,9]label[0.5,0;AdvTrains Boardcom v0.1]"
+ form=form.."textarea[7.5,0.05;10,1;;"..attrans("Train ID")..": "..(minetest.formspec_escape(train.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 "")).."]"