Advertisement
Ragnifer

Untitled

Jan 27th, 2020
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.16 KB | None | 0 0
  1. _loc1.setXtraFightMask = function (bInFight)
  2. {
  3. if (!bInFight)
  4. {
  5. if (this._sDefaultMaskType == "big")
  6. {
  7. this._mcXtra.setMask(this._mcCircleXtraMaskBig);
  8. }
  9. else
  10. {
  11. this._mcXtra.setMask(this._mcCircleXtraMask);
  12. } // end else if
  13. }
  14. else
  15. {
  16. this._mcXtra.setMask(this._mcCircleXtraMask);
  17. this._ccChrono.setGaugeChrono(100,15237131);
  18.  
  19. } // end else if
  20. this.displayMovableBar(this.api.kernel.OptionsManager.getOption("MovableBar") && (!this.api.kernel.OptionsManager.getOption("HideSpellBar") || this.api.datacenter.Game.isFight));
  21. };
  22. _loc1.showCircleXtra = function (sXtraName, bShow, oParams, oComponentParams)
  23. {
  24. if (sXtraName == undefined)
  25. {
  26. return (null);
  27. } // end if
  28. if (sXtraName == this._sCurrentCircleXtra && bShow)
  29. {
  30. return (null);
  31. } // end if
  32. if (sXtraName != this._sCurrentCircleXtra && !bShow)
  33. {
  34. return (null);
  35. } // end if
  36. if (this._sCurrentCircleXtra != undefined && bShow)
  37. {
  38. this.showCircleXtra(this._sCurrentCircleXtra, false);
  39. } // end if
  40. var _loc7 = new Object();
  41. var _loc8 = new Array();
  42. if (oComponentParams == undefined)
  43. {
  44. oComponentParams = new Object();
  45. } // end if
  46. this.api.kernel.OptionsManager.setOption("BannerIllustrationMode", sXtraName);
  47. switch (sXtraName)
  48. {
  49. case "artwork":
  50. {
  51. var _loc6 = "Loader";
  52. _loc7 = {_x: this._mcCircleXtraMask._x, _y: this._mcCircleXtraMask._y, contentPath: dofus.Constants.GUILDS_FACES_PATH + this._oData.data.gfxID + ".swf", enabled: true};
  53. _loc8 = ["complete", "click"];
  54. break;
  55. }
  56. case "compass":
  57. {
  58. var _loc9 = this.api.datacenter.Map;
  59. _loc6 = "Compass";
  60. _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]};
  61. _loc8 = ["click", "over", "out"];
  62. break;
  63. }
  64. case "clock":
  65. {
  66. _loc6 = "Clock";
  67. _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}};
  68. _loc8 = ["click", "over", "out"];
  69. break;
  70. }
  71. case "helper":
  72. {
  73. _loc6 = "Loader";
  74. _loc7 = {_x: this._mcCircleXtraPlacer._x, _y: this._mcCircleXtraPlacer._y, contentPath: "Helper", enabled: true};
  75. _loc8 = ["click", "over", "out"];
  76. break;
  77. }
  78. case "map":
  79. {
  80. _loc6 = "MiniMap";
  81. _loc7 = {_x: this._mcCircleXtraPlacer._x, _y: this._mcCircleXtraPlacer._y, contentPath: "Map", enabled: true};
  82. _loc8 = [];
  83. break;
  84. }
  85. default:
  86. {
  87. _loc6 = "Loader";
  88. _loc7 = {_x: this._mcCircleXtraPlacer._x, _y: this._mcCircleXtraPlacer._y, _width: this._mcCircleXtraPlacer._width, _height: this._mcCircleXtraPlacer._height};
  89. break;
  90. }
  91. } // End of switch
  92. var _loc10 = null;
  93. if (bShow)
  94. {
  95. for (var k in _loc7)
  96. {
  97. oComponentParams[k] = _loc7[k];
  98. } // end of for...in
  99. _loc10 = this.attachMovie(_loc6, "_mcXtra", this.getNextHighestDepth(), oComponentParams);
  100. if (oParams.bMask)
  101. {
  102. this._sDefaultMaskType = oParams.sMaskSize;
  103. if (oParams.sMaskSize == "big" && !this.api.datacenter.Game.isFight)
  104. {
  105. this._mcXtra.setMask(this._mcCircleXtraMaskBig);
  106. }
  107. else
  108. {
  109. this._mcXtra.setMask(this._mcCircleXtraMask);
  110. } // end if
  111. } // end else if
  112. for (var k in _loc8)
  113. {
  114. this._mcXtra.addEventListener(_loc8[k], this);
  115. } // end of for...in
  116. this._mcXtra.swapDepths(this._mcCircleXtraPlacer);
  117. this._sCurrentCircleXtra = sXtraName;
  118. }
  119. else if (this._mcXtra != undefined)
  120. {
  121. for (var k in _loc8)
  122. {
  123. this._mcXtra.removeEventListener(_loc8[k], this);
  124. } // end of for...in
  125. this._mcCircleXtraPlacer.swapDepths(this._mcXtra);
  126. this._mcXtra.removeMovieClip();
  127. delete this._sCurrentCircleXtra;
  128. } // end else if
  129. return (_loc10);
  130. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement