<ActorFrame InitCommand="%function(self)
    if not Profile().DWIShowProfileInSelectMusic then self:hidden(1) else self:hidden(0) end
end"><children>
<Layer
            Type="Quad"
            Condition="GAMESTATE:IsPlayerEnabled(PLAYER_1)"
            OnCommand="x,SCREEN_CENTER_X-285;y,SCREEN_CENTER_Y-173;zoomto,42,42,0,0;shadowlength,1"
            />
        <Layer
            Type="Quad"
            Condition="GAMESTATE:IsPlayerEnabled(PLAYER_1)"
            OnCommand="x,SCREEN_CENTER_X-285;y,SCREEN_CENTER_Y-173;zoomto,38,38,0,0;shadowlength,1;diffuse,0,0,0,1"
            />
           <Layer
        File="@ThemeFile('ProfileIcon/userP1')"
        Condition="GAMESTATE:IsPlayerEnabled(PLAYER_1)"
        OnCommand="%function(self)
        self:x(SCREEN_CENTER_X-285)
        self:y(SCREEN_CENTER_Y-173)
        self:zoomto(40,40,0,0);
        end"
        />
        <Layer
            Font="_sui generis"
            Text=" "
            Condition="GAMESTATE:IsPlayerEnabled(PLAYER_1)"
            OnCommand="x,SCREEN_CENTER_X-260;y,SCREEN_CENTER_Y-188;zoom,0.4;horizalign,left;diffuse,0.25,0.8125,1,1;shadowlength,1;sleep,0.01;queuecommand,Update"
            CurrentSongChangedMessageCommand="sleep,0.01;queuecommand,Update"
            UpdateCommand="%function(self)
            self:settext('Player 1')
            if FUCK_EXE and STATSMAN:GetAccumStageStats() or OPENITG and STATSMAN:GetAccumStageStats() then
                if GAMESTATE:IsPlayerEnabled(PLAYER_1) then
                    local poss = STATSMAN:GetAccumStageStats():GetPlayerStageStats(PLAYER_1):GetPossibleDancePoints()
                    local act = STATSMAN:GetAccumStageStats():GetPlayerStageStats(PLAYER_1):GetActualDancePoints()
                    if PStage(PLAYER_1)+1 == 1 then
                        self:settext(GetProfileName(1)..': 0.00%')
                    else
                        if act/poss < 0 then
                            self:settext(GetProfileName(1)..': 0.00%')
                        else
                            self:settext(GetProfileName(1)..': '.. FormatPercentScore(act/poss))
                        end
                    end
                end
            end
            if not GAMESTATE:IsPlayerEnabled(PLAYER_2) then
                    self:zoom(0.6)
                    self:y(SCREEN_CENTER_Y-186)
                else
                    self:zoom(0.4)
                    self:y(SCREEN_CENTER_Y-188)
                end
            end"
            />
        <Layer
            Font="_score"
            Text=" "
            Condition="GAMESTATE:IsPlayerEnabled(PLAYER_1)"
            OnCommand="x,SCREEN_CENTER_X-260;y,SCREEN_CENTER_Y-178;zoom,0.4;horizalign,left;diffuse,0.25,0.8125,1,1;shadowlength,1;sleep,0.01;queuecommand,Update"
            CurrentSongChangedMessageCommand="sleep,0.01;queuecommand,Update"
            UpdateCommand="%function(self)
            self:settext( GetTotalScore(PLAYER_1) )
                if not GAMESTATE:IsPlayerEnabled(PLAYER_2) then
                    self:zoom(0.6)
                    self:y(SCREEN_CENTER_Y-168)
                else
                    self:zoom(0.4)
                    self:y(SCREEN_CENTER_Y-178)
                end
            end"
            />


            <!-- Player 2 -->

            <Layer
            Type="Quad"
            Condition="GAMESTATE:IsPlayerEnabled(PLAYER_2)"
            OnCommand="x,SCREEN_CENTER_X-45;y,SCREEN_CENTER_Y-173;zoomto,42,42,0,0;shadowlength,1"
            />
        <Layer
            Type="Quad"
            Condition="GAMESTATE:IsPlayerEnabled(PLAYER_2)"
            OnCommand="x,SCREEN_CENTER_X-45;y,SCREEN_CENTER_Y-173;zoomto,38,38,0,0;shadowlength,1;diffuse,0,0,0,1"
            />
           <Layer
        File="@ThemeFile('ProfileIcon/userP2')"
        Condition="GAMESTATE:IsPlayerEnabled(PLAYER_2)"
        OnCommand="%function(self)
        self:x(SCREEN_CENTER_X-45)
        self:y(SCREEN_CENTER_Y-173)
        self:zoomto(40,40,0,0);
        end"
        />

            <Layer
            Font="_sui generis"
            Text=" "
            Condition="GAMESTATE:IsPlayerEnabled(PLAYER_2)"
            OnCommand="x,SCREEN_CENTER_X-70;y,SCREEN_CENTER_Y-168;zoom,0.4;horizalign,right;diffuse,1,0.8125,0.125,1;shadowlength,1;sleep,0.01;queuecommand,Update"
            CurrentSongChangedMessageCommand="sleep,0.01;queuecommand,Update"
            UpdateCommand="%function(self)
            self:settext('Player 2')
            if FUCK_EXE and STATSMAN:GetAccumStageStats() or OPENITG and STATSMAN:GetAccumStageStats() then
                if GAMESTATE:IsPlayerEnabled(PLAYER_2) then
                    local poss = STATSMAN:GetAccumStageStats():GetPlayerStageStats(PLAYER_2):GetPossibleDancePoints()
                    local act = STATSMAN:GetAccumStageStats():GetPlayerStageStats(PLAYER_2):GetActualDancePoints()
                    if PStage(PLAYER_2)+1 == 1 then
                        self:settext(GetProfileName(2)..': 0.00%')
                    else
                        if act/poss <= 0 then
                            self:settext(GetProfileName(2)..': 0.00%')
                        else
                            self:settext(GetProfileName(2)..': '.. FormatPercentScore(act/poss))
                        end
                    end
                end
            end
                if not GAMESTATE:IsPlayerEnabled(PLAYER_1) then
                    self:zoom(0.6)
                    self:y(SCREEN_CENTER_Y-186)
                else
                    self:zoom(0.4)
                    self:y(SCREEN_CENTER_Y-168)
                end
            end"
            />
        <Layer
            Font="_score"
            Text=" "
            Condition="GAMESTATE:IsPlayerEnabled(PLAYER_2)"
            OnCommand="x,SCREEN_CENTER_X-70;y,SCREEN_CENTER_Y-158;zoom,0.4;horizalign,right;diffuse,1,0.8125,0.125,1;shadowlength,1;sleep,0.01;queuecommand,Update"
            CurrentSongChangedMessageCommand="sleep,0.01;queuecommand,Update"
            UpdateCommand="%function(self)
            self:settext( GetTotalScore(PLAYER_2) )
                if not GAMESTATE:IsPlayerEnabled(PLAYER_1) then
                    self:zoom(0.6)
                    self:y(SCREEN_CENTER_Y-168)
                else
                    self:zoom(0.4)
                    self:y(SCREEN_CENTER_Y-158)
                end
            end"
            />

</children></ActorFrame>