diff --git a/scripts/gameplay/crit_line.lua b/scripts/gameplay/crit_line.lua index 7408dd9..6886e2b 100644 --- a/scripts/gameplay/crit_line.lua +++ b/scripts/gameplay/crit_line.lua @@ -1,5 +1,6 @@ local baseImage = gfx.CreateSkinImage("gameplay/crit_line/base.png", 0) +local baseImageLandscape = gfx.CreateSkinImage("gameplay/crit_line/base_landscape.png", 0) local textImage = gfx.CreateSkinImage("gameplay/crit_line/text.png", 0) local cursorImage = gfx.CreateSkinImage("gameplay/crit_line/cursor.png", 0); @@ -106,15 +107,11 @@ local renderBase = function (deltaTime, centerX, centerY, rotation, cursors) gfx.Fill() gfx.BeginPath(); - gfx.ImageRect( - -CRITBAR_W/2, - -CRITBAR_H/2, - CRITBAR_W, - CRITBAR_H, - baseImage, - 1, - 0 - ); + if (isLandscape) then + gfx.ImageRect(-CRITBAR_W/2, -CRITBAR_H/2, CRITBAR_W, CRITBAR_H, baseImageLandscape, 1, 0); + else + gfx.ImageRect(-CRITBAR_W/2, -CRITBAR_H/2, CRITBAR_W, CRITBAR_H, baseImage, 1, 0); + end drawCursors(centerX, centerY, cursors) diff --git a/textures/gameplay/crit_line/base_landscape.png b/textures/gameplay/crit_line/base_landscape.png new file mode 100644 index 0000000..c1cec52 Binary files /dev/null and b/textures/gameplay/crit_line/base_landscape.png differ