We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43ae75f commit 6cb13adCopy full SHA for 6cb13ad
mods/apis/hud_events/init.lua
@@ -47,7 +47,7 @@ local function show_quick_hud_event(player, huddef)
47
hud:add(player, "hud_event_quick", {
48
hud_elem_type = "text",
49
position = {x = 0.5, y = 0.5},
50
- offset = {x = 0, y = 45 + ((huddef.channel or 1) - 1) * 15},
+ offset = {x = 0, y = 20},
51
alignment = {x = "center", y = "down"},
52
text = huddef.text,
53
color = huddef.color,
@@ -78,7 +78,7 @@ local function handle_hud_events(player, channel)
78
hud:add(player, event_name, {
79
80
81
- offset = {x = 0, y = 20 + ((huddef.channel or 1) - 1) * 25},
+ offset = {x = 0, y = 45 + (channel - 1) * 25},
82
83
84
0 commit comments