Last active
December 28, 2015 00:39
-
-
Save freem/7415492 to your computer and use it in GitHub Desktop.
Judgment counter for ScreenGameplay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- temporary gameplay overlay where I knock out something for staiain | |
local c | |
local textFont = "_helvblack normal 24px" -- replace as needed | |
local function UpdateJudgments(self) | |
local ss = STATSMAN:GetCurStageStats() | |
local p1ss = ss:GetPlayerStageStats(GAMESTATE:GetMasterPlayerNumber()) | |
local w1Count = p1ss:GetTapNoteScores('TapNoteScore_W1') | |
c.CountW1:settext(w1Count) | |
local w2Count = p1ss:GetTapNoteScores('TapNoteScore_W2') | |
c.CountW2:settext(w2Count) | |
local w3Count = p1ss:GetTapNoteScores('TapNoteScore_W3') | |
c.CountW3:settext(w3Count) | |
local w4Count = p1ss:GetTapNoteScores('TapNoteScore_W4') | |
c.CountW4:settext(w4Count) | |
local w5Count = p1ss:GetTapNoteScores('TapNoteScore_W5') | |
c.CountW5:settext(w5Count) | |
local missCount = p1ss:GetTapNoteScores('TapNoteScore_Miss') | |
c.CountMiss:settext(missCount) | |
end | |
return Def.ActorFrame{ | |
InitCommand=function(self) | |
c = self:GetChildren() | |
self:CenterX() | |
self:y(SCREEN_CENTER_Y+120) | |
self:SetUpdateFunction(UpdateJudgments) | |
end; | |
LoadFont(textFont)..{ | |
Name="CountW1"; | |
InitCommand=cmd(y,0;zoom,16/24); | |
}; | |
LoadFont(textFont)..{ | |
Name="CountW2"; | |
InitCommand=cmd(y,16;zoom,16/24); | |
}; | |
LoadFont(textFont)..{ | |
Name="CountW3"; | |
InitCommand=cmd(y,32;zoom,16/24); | |
}; | |
LoadFont(textFont)..{ | |
Name="CountW4"; | |
InitCommand=cmd(y,48;zoom,16/24); | |
}; | |
LoadFont(textFont)..{ | |
Name="CountW5"; | |
InitCommand=cmd(y,64;zoom,16/24); | |
}; | |
LoadFont(textFont)..{ | |
Name="CountMiss"; | |
InitCommand=cmd(y,80;zoom,16/24); | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment