Skip to content

Commit 6cb13ad

Browse files
committed
Misc hud event improvements
1 parent 43ae75f commit 6cb13ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mods/apis/hud_events/init.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ local function show_quick_hud_event(player, huddef)
4747
hud:add(player, "hud_event_quick", {
4848
hud_elem_type = "text",
4949
position = {x = 0.5, y = 0.5},
50-
offset = {x = 0, y = 45 + ((huddef.channel or 1) - 1) * 15},
50+
offset = {x = 0, y = 20},
5151
alignment = {x = "center", y = "down"},
5252
text = huddef.text,
5353
color = huddef.color,
@@ -78,7 +78,7 @@ local function handle_hud_events(player, channel)
7878
hud:add(player, event_name, {
7979
hud_elem_type = "text",
8080
position = {x = 0.5, y = 0.5},
81-
offset = {x = 0, y = 20 + ((huddef.channel or 1) - 1) * 25},
81+
offset = {x = 0, y = 45 + (channel - 1) * 25},
8282
alignment = {x = "center", y = "down"},
8383
text = huddef.text,
8484
color = huddef.color,

0 commit comments

Comments
 (0)