diff --git a/scripts/gameplay/crit_line.lua b/scripts/gameplay/crit_line.lua index 53863bb..1cb00cf 100644 --- a/scripts/gameplay/crit_line.lua +++ b/scripts/gameplay/crit_line.lua @@ -20,6 +20,7 @@ local cursorGlowTopImages = { local cursorGlowWhite = gfx.CreateSkinImage("gameplay/crit_line/cursor_glow_white.png", 0); local cursorGlowColor = gfx.CreateSkinImage("gameplay/crit_line/cursor_glow_color.png", 0); +local cursorTailColor = gfx.CreateSkinImage("gameplay/crit_line/cursor_tail_color.png", 0) local cursorTailImages = { gfx.CreateSkinImage("gameplay/crit_line/cursor_tail_l.png", 0), gfx.CreateSkinImage("gameplay/crit_line/cursor_tail_r.png", 0), @@ -40,6 +41,7 @@ local drawCursors = function (scale, cursors, laserActive) for i = 0, 1, 1 do local luaIndex = i + 1 local cursor = cursors[i]; + local r, g, b = game.GetLaserColor(i); gfx.Save(); gfx.BeginPath(); @@ -51,23 +53,20 @@ local drawCursors = function (scale, cursors, laserActive) local cursorX = cursorPos - cursorW / 2; local cursorY = -cursorH / 2; - if laserActive[luaIndex] then - gfx.ImageRect( - cursorPos - tailW / 2, - - tailH / 2, - tailW, - tailH, - cursorTailImages[luaIndex], - cursor.alpha / 2, - 0 - ) - end + gfx.SetImageTint(r, g, b); + gfx.ImageRect( + cursorPos - tailW / 2, + - tailH / 2, + tailW, + tailH, + cursorTailColor, + cursor.alpha / 2, + 0 + ) local glowAlpha = cursor.alpha; if (i == 1) then glowAlpha = glowAlpha * 0.7; end - local r, g, b = game.GetLaserColor(i); - gfx.ImageRect( cursorX, cursorY, diff --git a/textures/gameplay/crit_line/cursor_tail_color.png b/textures/gameplay/crit_line/cursor_tail_color.png new file mode 100644 index 0000000..2572673 Binary files /dev/null and b/textures/gameplay/crit_line/cursor_tail_color.png differ