Skip to content

Commit 8902910

Browse files
authored
Merge pull request #35 from poco0317/master
Prepare for v2.2.7 release - Compatibility with Etterna 0.72.0
2 parents 5700374 + fa9f69c commit 8902910

File tree

5 files changed

+18
-22
lines changed

5 files changed

+18
-22
lines changed

BGAnimations/ScreenGameplay underlay/default.lua

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
local playeroptions = GAMESTATE:GetPlayerState():GetPlayerOptions("ModsLevel_Preferred")
22
playeroptions:Mini(2 - playerConfig:get_data(pn_to_profile_slot(PLAYER_1)).ReceptorSize / 50)
3-
local profile = PROFILEMAN:GetProfile(PLAYER_1)
4-
local replaystate = GAMESTATE:GetPlayerState():GetPlayerController() == "PlayerController_Replay"
5-
if profile:IsCurrentChartPermamirror() and not replaystate then -- turn on mirror if song is flagged as perma mirror
6-
playeroptions:Mirror(true)
7-
end
83

94
setMovableKeymode(getCurrentKeyMode())
105
setCurExp(PLAYER_1)
116

12-
137
local t = Def.ActorFrame{}
148
t[#t+1] = Def.Quad{
159
InitCommand=function(self)

Graphics/OffsetGraph.lua

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -162,18 +162,21 @@ t[#t+1] = Def.Quad{
162162
bg:x(xpos)
163163
bg:zoomto(txt:GetZoomedWidth() + 4, txt:GetZoomedHeight() + 4)
164164
local row = convertXToRow(xpos)
165-
local judgments = SCREENMAN:GetTopScreen():GetReplaySnapshotJudgmentsForNoterow(row)
166-
local wifescore = SCREENMAN:GetTopScreen():GetReplaySnapshotWifePercentForNoterow(row) * 100
167-
local mean = SCREENMAN:GetTopScreen():GetReplaySnapshotMeanForNoterow(row)
168-
local sd = SCREENMAN:GetTopScreen():GetReplaySnapshotSDForNoterow(row)
165+
local replay = REPLAYS:GetActiveReplay()
166+
local snapshot = replay:GetReplaySnapshotForNoterow(row)
167+
168+
local judgments = snapshot:GetJudgments()
169+
local wifescore = snapshot:GetWifePercent() * 100
170+
local mean = snapshot:GetMean()
171+
local sd = snapshot:GetStandardDeviation()
169172
local timebro = td:GetElapsedTimeFromNoteRow(row) / getCurRateValue()
170173

171-
local marvCount = judgments[10]
172-
local perfCount = judgments[9]
173-
local greatCount = judgments[8]
174-
local goodCount = judgments[7]
175-
local badCount = judgments[6]
176-
local missCount = judgments[5]
174+
local marvCount = judgments["W1"]
175+
local perfCount = judgments["W2"]
176+
local greatCount = judgments["W3"]
177+
local goodCount = judgments["W4"]
178+
local badCount = judgments["W5"]
179+
local missCount = judgments["Miss"]
177180

178181
--txt:settextf("x %f\nrow %f\nbeat %f\nfinalsecond %f", xpos, row, row/48, finalSecond)
179182
-- The odd formatting here is in case we want to add translation support.

Scripts/00 ThemeInfo.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
-- theme identification file
22

33
themeInfo = {
4-
Name = "spawncamping-wallhack (etterna .71.0)",
5-
Version = "2.2.6", -- a.b.c, a for complete overhauls, b for major releases, c for minor additions/bugfix.
6-
Date = "20211210",
4+
Name = "spawncamping-wallhack (etterna .72.0)",
5+
Version = "2.2.7", -- a.b.c, a for complete overhauls, b for major releases, c for minor additions/bugfix.
6+
Date = "20221225",
77
}
88

99
function getThemeName()

Scripts/WifeSundries.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ end
4242
function changeMusicRate(amount)
4343
local curRate = getCurRateValue()
4444
local newRate = curRate + amount
45-
if newRate <= 3 and newRate >= 0.7 then
45+
if newRate <= 3 and newRate >= 0.05 then
4646
GAMESTATE:GetSongOptionsObject('ModsLevel_Preferred'):MusicRate(curRate+amount)
4747
GAMESTATE:GetSongOptionsObject('ModsLevel_Song'):MusicRate(curRate+amount)
4848
GAMESTATE:GetSongOptionsObject('ModsLevel_Current'):MusicRate(curRate+amount)

metrics.ini

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ end; \
434434
PlayerNameplateP1X=
435435
PlayerNameplateP1Y=
436436

437-
LineNames="1,Rate,CG,PRAC,8,RS,14,2,3A,3B,4,5,R1,R2,7,9,10,13,SF,LDB,DispPct,DispMen,JT,TTT,TTG,TTM,EB,LC,CH,NPS,16,LD,JD,BG,BGB,Fail"
437+
LineNames="1,RateList,CG,PRAC,8,RS,14,2,3A,3B,4,5,R1,R2,7,9,10,13,SF,LDB,DispPct,DispMen,JT,TTT,TTG,TTM,EB,LC,CH,NPS,16,LD,JD,BG,BGB,Fail"
438438
Line1="lua,ArbitrarySpeedMods()"
439439
Line5="list,Turn"
440440
Line7="list,Scroll"
@@ -458,7 +458,6 @@ LineEB="lua,ErrorBar()"
458458
LineLC="lua,LaneCover()"
459459
LineCH="lua,CBHighlight()"
460460
LineNPS="lua,NPSDisplay()"
461-
LineRate="list,Rate"
462461
LineBG="list,Background"
463462
LineFail="list,Fail"
464463
LineScore="list,SaveScores"

0 commit comments

Comments
 (0)