--//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
function auxPlayDoneAnimation()
	assert(miniGameScreen ~= nil);

	-- Origina; script changes:
	--// 1. replace ' -> '
	--// 2. disable automatic composition playback after its creation:
	--	...
	--        compositionDoneAnimation:Play();
	--	...
	--// 3. change blend mode for sprites with texture 'Fireworks1.jpg':
	--	...
	--		element:GetTexture():SetBlendMode(0);
	--	...

	local loadCompositionData = function(parent)
        local compositionDoneAnimation = CreateCompositionSequence();
        local compositionDuration = 4;
        compositionDoneAnimation:SetDuration(compositionDuration);
    
    
        -- Layer Layer_1
        local element = CreateCompositionElement('data/Texture/Minigames/Common/WinAnimation/Txt_S_01.png');
        element:SetName('Layer_1');
        compositionDoneAnimation:AddElement(element);
        element:SetHotSpot(27, 28);
        element:SetParentElement(compositionDoneAnimation);
        element:SetOpacity(1);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 4);
    
        effector:SetKey(_TRACK_X, 0, 1110.03103637695);
        effector:SetKey(_TRACK_Y, 0, 205.641372680664);
        effector:SetKey(_TRACK_X, 0.88, 634.031036376953);
        effector:SetKey(_TRACK_Y, 0.88, 367.641372680664);
        effector:SetKey(_TRACK_X, 1.8, 634.031036376953);
        effector:SetKey(_TRACK_Y, 1.8, 367.641372680664);
        effector:SetKey(_TRACK_X, 1.92, 634.031036376953);
        effector:SetKey(_TRACK_Y, 1.92, 346.641372680664);
        effector:SetKey(_TRACK_X, 2.12, 634.031036376953);
        effector:SetKey(_TRACK_Y, 2.12, 367.641372680664);
        effector:SetKey(_TRACK_X, 2.96, 634.031036376953);
        effector:SetKey(_TRACK_Y, 2.96, 367.641372680664);
        effector:SetKey(_TRACK_X, 3.8, 1118.03103637695);
        effector:SetKey(_TRACK_Y, 3.8, 287.641372680664);
        effector:SetKey(_TRACK_SX, 0, 2);
        effector:SetKey(_TRACK_SY, 0, 2);
        effector:SetKey(_TRACK_SX, 0.88, 1);
        effector:SetKey(_TRACK_SY, 0.88, 1);
        effector:SetKey(_TRACK_SX, 1, 1.1);
        effector:SetKey(_TRACK_SY, 1, 1.1);
        effector:SetKey(_TRACK_SX, 1.2, 1);
        effector:SetKey(_TRACK_SY, 1.2, 1);
        effector:SetKey(_TRACK_SX, 2.2, 1);
        effector:SetKey(_TRACK_SY, 2.2, 1);
        effector:SetKey(_TRACK_SX, 2.4, 1.1);
        effector:SetKey(_TRACK_SY, 2.4, 1.1);
        effector:SetKey(_TRACK_SX, 2.8, 1);
        effector:SetKey(_TRACK_SY, 2.8, 1);
        effector:SetKey(_TRACK_SX, 2.96, 1);
        effector:SetKey(_TRACK_SY, 2.96, 1);
        effector:SetKey(_TRACK_SX, 3.8, 2);
        effector:SetKey(_TRACK_SY, 3.8, 2);
        effector:SetKey(_TRACK_A, 0, 8.6387143086438);
        effector:SetKey(_TRACK_A, 0.88, 0);
        effector:SetKey(_TRACK_A, 2.96, 0);
        effector:SetKey(_TRACK_A, 3.8, 6.5452903927543);
    
        effector:Play();
    
    
        -- Layer Layer_2
        local element = CreateCompositionElement('data/Texture/Minigames/Common/WinAnimation/Txt_S_01.png');
        element:SetName('Layer_2');
        compositionDoneAnimation:AddElement(element);
        element:SetHotSpot(27, 28);
        element:SetParentElement(compositionDoneAnimation);
        element:SetOpacity(1);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 4);
    
        effector:SetKey(_TRACK_X, 0, 1223.53103637695);
        effector:SetKey(_TRACK_Y, 0, 526.641372680664);
        effector:SetKey(_TRACK_X, 0.88, 585.531036376953);
        effector:SetKey(_TRACK_Y, 0.88, 366.641372680664);
        effector:SetKey(_TRACK_X, 1.72, 585.531036376953);
        effector:SetKey(_TRACK_Y, 1.72, 366.641372680664);
        effector:SetKey(_TRACK_X, 1.84, 586.531036376953);
        effector:SetKey(_TRACK_Y, 1.84, 339.641372680664);
        effector:SetKey(_TRACK_X, 2.04, 585.531036376953);
        effector:SetKey(_TRACK_Y, 2.04, 366.641372680664);
        effector:SetKey(_TRACK_X, 2.96, 585.531036376953);
        effector:SetKey(_TRACK_Y, 2.96, 366.641372680664);
        effector:SetKey(_TRACK_X, 3.8, 1195.53103637695);
        effector:SetKey(_TRACK_Y, 3.8, 592.641372680664);
        effector:SetKey(_TRACK_SX, 0, 2);
        effector:SetKey(_TRACK_SY, 0, 2);
        effector:SetKey(_TRACK_SX, 0.88, 1);
        effector:SetKey(_TRACK_SY, 0.88, 1);
        effector:SetKey(_TRACK_SX, 1, 1.1);
        effector:SetKey(_TRACK_SY, 1, 1.1);
        effector:SetKey(_TRACK_SX, 1.2, 1);
        effector:SetKey(_TRACK_SY, 1.2, 1);
        effector:SetKey(_TRACK_SX, 2.2, 1);
        effector:SetKey(_TRACK_SY, 2.2, 1);
        effector:SetKey(_TRACK_SX, 2.4, 1.1);
        effector:SetKey(_TRACK_SY, 2.4, 1.1);
        effector:SetKey(_TRACK_SX, 2.8, 1);
        effector:SetKey(_TRACK_SY, 2.8, 1);
        effector:SetKey(_TRACK_SX, 2.96, 1);
        effector:SetKey(_TRACK_SY, 2.96, 1);
        effector:SetKey(_TRACK_SX, 3.8, 2);
        effector:SetKey(_TRACK_SY, 3.8, 2);
        effector:SetKey(_TRACK_A, 0, 4.22490494128898);
        effector:SetKey(_TRACK_A, 0.88, 0);
        effector:SetKey(_TRACK_A, 2.96, 0);
        effector:SetKey(_TRACK_A, 3.8, 7.0532345021627);
    
        effector:Play();
    
    
        -- Layer Layer_3
        local element = CreateCompositionElement('data/Texture/Minigames/Common/WinAnimation/Txt_E_01.png');
        element:SetName('Layer_3');
        compositionDoneAnimation:AddElement(element);
        element:SetHotSpot(25, 28);
        element:SetParentElement(compositionDoneAnimation);
        element:SetOpacity(1);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 4);
    
        effector:SetKey(_TRACK_X, 0, 1163.03103637695);
        effector:SetKey(_TRACK_Y, 0, 813.641372680664);
        effector:SetKey(_TRACK_X, 0.88, 541.031036376953);
        effector:SetKey(_TRACK_Y, 0.88, 365.641372680664);
        effector:SetKey(_TRACK_X, 1.64, 541.031036376953);
        effector:SetKey(_TRACK_Y, 1.64, 365.641372680664);
        effector:SetKey(_TRACK_X, 1.76, 542.031036376953);
        effector:SetKey(_TRACK_Y, 1.76, 345.641372680664);
        effector:SetKey(_TRACK_X, 1.96, 541.031036376953);
        effector:SetKey(_TRACK_Y, 1.96, 365.641372680664);
        effector:SetKey(_TRACK_X, 2.96, 541.031036376953);
        effector:SetKey(_TRACK_Y, 2.96, 365.641372680664);
        effector:SetKey(_TRACK_X, 3.8, 1033.03103637695);
        effector:SetKey(_TRACK_Y, 3.8, 861.641372680664);
        effector:SetKey(_TRACK_SX, 0, 2);
        effector:SetKey(_TRACK_SY, 0, 2);
        effector:SetKey(_TRACK_SX, 0.88, 1);
        effector:SetKey(_TRACK_SY, 0.88, 1);
        effector:SetKey(_TRACK_SX, 1, 1.1);
        effector:SetKey(_TRACK_SY, 1, 1.1);
        effector:SetKey(_TRACK_SX, 1.2, 1);
        effector:SetKey(_TRACK_SY, 1.2, 1);
        effector:SetKey(_TRACK_SX, 2.2, 1);
        effector:SetKey(_TRACK_SY, 2.2, 1);
        effector:SetKey(_TRACK_SX, 2.4, 1.1);
        effector:SetKey(_TRACK_SY, 2.4, 1.1);
        effector:SetKey(_TRACK_SX, 2.8, 1);
        effector:SetKey(_TRACK_SY, 2.8, 1);
        effector:SetKey(_TRACK_SX, 2.96, 1);
        effector:SetKey(_TRACK_SY, 2.96, 1);
        effector:SetKey(_TRACK_SX, 3.8, 2);
        effector:SetKey(_TRACK_SY, 3.8, 2);
        effector:SetKey(_TRACK_A, 0, 7.50223365016961);
        effector:SetKey(_TRACK_A, 0.88, 0);
        effector:SetKey(_TRACK_A, 2.96, 0);
        effector:SetKey(_TRACK_A, 3.8, 7.74347258445422);
    
        effector:Play();
    
    
        -- Layer Layer_4
        local element = CreateCompositionElement('data/Texture/Minigames/Common/WinAnimation/LD_C01.png');
        element:SetName('Layer_4');
        compositionDoneAnimation:AddElement(element);
        element:SetHotSpot(23, 28);
        element:SetParentElement(compositionDoneAnimation);
        element:SetOpacity(1);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 4);
    
        effector:SetKey(_TRACK_X, 0, 467.031036376953);
        effector:SetKey(_TRACK_Y, 0, 834.141372680664);
        effector:SetKey(_TRACK_X, 0.88, 493.031036376953);
        effector:SetKey(_TRACK_Y, 0.88, 366.141372680664);
        effector:SetKey(_TRACK_X, 1.56, 493.031036376953);
        effector:SetKey(_TRACK_Y, 1.56, 366.141372680664);
        effector:SetKey(_TRACK_X, 1.68, 493.031036376953);
        effector:SetKey(_TRACK_Y, 1.68, 352.141372680664);
        effector:SetKey(_TRACK_X, 1.84, 493.031036376953);
        effector:SetKey(_TRACK_Y, 1.84, 366.141372680664);
        effector:SetKey(_TRACK_X, 2.96, 493.031036376953);
        effector:SetKey(_TRACK_Y, 2.96, 366.141372680664);
        effector:SetKey(_TRACK_X, 3.8, 561.031036376953);
        effector:SetKey(_TRACK_Y, 3.8, 860.141372680664);
        effector:SetKey(_TRACK_SX, 0, 2);
        effector:SetKey(_TRACK_SY, 0, 2);
        effector:SetKey(_TRACK_SX, 0.88, 1);
        effector:SetKey(_TRACK_SY, 0.88, 1);
        effector:SetKey(_TRACK_SX, 1, 1.1);
        effector:SetKey(_TRACK_SY, 1, 1.1);
        effector:SetKey(_TRACK_SX, 1.2, 1);
        effector:SetKey(_TRACK_SY, 1.2, 1);
        effector:SetKey(_TRACK_SX, 2.2, 1);
        effector:SetKey(_TRACK_SY, 2.2, 1);
        effector:SetKey(_TRACK_SX, 2.4, 1.1);
        effector:SetKey(_TRACK_SY, 2.4, 1.1);
        effector:SetKey(_TRACK_SX, 2.8, 1);
        effector:SetKey(_TRACK_SY, 2.8, 1);
        effector:SetKey(_TRACK_SX, 2.96, 1);
        effector:SetKey(_TRACK_SY, 2.96, 1);
        effector:SetKey(_TRACK_SX, 3.8, 2);
        effector:SetKey(_TRACK_SY, 3.8, 2);
        effector:SetKey(_TRACK_A, 0, -8.00260632573424);
        effector:SetKey(_TRACK_A, 0.88, 0);
        effector:SetKey(_TRACK_A, 2.96, 0);
        effector:SetKey(_TRACK_A, 3.8, -5.93205179988092);
    
        effector:Play();
    
    
        -- Layer Layer_5
        local element = CreateCompositionElement('data/Texture/Minigames/Common/WinAnimation/LD_C01.png');
        element:SetName('Layer_5');
        compositionDoneAnimation:AddElement(element);
        element:SetHotSpot(23, 28);
        element:SetParentElement(compositionDoneAnimation);
        element:SetOpacity(1);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 4);
    
        effector:SetKey(_TRACK_X, 0, -150.468963623047);
        effector:SetKey(_TRACK_Y, 0, 782.641372680664);
        effector:SetKey(_TRACK_X, 0.88, 445.531036376953);
        effector:SetKey(_TRACK_Y, 0.88, 366.641372680664);
        effector:SetKey(_TRACK_X, 1.44, 445.531036376953);
        effector:SetKey(_TRACK_Y, 1.44, 366.641372680664);
        effector:SetKey(_TRACK_X, 1.56, 445.531036376953);
        effector:SetKey(_TRACK_Y, 1.56, 351.641372680664);
        effector:SetKey(_TRACK_X, 1.72, 445.531036376953);
        effector:SetKey(_TRACK_Y, 1.72, 366.641372680664);
        effector:SetKey(_TRACK_X, 2.96, 445.531036376953);
        effector:SetKey(_TRACK_Y, 2.96, 366.641372680664);
        effector:SetKey(_TRACK_X, 3.8, -0.46896362304688);
        effector:SetKey(_TRACK_Y, 3.8, 876.641372680664);
        effector:SetKey(_TRACK_SX, 0, 2);
        effector:SetKey(_TRACK_SY, 0, 2);
        effector:SetKey(_TRACK_SX, 0.88, 1);
        effector:SetKey(_TRACK_SY, 0.88, 1);
        effector:SetKey(_TRACK_SX, 1, 1.1);
        effector:SetKey(_TRACK_SY, 1, 1.1);
        effector:SetKey(_TRACK_SX, 1.2, 1);
        effector:SetKey(_TRACK_SY, 1.2, 1);
        effector:SetKey(_TRACK_SX, 2.2, 1);
        effector:SetKey(_TRACK_SY, 2.2, 1);
        effector:SetKey(_TRACK_SX, 2.4, 1.1);
        effector:SetKey(_TRACK_SY, 2.4, 1.1);
        effector:SetKey(_TRACK_SX, 2.8, 1);
        effector:SetKey(_TRACK_SY, 2.8, 1);
        effector:SetKey(_TRACK_SX, 2.96, 1);
        effector:SetKey(_TRACK_SY, 2.96, 1);
        effector:SetKey(_TRACK_SX, 3.8, 2);
        effector:SetKey(_TRACK_SY, 3.8, 2);
        effector:SetKey(_TRACK_A, 0, -7.60452920458458);
        effector:SetKey(_TRACK_A, 0.88, 0);
        effector:SetKey(_TRACK_A, 2.96, 0);
        effector:SetKey(_TRACK_A, 3.8, -4.64784643134714);
    
        effector:Play();
    
    
        -- Layer Layer_6
        local element = CreateCompositionElement('data/Texture/Minigames/Common/WinAnimation/Txt_U_01.png');
        element:SetName('Layer_6');
        compositionDoneAnimation:AddElement(element);
        element:SetHotSpot(27, 28);
        element:SetParentElement(compositionDoneAnimation);
        element:SetOpacity(1);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 4);
    
        effector:SetKey(_TRACK_X, 0, -212.468963623047);
        effector:SetKey(_TRACK_Y, 0, 483.141372680664);
        effector:SetKey(_TRACK_X, 0.88, 395.531036376953);
        effector:SetKey(_TRACK_Y, 0.88, 367.141372680664);
        effector:SetKey(_TRACK_X, 1.36, 395.531036376953);
        effector:SetKey(_TRACK_Y, 1.36, 367.141372680664);
        effector:SetKey(_TRACK_X, 1.48, 395.531036376953);
        effector:SetKey(_TRACK_Y, 1.48, 351.141372680664);
        effector:SetKey(_TRACK_X, 1.68, 395.531036376953);
        effector:SetKey(_TRACK_Y, 1.68, 367.141372680664);
        effector:SetKey(_TRACK_X, 2.96, 395.531036376953);
        effector:SetKey(_TRACK_Y, 2.96, 367.141372680664);
        effector:SetKey(_TRACK_X, 3.8, -236.468963623047);
        effector:SetKey(_TRACK_Y, 3.8, 549.141372680664);
        effector:SetKey(_TRACK_SX, 0, 2);
        effector:SetKey(_TRACK_SY, 0, 2);
        effector:SetKey(_TRACK_SX, 0.88, 1);
        effector:SetKey(_TRACK_SY, 0.88, 1);
        effector:SetKey(_TRACK_SX, 1, 1.1);
        effector:SetKey(_TRACK_SY, 1, 1.1);
        effector:SetKey(_TRACK_SX, 1.2, 1);
        effector:SetKey(_TRACK_SY, 1.2, 1);
        effector:SetKey(_TRACK_SX, 2.2, 1);
        effector:SetKey(_TRACK_SY, 2.2, 1);
        effector:SetKey(_TRACK_SX, 2.4, 1.1);
        effector:SetKey(_TRACK_SY, 2.4, 1.1);
        effector:SetKey(_TRACK_SX, 2.8, 1);
        effector:SetKey(_TRACK_SY, 2.8, 1);
        effector:SetKey(_TRACK_SX, 2.96, 1);
        effector:SetKey(_TRACK_SY, 2.96, 1);
        effector:SetKey(_TRACK_SX, 3.8, 2);
        effector:SetKey(_TRACK_SY, 3.8, 2);
        effector:SetKey(_TRACK_A, 0, -6.73684632127534);
        effector:SetKey(_TRACK_A, 0.88, 0);
        effector:SetKey(_TRACK_A, 2.96, 0);
        effector:SetKey(_TRACK_A, 3.8, -8.15617037156491);
    
        effector:Play();
    
    
        -- Layer Layer_7
        local element = CreateCompositionElement('data/Texture/Minigames/Common/WinAnimation/Txt_S_01.png');
        element:SetName('Layer_7');
        compositionDoneAnimation:AddElement(element);
        element:SetHotSpot(27, 28);
        element:SetParentElement(compositionDoneAnimation);
        element:SetOpacity(1);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 4);
    
        effector:SetKey(_TRACK_X, 0, -169.468963623047);
        effector:SetKey(_TRACK_Y, 0, 184.641372680664);
        effector:SetKey(_TRACK_X, 0.88, 346.531036376953);
        effector:SetKey(_TRACK_Y, 0.88, 366.641372680664);
        effector:SetKey(_TRACK_X, 1.2, 346.531036376953);
        effector:SetKey(_TRACK_Y, 1.2, 366.641372680664);
        effector:SetKey(_TRACK_X, 1.36, 347.531036376953);
        effector:SetKey(_TRACK_Y, 1.36, 352.641372680664);
        effector:SetKey(_TRACK_X, 1.6, 346.531036376953);
        effector:SetKey(_TRACK_Y, 1.6, 366.641372680664);
        effector:SetKey(_TRACK_X, 2.96, 346.531036376953);
        effector:SetKey(_TRACK_Y, 2.96, 366.641372680664);
        effector:SetKey(_TRACK_X, 3.8, -147.468963623047);
        effector:SetKey(_TRACK_Y, 3.8, 320.641372680664);
        effector:SetKey(_TRACK_SX, 0, 2);
        effector:SetKey(_TRACK_SY, 0, 2);
        effector:SetKey(_TRACK_SX, 0.88, 1);
        effector:SetKey(_TRACK_SY, 0.88, 1);
        effector:SetKey(_TRACK_SX, 1, 1.1);
        effector:SetKey(_TRACK_SY, 1, 1.1);
        effector:SetKey(_TRACK_SX, 1.2, 1);
        effector:SetKey(_TRACK_SY, 1.2, 1);
        effector:SetKey(_TRACK_SX, 2.2, 1);
        effector:SetKey(_TRACK_SY, 2.2, 1);
        effector:SetKey(_TRACK_SX, 2.4, 1.1);
        effector:SetKey(_TRACK_SY, 2.4, 1.1);
        effector:SetKey(_TRACK_SX, 2.8, 1);
        effector:SetKey(_TRACK_SY, 2.8, 1);
        effector:SetKey(_TRACK_SX, 2.96, 1);
        effector:SetKey(_TRACK_SY, 2.96, 1);
        effector:SetKey(_TRACK_SX, 3.8, 2);
        effector:SetKey(_TRACK_SY, 3.8, 2);
        effector:SetKey(_TRACK_A, 0, -3.82554013680837);
        effector:SetKey(_TRACK_A, 0.88, 0);
        effector:SetKey(_TRACK_A, 2.96, 0);
        effector:SetKey(_TRACK_A, 3.8, -5.81640312421821);
    
        effector:Play();
    
    
        -- Layer Layer5
        local element = CreateCompositionElement('data/Texture/Minigames/Common/WinAnimation/Fireworks1.jpg');
        element:SetName('Layer5');
        compositionDoneAnimation:AddElement(element);
        element:SetHotSpot(132, 132);
        element:SetParentElement(compositionDoneAnimation);
        element:SetXY(613, 385);
element:GetTexture():SetBlendMode(0);
    
        element:SetAngle(0);
    
        effector = element:GetEffector();
        effector:SetLifeTime(1.52, 2.04);
    
        effector:SetKey(_TRACK_SX, 1.56, 0.2);
        effector:SetKey(_TRACK_SY, 1.56, 0.2);
        effector:SetKey(_TRACK_SX, 1.64, 1.6);
        effector:SetKey(_TRACK_SY, 1.64, 1.6);
        effector:SetKey(_TRACK_SX, 2, 1.5);
        effector:SetKey(_TRACK_SY, 2, 1.5);
        effector:SetKey(_TRACK_O, 1.56, 0);
        effector:SetKey(_TRACK_O, 1.64, 1);
        effector:SetKey(_TRACK_O, 2, 0);
    
        effector:Play();
    
    
        -- Layer Layer6
        local element = CreateCompositionElement('data/Texture/Minigames/Common/WinAnimation/Fireworks1.jpg');
        element:SetName('Layer6');
        compositionDoneAnimation:AddElement(element);
        element:SetHotSpot(132, 132);
        element:SetParentElement(compositionDoneAnimation);
        element:SetXY(542, 342);
element:GetTexture():SetBlendMode(0);    
        element:SetAngle(0);
    
        effector = element:GetEffector();
        effector:SetLifeTime(1.28, 1.8);
    
        effector:SetKey(_TRACK_SX, 1.32, 0.05);
        effector:SetKey(_TRACK_SY, 1.32, 0.05);
        effector:SetKey(_TRACK_SX, 1.4, 1.2);
        effector:SetKey(_TRACK_SY, 1.4, 1.2);
        effector:SetKey(_TRACK_SX, 1.76, 1.5);
        effector:SetKey(_TRACK_SY, 1.76, 1.5);
        effector:SetKey(_TRACK_O, 1.32, 0);
        effector:SetKey(_TRACK_O, 1.4, 1);
        effector:SetKey(_TRACK_O, 1.76, 0);
    
        effector:Play();
    
    
        -- Layer Layer7
        local element = CreateCompositionElement('data/Texture/Minigames/Common/WinAnimation/Fireworks1.jpg');
        element:SetName('Layer7');
        compositionDoneAnimation:AddElement(element);
        element:SetHotSpot(132, 132);
        element:SetParentElement(compositionDoneAnimation);
        element:SetXY(470, 407);
element:GetTexture():SetBlendMode(0);    
        element:SetAngle(0);
    
        effector = element:GetEffector();
        effector:SetLifeTime(1.08, 1.6);
    
        effector:SetKey(_TRACK_SX, 1.12, 0.2);
        effector:SetKey(_TRACK_SY, 1.12, 0.2);
        effector:SetKey(_TRACK_SX, 1.2, 1.6);
        effector:SetKey(_TRACK_SY, 1.2, 1.6);
        effector:SetKey(_TRACK_SX, 1.56, 1.6);
        effector:SetKey(_TRACK_SY, 1.56, 1.6);
        effector:SetKey(_TRACK_O, 1.12, 0);
        effector:SetKey(_TRACK_O, 1.2, 1);
        effector:SetKey(_TRACK_O, 1.56, 0);
    
        effector:Play();
    
    
        -- Layer Layer8
        local element = CreateCompositionElement('data/Texture/Minigames/Common/WinAnimation/Fireworks1.jpg');
        element:SetName('Layer8');
        compositionDoneAnimation:AddElement(element);
        element:SetHotSpot(132, 132);
        element:SetParentElement(compositionDoneAnimation);
        element:SetXY(357, 348);
element:GetTexture():SetBlendMode(0);    
        element:SetAngle(0);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0.88, 1.4);
    
        effector:SetKey(_TRACK_SX, 0.92, 0.2);
        effector:SetKey(_TRACK_SY, 0.92, 0.2);
        effector:SetKey(_TRACK_SX, 1, 1.4);
        effector:SetKey(_TRACK_SY, 1, 1.4);
        effector:SetKey(_TRACK_SX, 1.36, 1.5);
        effector:SetKey(_TRACK_SY, 1.36, 1.5);
        effector:SetKey(_TRACK_O, 0.92, 0);
        effector:SetKey(_TRACK_O, 1, 1);
        effector:SetKey(_TRACK_O, 1.36, 0);
    
        effector:Play();
    
        compositionDoneAnimation:Play();
    
        return compositionDoneAnimation;
	end


	local composition = loadCompositionData(miniGameScreen);
    composition:SetName('MinigameDoneAnimation_Composition');
    composition:SetXY(0.0,0.0);
-- 	composition:SetHotSpot(512,384);
	composition:SetZ(1000.0);
 	composition:AttachTo(miniGameScreen);

	composition:SetScaleX(1);
	composition:SetScaleY(1);
	composition:SetAngle(0);
	composition:SetOpacity(1);
    
	composition:Stop();
    composition:Rewind(false);
	composition:SetConsiderParentOpacity(true);
	composition:Play();
	PlaySound('L99MGC');

	if (fadeScreen ~= false) then
		local fadeDuration = 1.5;

		local fog = CreateWindowShade(miniGameScreen, composition:GetZ() - 100.0, '0xAAFFFFFF');
		fog:SetX(fog:GetX() + 30.0);

	    local eff = CreateAnimationEffector();
	    eff:AttachTo(fog);
	    eff:SetKey(_TRACK_O, 0.0, 			0.0);
	    eff:SetKey(_TRACK_O, fadeDuration,	1.0);
	    eff:Play();
	end
end
------------------------------------------------------------------------------
