Advertisement
Guest User

Untitled

a guest
Oct 14th, 2018
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #initclip 120
  2. if (!dofus)
  3. {
  4.     _global.dofus = new Object();
  5. } // end if
  6. if (!dofus.graphics)
  7. {
  8.     _global.dofus.graphics = new Object();
  9. } // end if
  10. if (!dofus.graphics.gapi)
  11. {
  12.     _global.dofus.graphics.gapi = new Object();
  13. } // end if
  14. if (!dofus.graphics.gapi.ui)
  15. {
  16.     _global.dofus.graphics.gapi.ui = new Object();
  17. } // end if
  18. _global.dofus.graphics.gapi.ui.ModifyTitle = function ()
  19. {
  20.     super();
  21. };
  22. dofus.graphics.gapi.ui.ModifyTitle.prototype = new ank.gapi.core.UIBasicComponent();
  23. var _loc1 = _global.dofus.graphics.gapi.ui.ModifyTitle.prototype;
  24. _loc1.init = function ()
  25. {
  26.     super.init(false, dofus.graphics.gapi.ui.ModifyTitle.CLASS_NAME);
  27. };
  28. _loc1.createChildren = function()
  29. {
  30.     this.addToQueue({object: this, method: this.addListeners});
  31.     this.addToQueue({object: this, method: this.initTexts});
  32.     //Pour demander les informations au serveur, car oui... y en a besoin
  33.     this.api.network.Player.getTitleList();
  34.     //Il doit normalement re-send les informations : nom du titre
  35. };
  36. _loc1.__set__titlesList = function (aTitles)
  37. {
  38.     //Tout le bordel pour afficher dans la liste
  39.     var _loc3 = new ank.utils.ExtendedArray();
  40.     var _loc4 = new ank.utils.ExtendedArray();
  41.     var _loc5 = 0;
  42.    
  43.     while (++_loc5, _loc5 < aTitles.length)
  44.     {
  45.         var _loc6 = aTitles[_loc5];
  46.         _loc4.push(_loc6);
  47.     } // end while
  48.     this._dgTitlesList.dataProvider = _loc3;
  49. };
  50. _loc1.addListeners = function()
  51. {
  52.     this._btnClose.addEventListener("click", this);
  53.     //Si besoin de select (orange) mais normalement non... donc je laisse sa ici quand même osef
  54.     this._dgTitlesList.addEventListener("itemSelected", this);
  55. };
  56. _loc1.initTexts = function ()
  57. {
  58.     this._winBg.title = ("Liste des titres du personnage");
  59.     //Nom des colones de la liste
  60.     this._dgTitlesList.columnsNames = [("Titres"), ("Appliquer")];
  61. };
  62. _loc1.click = function (oEvent)
  63. {
  64.     switch (oEvent.target)
  65.     {
  66.         case this._btnClose:
  67.         {
  68.             //Close
  69.             this.api.ui.unloadUIComponent("ModifyTitle");
  70.             break;
  71.         }
  72.     } // End of switch
  73. };
  74. _loc1.addProperty("titlesList", _loc1.__set__titlesList, function ()
  75. {
  76. });
  77. ASSetPropFlags(_loc1, null, 1);
  78. _global.dofus.graphics.gapi.ui.ModifyTitle.CLASS_NAME = "ModifyTitle";
  79. #endinitclip
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement