mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-19 01:21:05 +01:00
Change "Now playing" text appearance
This commit is contained in:
parent
f8ffe6e960
commit
64f05b64ba
1 changed files with 2 additions and 4 deletions
|
@ -26,9 +26,7 @@ end
|
||||||
|
|
||||||
local function now_playing(player, track_id)
|
local function now_playing(player, track_id)
|
||||||
local hud = active_huds[player:get_player_name()]
|
local hud = active_huds[player:get_player_name()]
|
||||||
local text =
|
local text = "Now playing: " .. recorddata[track_id][2] .. "—" .. recorddata[track_id][1]
|
||||||
recorddata[track_id][1].."\n"..
|
|
||||||
recorddata[track_id][2]
|
|
||||||
|
|
||||||
if hud ~= nil then
|
if hud ~= nil then
|
||||||
player:hud_change(active_huds[player], "text", text)
|
player:hud_change(active_huds[player], "text", text)
|
||||||
|
@ -38,7 +36,7 @@ local function now_playing(player, track_id)
|
||||||
position = { x=0.5, y=0.8 },
|
position = { x=0.5, y=0.8 },
|
||||||
offset = { x=0, y = 0 },
|
offset = { x=0, y = 0 },
|
||||||
size = { x=100, y=100},
|
size = { x=100, y=100},
|
||||||
number = 0xFFFFFF,
|
number = 0x75FFEA,
|
||||||
text = text,
|
text = text,
|
||||||
})
|
})
|
||||||
active_huds[player:get_player_name()] = id
|
active_huds[player:get_player_name()] = id
|
||||||
|
|
Loading…
Reference in a new issue