Advertisement
ossimc82

Tinker

Sep 14th, 2014
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package _-15e
  2. {
  3.    import _-12s.Panel;
  4.    import _-8z._-P3;
  5.    import _-1S4._-0IL;
  6.    import _-1rv._-1Op;
  7.    import _-1lu._-NG;
  8.    import _-0tX._-0QW;
  9.    import flash.display.Bitmap;
  10.    import com.company.assembleegameclient.ui._-0LD;
  11.    import com.company.assembleegameclient.game.GameSprite;
  12.    import _-0VV._-0D0;
  13.    import _-0hV._-1zI;
  14.  
  15.  
  16.    public class _-kA extends Panel
  17.    {
  18.          
  19.  
  20.       public function _-kA(param1:GameSprite) {
  21.          super(param1);
  22.          this.icon=_-0D0._-1HK(5972);
  23.          this.icon.x=-4;
  24.          this.icon.y=-8;
  25.          addChild(this.icon);
  26.          this.objectType=5972;
  27.          this._-0OO.setStringBuilder(new _-1zI(this.title));
  28.          this._-0OO.x=78;
  29.          this._-0OO.y=28;
  30.          addChild(this._-0OO);
  31.          if(_-1tw())
  32.          {
  33.             this._-2-V();
  34.          }
  35.          else
  36.          {
  37.             this._-gY();
  38.          }
  39.       }
  40.  
  41.       private static var _-ov:Boolean = false;
  42.  
  43.       public static function _-1tW() : void {
  44.          var _loc1_:_-0IL = _-P3._-14u().getInstance(_-0IL);
  45.          var _loc2_:_-1Op = _-P3._-14u().getInstance(_-1Op);
  46.          if(!(_loc1_==null)&&!(_loc1_._-ph==null)&&!(_loc1_._-ph.gsc_==null))
  47.          {
  48.             _loc2_.add(_-19s);
  49.             _loc1_._-ph.gsc_.questFetch();
  50.          }
  51.       }
  52.  
  53.       public static function _-19s(param1:_-NG) : void {
  54.          var _loc2_:int = param1.tier;
  55.          if(_loc2_>0)
  56.          {
  57.             _-ov=true;
  58.          }
  59.          else
  60.          {
  61.             _-ov=false;
  62.          }
  63.       }
  64.  
  65.       public static function _-1tw() : Boolean {
  66.          if((_-ov)||!(_-15o._-0M-==-1)&&_-15o._-0M-==new Date().dayUTC)
  67.          {
  68.             return true;
  69.          }
  70.          else
  71.          {
  72.             return false;
  73.          }
  74.       }
  75.  
  76.       private const _-0OO:_-0QW = _-0D0._-1Rr(16777215,18,true);
  77.  
  78.       private var icon:Bitmap;
  79.  
  80.       private var title:String = "The Tinkerer";
  81.  
  82.       private var _-9b:String = "See Offers";
  83.  
  84.       private var _-1iB:String = "Check Back Later";
  85.  
  86.       private var objectType:int;
  87.  
  88.       var _-0sY:_-0LD;
  89.  
  90.       public function _-2-V() : void {
  91.          this._-0sY=new _-0LD(16,this._-9b);
  92.          this._-0sY.textChanged.addOnce(this._-bp);
  93.          addChild(this._-0sY);
  94.       }
  95.  
  96.       public function _-gY() : void {
  97.          this._-0sY=new _-0LD(16,this._-1iB);
  98.          this._-0sY.textChanged.addOnce(this._-bp);
  99.          addChild(this._-0sY);
  100.       }
  101.  
  102.       public function init() : void {
  103.          
  104.       }
  105.  
  106.       private function _-bp() : void {
  107.          this._-0sY.x=WIDTH/2-this._-0sY.width/2;
  108.          this._-0sY.y=HEIGHT-this._-0sY.height-4;
  109.       }
  110.    }
  111.  
  112. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement