Use absolute positioning from the bottom of the screen

This commit is contained in:
ywang 2021-01-09 22:53:05 +01:00
parent b4c8de8695
commit 371b5ac503
1 changed files with 5 additions and 5 deletions

View File

@ -104,10 +104,10 @@ function advtrains.set_trainhud(name, text, driver)
local driverhud = { local driverhud = {
hud_elem_type = "image", hud_elem_type = "image",
name = "ADVTRAINS_DRIVER", name = "ADVTRAINS_DRIVER",
position = {x=0.5, y=0.7}, position = {x=0.5, y=1},
offset = {x=0,y=5}, offset = {x=0,y=-170},
text = driver or "", text = driver or "",
alignment = {x=0,y=1}, alignment = {x=0,y=-1},
scale = {x=1,y=1},} scale = {x=1,y=1},}
if not hud then if not hud then
hud = {["driver"]={}} hud = {["driver"]={}}
@ -116,8 +116,8 @@ function advtrains.set_trainhud(name, text, driver)
hud_elem_type = "text", hud_elem_type = "text",
name = "ADVTRAINS", name = "ADVTRAINS",
number = 0xFFFFFF, number = 0xFFFFFF,
position = {x=0.5, y=0.7}, position = {x=0.5, y=1},
offset = {x=0, y=-5}, offset = {x=0, y=-300},
text = text, text = text,
scale = {x=200, y=60}, scale = {x=200, y=60},
alignment = {x=0, y=-1}, alignment = {x=0, y=-1},