local t = Def.ActorFrame {}

-- P2 Judgement Labels
-- P2 numbers
t[#t+1] = Def.ActorFrame {
	InitCommand=function(self)
		self:addx(60)
	end,
	LoadFont("_numbers2") .. {
		InitCommand=function(self)
			self:visible(GAMESTATE:IsHumanPlayer(PLAYER_2)):horizalign(left):diffuse(PlayerColor(PLAYER_2)):playcommand("Set")
		end,
		OnCommand=function(self)
			self:addx(SCREEN_WIDTH/2):sleep(0.1):decelerate(0.3):addx(-SCREEN_WIDTH/2)
		end,
		OffCommand=function(self)
			self:sleep(0.8):accelerate(0.3):addx(SCREEN_WIDTH/2)
		end,
		SetCommand=function(self) 
		if screen == "ScreenEvaluationSummary" then
				self:settext(STATSMAN:GetFinalEvalStageStats():GetPlayerStageStats(PLAYER_2):GetTapNoteScores("TapNoteScore_W1"))
			else
				self:settext(STATSMAN:GetCurStageStats():GetPlayerStageStats(PLAYER_2):GetTapNoteScores("TapNoteScore_W1"))
			end
		end
	},
	LoadFont("_numbers2") .. {
		InitCommand=function(self)
			self:visible(GAMESTATE:IsHumanPlayer(PLAYER_2)):horizalign(left):diffuse(PlayerColor(PLAYER_2)):addy(30):playcommand("Set")
		end,
		OnCommand=function(self)
			self:addx(SCREEN_WIDTH/2):sleep(0.2):decelerate(0.3):addx(-SCREEN_WIDTH/2)
		end,
		OffCommand=function(self)
			self:sleep(0.7):accelerate(0.3):addx(SCREEN_WIDTH/2)
		end,
		SetCommand=function(self) 
		if screen == "ScreenEvaluationSummary" then
				self:settext(STATSMAN:GetFinalEvalStageStats():GetPlayerStageStats(PLAYER_2):GetTapNoteScores("TapNoteScore_W2"))
			else
				self:settext(STATSMAN:GetCurStageStats():GetPlayerStageStats(PLAYER_2):GetTapNoteScores("TapNoteScore_W2"))
			end
		end
	},
	LoadFont("_numbers2") .. {
		InitCommand=function(self)
			self:visible(GAMESTATE:IsHumanPlayer(PLAYER_2)):horizalign(left):diffuse(PlayerColor(PLAYER_2)):addy(30*2):playcommand("Set")
		end,
		OnCommand=function(self)
			self:addx(SCREEN_WIDTH/2):sleep(0.3):decelerate(0.3):addx(-SCREEN_WIDTH/2)
		end,
		OffCommand=function(self)
			self:sleep(0.6):accelerate(0.3):addx(SCREEN_WIDTH/2)
		end,
		SetCommand=function(self) 
		if screen == "ScreenEvaluationSummary" then
				self:settext(STATSMAN:GetFinalEvalStageStats():GetPlayerStageStats(PLAYER_2):GetTapNoteScores("TapNoteScore_W3"))
			else
				self:settext(STATSMAN:GetCurStageStats():GetPlayerStageStats(PLAYER_2):GetTapNoteScores("TapNoteScore_W3"))
			end	
		end
	},
	LoadFont("_numbers2") .. {
		InitCommand=function(self)
			self:visible(GAMESTATE:IsHumanPlayer(PLAYER_2)):horizalign(left):diffuse(PlayerColor(PLAYER_2)):addy(30*3):playcommand("Set")
		end,
		OnCommand=function(self)
			self:addx(SCREEN_WIDTH/2):sleep(0.4):decelerate(0.3):addx(-SCREEN_WIDTH/2)
		end,
		OffCommand=function(self)
			self:sleep(0.5):accelerate(0.3):addx(SCREEN_WIDTH/2)
		end,
		SetCommand=function(self) 
			if screen == "ScreenEvaluationSummary" then
				self:settext(STATSMAN:GetFinalEvalStageStats():GetPlayerStageStats(PLAYER_2):GetTapNoteScores("TapNoteScore_W4"))
			else
				self:settext(STATSMAN:GetCurStageStats():GetPlayerStageStats(PLAYER_2):GetTapNoteScores("TapNoteScore_W4"))
			end	
		end
	},
	LoadFont("_numbers2") .. {
		InitCommand=function(self)
			self:visible(GAMESTATE:IsHumanPlayer(PLAYER_2)):horizalign(left):diffuse(PlayerColor(PLAYER_2)):addy(30*4):playcommand("Set")
		end,
		OnCommand=function(self)
			self:addx(SCREEN_WIDTH/2):sleep(0.5):decelerate(0.3):addx(-SCREEN_WIDTH/2)
		end,
		OffCommand=function(self)
			self:sleep(0.4):accelerate(0.3):addx(SCREEN_WIDTH/2)
		end,
		SetCommand=function(self) 
		if screen == "ScreenEvaluationSummary" then
				self:settext(STATSMAN:GetFinalEvalStageStats():GetPlayerStageStats(PLAYER_2):GetTapNoteScores("TapNoteScore_W5"))
			else
				self:settext(STATSMAN:GetCurStageStats():GetPlayerStageStats(PLAYER_2):GetTapNoteScores("TapNoteScore_W5"))
			end	
		end
	},
	LoadFont("_numbers2") .. {
		InitCommand=function(self)
			self:visible(GAMESTATE:IsHumanPlayer(PLAYER_2)):horizalign(left):diffuse(PlayerColor(PLAYER_2)):addy(30*5):playcommand("Set")
		end,
		OnCommand=function(self)
			self:addx(SCREEN_WIDTH/2):sleep(0.6):decelerate(0.3):addx(-SCREEN_WIDTH/2)
		end,
		OffCommand=function(self)
			self:sleep(0.3):accelerate(0.3):addx(SCREEN_WIDTH/2)
		end,
		SetCommand=function(self) 
        	if screen == "ScreenEvaluationSummary" then
				self:settext(STATSMAN:GetFinalEvalStageStats():GetPlayerStageStats(PLAYER_2):GetTapNoteScores("TapNoteScore_Miss"))
			else
				self:settext(STATSMAN:GetCurStageStats():GetPlayerStageStats(PLAYER_2):GetTapNoteScores("TapNoteScore_Miss"))
			end	
		end
    },
	LoadFont("_numbers2") .. {
		InitCommand=function(self)
			self:visible(GAMESTATE:IsHumanPlayer(PLAYER_2)):horizalign(left):diffuse(PlayerColor(PLAYER_2)):addy(30*6):playcommand("Set")
		end,
		OnCommand=function(self)
			self:addx(SCREEN_WIDTH/2):sleep(0.7):decelerate(0.3):addx(-SCREEN_WIDTH/2)
		end,
		OffCommand=function(self)
			self:sleep(0.2):accelerate(0.3):addx(SCREEN_WIDTH/2)
		end,
		SetCommand=function(self) 
		if screen == "ScreenEvaluationSummary" then
				self:settext(STATSMAN:GetFinalEvalStageStats():GetPlayerStageStats(PLAYER_2):GetHoldNoteScores("HoldNoteScore_Held"))
			else
				self:settext(STATSMAN:GetCurStageStats():GetPlayerStageStats(PLAYER_2):GetHoldNoteScores("HoldNoteScore_Held"))
			end	
		end
	},
	LoadFont("_numbers2") .. {
		InitCommand=function(self)
			self:visible(GAMESTATE:IsHumanPlayer(PLAYER_2)):horizalign(left):diffuse(color("#FFFF00")):addy(27*6+6):addx(80):playcommand("Set")
		end,
		OnCommand=function(self)
			self:zoomy(0):decelerate(0.3):zoomy(1)
		end,
		OffCommand=function(self)
			self:zoomy(1):accelerate(0.3):zoomy(0)
		end,
		SetCommand=function(self)
		if screen == "ScreenEvaluationSummary" then
				self:settext(STATSMAN:GetFinalEvalStageStats():GetPlayerStageStats(PLAYER_2):MaxCombo())
			else
				self:settext(STATSMAN:GetCurStageStats():GetPlayerStageStats(PLAYER_2):MaxCombo())
			end	
		end
	},
	LoadFont("_numbers2") .. {
		InitCommand=function(self)
			self:visible(GAMESTATE:IsHumanPlayer(PLAYER_2)):horizalign(left):diffuse(PlayerColor(PLAYER_2)):addy(30*7+3):addx(10):playcommand("Set")
		end,
		OnCommand=function(self)
			self:addx(SCREEN_WIDTH/2):sleep(0.9):decelerate(0.3):addx(-SCREEN_WIDTH/2)
		end,
		OffCommand=function(self)
			self:sleep(0.1):accelerate(0.3):addx(SCREEN_WIDTH/2)
		end,
		SetCommand=function(self)
		if screen == "ScreenEvaluationSummary" then
				self:settext(STATSMAN:GetFinalEvalStageStats():GetPlayerStageStats(PLAYER_2):GetScore())
			else
				self:settext(STATSMAN:GetCurStageStats():GetPlayerStageStats(PLAYER_2):GetScore())
			end	
		end
	}
}
	
return t
