aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhlqkj <kris88hl@gmail.com>2021-03-09 10:03:40 +0100
committerorwell96 <orwell@bleipb.de>2021-03-22 11:06:18 +0100
commit5f2e40a08fa298934972be1b425e27a207f324a1 (patch)
treeabdb9ccd7212e13191874fe0b0e2465a76189239
parent07b1231f751db12a284dc28ec6a525ebdf0bb142 (diff)
downloadadvtrains-5f2e40a08fa298934972be1b425e27a207f324a1.tar.gz
advtrains-5f2e40a08fa298934972be1b425e27a207f324a1.tar.bz2
advtrains-5f2e40a08fa298934972be1b425e27a207f324a1.zip
Use mono font to ATC rail command fields
-rw-r--r--advtrains/atc.lua10
1 files changed, 7 insertions, 3 deletions
diff --git a/advtrains/atc.lua b/advtrains/atc.lua
index 4f8b937..64cdcec 100644
--- a/advtrains/atc.lua
+++ b/advtrains/atc.lua
@@ -174,12 +174,16 @@ function atc.get_atc_controller_formspec(pos, meta)
local formspec="size[8,6]"
-- "dropdown[0,0;3;mode;static,mesecon,digiline;"..mode.."]"
if mode<3 then
- formspec=formspec.."field[0.5,1.5;7,1;command;"..attrans("Command")..";"..minetest.formspec_escape(command).."]"
+ formspec=formspec
+ .."style[command;font=mono]"
+ .."field[0.8,1.5;7,1;command;"..attrans("Command")..";"..minetest.formspec_escape(command).."]"
if tonumber(mode)==2 then
- formspec=formspec.."field[0.5,3;7,1;command_on;"..attrans("Command (on)")..";"..minetest.formspec_escape(command_on).."]"
+ formspec=formspec
+ .."style[command_on;font=mono]"
+ .."field[0.8,3;7,1;command_on;"..attrans("Command (on)")..";"..minetest.formspec_escape(command_on).."]"
end
else
- formspec=formspec.."field[0.5,1.5;7,1;channel;"..attrans("Digiline channel")..";"..minetest.formspec_escape(channel).."]"
+ formspec=formspec.."field[0.8,1.5;7,1;channel;"..attrans("Digiline channel")..";"..minetest.formspec_escape(channel).."]"
end
return formspec.."button_exit[0.5,4.5;7,1;save;"..attrans("Save").."]"
end