Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #initclip 120
- if (!dofus)
- {
- _global.dofus = new Object();
- } // end if
- if (!dofus.graphics)
- {
- _global.dofus.graphics = new Object();
- } // end if
- if (!dofus.graphics.gapi)
- {
- _global.dofus.graphics.gapi = new Object();
- } // end if
- if (!dofus.graphics.gapi.ui)
- {
- _global.dofus.graphics.gapi.ui = new Object();
- } // end if
- _global.dofus.graphics.gapi.ui.ModifyTitle = function ()
- {
- super();
- };
- dofus.graphics.gapi.ui.ModifyTitle.prototype = new ank.gapi.core.UIBasicComponent();
- var _loc1 = _global.dofus.graphics.gapi.ui.ModifyTitle.prototype;
- _loc1.init = function ()
- {
- super.init(false, dofus.graphics.gapi.ui.ModifyTitle.CLASS_NAME);
- };
- _loc1.createChildren = function()
- {
- this.addToQueue({object: this, method: this.addListeners});
- this.addToQueue({object: this, method: this.initTexts});
- //Pour demander les informations au serveur, car oui... y en a besoin
- this.api.network.Player.getTitleList();
- //Il doit normalement re-send les informations : nom du titre
- };
- _loc1.__set__titlesList = function (aTitles)
- {
- //Tout le bordel pour afficher dans la liste
- var _loc3 = new ank.utils.ExtendedArray();
- var _loc4 = new ank.utils.ExtendedArray();
- var _loc5 = 0;
- while (++_loc5, _loc5 < aTitles.length)
- {
- var _loc6 = aTitles[_loc5];
- _loc4.push(_loc6);
- } // end while
- this._dgTitlesList.dataProvider = _loc3;
- };
- _loc1.addListeners = function()
- {
- this._btnClose.addEventListener("click", this);
- //Si besoin de select (orange) mais normalement non... donc je laisse sa ici quand même osef
- this._dgTitlesList.addEventListener("itemSelected", this);
- };
- _loc1.initTexts = function ()
- {
- this._winBg.title = ("Liste des titres du personnage");
- //Nom des colones de la liste
- this._dgTitlesList.columnsNames = [("Titres"), ("Appliquer")];
- };
- _loc1.click = function (oEvent)
- {
- switch (oEvent.target)
- {
- case this._btnClose:
- {
- //Close
- this.api.ui.unloadUIComponent("ModifyTitle");
- break;
- }
- } // End of switch
- };
- _loc1.addProperty("titlesList", _loc1.__set__titlesList, function ()
- {
- });
- ASSetPropFlags(_loc1, null, 1);
- _global.dofus.graphics.gapi.ui.ModifyTitle.CLASS_NAME = "ModifyTitle";
- #endinitclip
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement