Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _loc1.showGaugeMode = function ()
- {
- if(this.api.datacenter.Game.isFight)
- {
- return;
- }
- var _loc2_ = this.api.kernel.OptionsManager.getOption("BannerGaugeMode");
- if(_loc2_ == "none")
- {
- this.setXtraFightMask(false);
- this._ccChrono.setGaugeChrono(0, undefined);
- if(this._sCurrentCircleXtra == "map") {
- this._mcXtra.setMask(this._mcCircleXtraMaskBig);
- }
- return;
- }
- this.setXtraFightMask(true);
- switch(_loc2_)
- {
- case "xp":
- {
- var _loc3_ = Math.floor((this.api.datacenter.Player.XP - this.api.datacenter.Player.XPlow) / (this.api.datacenter.Player.XPhigh - this.api.datacenter.Player.XPlow) * 100);
- var _loc4_ = 104615;
- break;
- }
- case "xpmount":
- {
- if(this.api.datacenter.Player.mount == undefined)
- {
- _loc3_ = 0;
- }
- else
- {
- _loc3_ = Math.floor((this.api.datacenter.Player.mount.xp - this.api.datacenter.Player.mount.xpMin) / (this.api.datacenter.Player.mount.xpMax - this.api.datacenter.Player.mount.xpMin) * 100);
- }
- _loc4_ = 10441125;
- break;
- }
- case "pods":
- {
- _loc3_ = Math.floor(this.api.datacenter.Player.currentWeight / this.api.datacenter.Player.maxWeight * 100);
- _loc4_ = 6340148;
- break;
- }
- case "energy":
- {
- if(this.api.datacenter.Player.EnergyMax == -1)
- {
- _loc3_ = 0;
- }
- else
- {
- _loc3_ = Math.floor(this.api.datacenter.Player.Energy / this.api.datacenter.Player.EnergyMax * 100);
- }
- _loc4_ = 10944769;
- break;
- }
- }
- if(!_global.isNaN(_loc4_))
- {
- if(_global.isNaN(_loc3_))
- {
- _loc3_ = 0;
- }
- this._ccChrono.setGaugeChrono(_loc3_, _loc4_);
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement