| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- function CCreditsPanel(){
-
- var _oBg;
- var _oButExit;
- var _oMsgText;
-
- var _oFade;
- var _oHitArea;
-
- var _oLink;
- var _oContainer;
-
- var _pStartPosExit;
-
- this._init = function(){
-
- _oContainer = new createjs.Container();
- s_oStage.addChild(_oContainer);
-
- var oBgMenu = createBitmap(s_oSpriteLibrary.getSprite('bg_menu'));
- _oContainer.addChild(oBgMenu);
-
- _oFade = new createjs.Shape();
- _oFade.graphics.beginFill("rgba(0,0,0,0.7)").drawRect(0, 0, CANVAS_WIDTH, CANVAS_HEIGHT);
- _oContainer.addChild(_oFade);
-
- var oSprite = s_oSpriteLibrary.getSprite('msg_box');
- _oBg = createBitmap(oSprite);
- _oBg.x = CANVAS_WIDTH/2;
- _oBg.y = CANVAS_HEIGHT/2;
- _oBg.regX = oSprite.width/2;
- _oBg.regY = oSprite.height/2;
- _oContainer.addChild(_oBg);
-
- _oHitArea = new createjs.Shape();
- _oHitArea.graphics.beginFill("#0f0f0f").drawRect(0, 0, CANVAS_WIDTH, CANVAS_HEIGHT);
- _oHitArea.alpha = 0.01;
- _oHitArea.on("click", this._onLogoButRelease);
- _oContainer.addChild(_oHitArea);
-
- var oSprite = s_oSpriteLibrary.getSprite('but_exit');
- _pStartPosExit = {x: CANVAS_WIDTH/2 +264, y: 394};
- _oButExit = new CGfxButton(_pStartPosExit.x, _pStartPosExit.y, oSprite, _oContainer);
- _oButExit.addEventListener(ON_MOUSE_UP, this.unload, this);
-
- _oMsgText = new createjs.Text(TEXT_DEVELOPED,"46px "+PRIMARY_FONT, "#ffffff");
- _oMsgText.x = CANVAS_WIDTH/2;
- _oMsgText.y = 420;
- _oMsgText.textAlign = "center";
- _oContainer.addChild(_oMsgText);
-
- oSprite = s_oSpriteLibrary.getSprite('ctl_logo');
- var oLogo = createBitmap(oSprite);
- oLogo.regX = oSprite.width/2;
- oLogo.regY = oSprite.height/2;
- oLogo.x = CANVAS_WIDTH/2;
- oLogo.y = CANVAS_HEIGHT/2;
- _oContainer.addChild(oLogo);
-
- _oLink = new createjs.Text("movitel.co.mz","46px "+PRIMARY_FONT, "#ffffff");
- _oLink.x = CANVAS_WIDTH/2;
- _oLink.y = 570;
- _oLink.textAlign = "center";
- _oContainer.addChild(_oLink);
- };
-
- this.unload = function(){
- _oHitArea.off("click", this._onLogoButRelease);
-
- _oButExit.unload();
- _oButExit = null;
- s_oStage.removeChild(_oContainer);
- };
-
- this._onLogoButRelease = function(){
- window.open("https://movitel.co.mz/","_blank");
- };
-
- this._init();
-
-
- };
|