Change "Now playing" text appearance
This commit is contained in:
parent
f8ffe6e960
commit
64f05b64ba
|
@ -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 New Issue
Block a user