Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _loc1.setXtraFightMask = function (bInFight)
- {
- if (!bInFight)
- {
- if (this._sDefaultMaskType == "big")
- {
- this._mcXtra.setMask(this._mcCircleXtraMaskBig);
- }
- else
- {
- this._mcXtra.setMask(this._mcCircleXtraMask);
- } // end else if
- }
- else
- {
- this._mcXtra.setMask(this._mcCircleXtraMask);
- this._ccChrono.setGaugeChrono(100,15237131);
- } // end else if
- this.displayMovableBar(this.api.kernel.OptionsManager.getOption("MovableBar") && (!this.api.kernel.OptionsManager.getOption("HideSpellBar") || this.api.datacenter.Game.isFight));
- };
- _loc1.showCircleXtra = function (sXtraName, bShow, oParams, oComponentParams)
- {
- if (sXtraName == undefined)
- {
- return (null);
- } // end if
- if (sXtraName == this._sCurrentCircleXtra && bShow)
- {
- return (null);
- } // end if
- if (sXtraName != this._sCurrentCircleXtra && !bShow)
- {
- return (null);
- } // end if
- if (this._sCurrentCircleXtra != undefined && bShow)
- {
- this.showCircleXtra(this._sCurrentCircleXtra, false);
- } // end if
- var _loc7 = new Object();
- var _loc8 = new Array();
- if (oComponentParams == undefined)
- {
- oComponentParams = new Object();
- } // end if
- this.api.kernel.OptionsManager.setOption("BannerIllustrationMode", sXtraName);
- switch (sXtraName)
- {
- case "artwork":
- {
- var _loc6 = "Loader";
- _loc7 = {_x: this._mcCircleXtraMask._x, _y: this._mcCircleXtraMask._y, contentPath: dofus.Constants.GUILDS_FACES_PATH + this._oData.data.gfxID + ".swf", enabled: true};
- _loc8 = ["complete", "click"];
- break;
- }
- case "compass":
- {
- var _loc9 = this.api.datacenter.Map;
- _loc6 = "Compass";
- _loc7 = {_x: this._mcCircleXtraPlacer._x, _y: this._mcCircleXtraPlacer._y, _width: this._mcCircleXtraPlacer._width, _height: this._mcCircleXtraPlacer._height, arrow: "UI_BannerCompassArrow", noArrow: "UI_BannerCompassNoArrow", background: "UI_BannerCompassBack", targetCoords: this.api.datacenter.Basics.banner_targetCoords, currentCoords: [_loc9.x, _loc9.y]};
- _loc8 = ["click", "over", "out"];
- break;
- }
- case "clock":
- {
- _loc6 = "Clock";
- _loc7 = {_x: this._mcCircleXtraPlacer._x, _y: this._mcCircleXtraPlacer._y, _width: this._mcCircleXtraPlacer._width, _height: this._mcCircleXtraPlacer._height, arrowHours: "UI_BannerClockArrowHours", arrowMinutes: "UI_BannerClockArrowMinutes", background: "UI_BannerClockBack", updateFunction: {object: this.api.kernel.NightManager, method: this.api.kernel.NightManager.getCurrentTime}};
- _loc8 = ["click", "over", "out"];
- break;
- }
- case "helper":
- {
- _loc6 = "Loader";
- _loc7 = {_x: this._mcCircleXtraPlacer._x, _y: this._mcCircleXtraPlacer._y, contentPath: "Helper", enabled: true};
- _loc8 = ["click", "over", "out"];
- break;
- }
- case "map":
- {
- _loc6 = "MiniMap";
- _loc7 = {_x: this._mcCircleXtraPlacer._x, _y: this._mcCircleXtraPlacer._y, contentPath: "Map", enabled: true};
- _loc8 = [];
- break;
- }
- default:
- {
- _loc6 = "Loader";
- _loc7 = {_x: this._mcCircleXtraPlacer._x, _y: this._mcCircleXtraPlacer._y, _width: this._mcCircleXtraPlacer._width, _height: this._mcCircleXtraPlacer._height};
- break;
- }
- } // End of switch
- var _loc10 = null;
- if (bShow)
- {
- for (var k in _loc7)
- {
- oComponentParams[k] = _loc7[k];
- } // end of for...in
- _loc10 = this.attachMovie(_loc6, "_mcXtra", this.getNextHighestDepth(), oComponentParams);
- if (oParams.bMask)
- {
- this._sDefaultMaskType = oParams.sMaskSize;
- if (oParams.sMaskSize == "big" && !this.api.datacenter.Game.isFight)
- {
- this._mcXtra.setMask(this._mcCircleXtraMaskBig);
- }
- else
- {
- this._mcXtra.setMask(this._mcCircleXtraMask);
- } // end if
- } // end else if
- for (var k in _loc8)
- {
- this._mcXtra.addEventListener(_loc8[k], this);
- } // end of for...in
- this._mcXtra.swapDepths(this._mcCircleXtraPlacer);
- this._sCurrentCircleXtra = sXtraName;
- }
- else if (this._mcXtra != undefined)
- {
- for (var k in _loc8)
- {
- this._mcXtra.removeEventListener(_loc8[k], this);
- } // end of for...in
- this._mcCircleXtraPlacer.swapDepths(this._mcXtra);
- this._mcXtra.removeMovieClip();
- delete this._sCurrentCircleXtra;
- } // end else if
- return (_loc10);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement