Skip to content

Commit

Permalink
Fix more issues with notefield board customizegameplay affects doubling
Browse files Browse the repository at this point in the history
filter and cbhighlights scale incorrectly when applying mini mods due to checking twice for mini
  • Loading branch information
poco0317 committed Apr 17, 2020
1 parent 3e54cc2 commit de78e55
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Themes/Til Death/Graphics/Notefield board.lua
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ local function laneHighlight()
for i=1,cols do
r[#r+1] = Def.Quad{
InitCommand = function(self)
self:zoomto(getNoteFieldScale(pn) * (arrowWidth - 4) * noteFieldWidth, SCREEN_HEIGHT * 2)
self:zoomto((arrowWidth - 4) * noteFieldWidth, SCREEN_HEIGHT * 2)

local reverse = GAMESTATE:GetPlayerState(pn):GetCurrentPlayerOptions():UsingReverse()
local receptor = reverse and THEME:GetMetric("Player", "ReceptorArrowsYStandard") or THEME:GetMetric("Player", "ReceptorArrowsYReverse")
Expand All @@ -75,7 +75,7 @@ local function laneHighlight()
else
thewidth = noteFieldWidth - 1
end
self:xy((-(arrowWidth * (cols / 2) * getNoteFieldScale(pn)) + ((i - 1) * arrowWidth * getNoteFieldScale(pn)) + (getNoteFieldScale(pn) * arrowWidth / 2)) + (i-(cols/2)-(1/2))*colWidth*(thewidth),-receptor)
self:xy((-(arrowWidth * (cols / 2)) + ((i - 1) * arrowWidth) + (arrowWidth / 2)) + (i-(cols/2)-(1/2))*colWidth*(thewidth),-receptor)
self:fadebottom(0.6):fadetop(0.6)
self:visible(false)
end,
Expand Down Expand Up @@ -133,14 +133,14 @@ t[#t + 1] =
Def.Quad {
Name = "SinglePlayerFilter",
InitCommand = function(self)
self:zoomto(filterWidth * getNoteFieldScale(PLAYER_1) * noteFieldWidth, SCREEN_HEIGHT * 2)
self:zoomto(filterWidth * noteFieldWidth, SCREEN_HEIGHT * 2)
self:diffusecolor(filterColor)
self:diffusealpha(filterAlphas)
filter = self
end,
UpdateCommand = function(self)
noteFieldWidth = MovableValues.NotefieldWidth
self:zoomto(filterWidth * getNoteFieldScale(PLAYER_1) * noteFieldWidth, SCREEN_HEIGHT * 2)
self:zoomto(filterWidth * noteFieldWidth, SCREEN_HEIGHT * 2)
end
}

Expand Down

0 comments on commit de78e55

Please sign in to comment.