aboutsummaryrefslogtreecommitdiff
path: root/advtrains/trainhud.lua
diff options
context:
space:
mode:
authorywang <yw05@forksworld.de>2021-01-09 22:53:05 +0100
committerywang <yw05@forksworld.de>2021-01-19 16:38:20 +0100
commit371b5ac5032d2528913519e0d0d8e129c9ac3118 (patch)
tree74517cf65d69085a5c4edd60dac7ecc2d9f2a9b5 /advtrains/trainhud.lua
parentb4c8de8695a53fc3348dffe93f40683cb6d63fa7 (diff)
downloadadvtrains-371b5ac5032d2528913519e0d0d8e129c9ac3118.tar.gz
advtrains-371b5ac5032d2528913519e0d0d8e129c9ac3118.tar.bz2
advtrains-371b5ac5032d2528913519e0d0d8e129c9ac3118.zip
Use absolute positioning from the bottom of the screen
Diffstat (limited to 'advtrains/trainhud.lua')
-rw-r--r--advtrains/trainhud.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/advtrains/trainhud.lua b/advtrains/trainhud.lua
index 7d0b423..ab08b83 100644
--- a/advtrains/trainhud.lua
+++ b/advtrains/trainhud.lua
@@ -104,10 +104,10 @@ function advtrains.set_trainhud(name, text, driver)
local driverhud = {
hud_elem_type = "image",
name = "ADVTRAINS_DRIVER",
- position = {x=0.5, y=0.7},
- offset = {x=0,y=5},
+ position = {x=0.5, y=1},
+ offset = {x=0,y=-170},
text = driver or "",
- alignment = {x=0,y=1},
+ alignment = {x=0,y=-1},
scale = {x=1,y=1},}
if not hud then
hud = {["driver"]={}}
@@ -116,8 +116,8 @@ function advtrains.set_trainhud(name, text, driver)
hud_elem_type = "text",
name = "ADVTRAINS",
number = 0xFFFFFF,
- position = {x=0.5, y=0.7},
- offset = {x=0, y=-5},
+ position = {x=0.5, y=1},
+ offset = {x=0, y=-300},
text = text,
scale = {x=200, y=60},
alignment = {x=0, y=-1},