Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package _-15e
- {
- import _-12s.Panel;
- import _-8z._-P3;
- import _-1S4._-0IL;
- import _-1rv._-1Op;
- import _-1lu._-NG;
- import _-0tX._-0QW;
- import flash.display.Bitmap;
- import com.company.assembleegameclient.ui._-0LD;
- import com.company.assembleegameclient.game.GameSprite;
- import _-0VV._-0D0;
- import _-0hV._-1zI;
- public class _-kA extends Panel
- {
- public function _-kA(param1:GameSprite) {
- super(param1);
- this.icon=_-0D0._-1HK(5972);
- this.icon.x=-4;
- this.icon.y=-8;
- addChild(this.icon);
- this.objectType=5972;
- this._-0OO.setStringBuilder(new _-1zI(this.title));
- this._-0OO.x=78;
- this._-0OO.y=28;
- addChild(this._-0OO);
- if(_-1tw())
- {
- this._-2-V();
- }
- else
- {
- this._-gY();
- }
- }
- private static var _-ov:Boolean = false;
- public static function _-1tW() : void {
- var _loc1_:_-0IL = _-P3._-14u().getInstance(_-0IL);
- var _loc2_:_-1Op = _-P3._-14u().getInstance(_-1Op);
- if(!(_loc1_==null)&&!(_loc1_._-ph==null)&&!(_loc1_._-ph.gsc_==null))
- {
- _loc2_.add(_-19s);
- _loc1_._-ph.gsc_.questFetch();
- }
- }
- public static function _-19s(param1:_-NG) : void {
- var _loc2_:int = param1.tier;
- if(_loc2_>0)
- {
- _-ov=true;
- }
- else
- {
- _-ov=false;
- }
- }
- public static function _-1tw() : Boolean {
- if((_-ov)||!(_-15o._-0M-==-1)&&_-15o._-0M-==new Date().dayUTC)
- {
- return true;
- }
- else
- {
- return false;
- }
- }
- private const _-0OO:_-0QW = _-0D0._-1Rr(16777215,18,true);
- private var icon:Bitmap;
- private var title:String = "The Tinkerer";
- private var _-9b:String = "See Offers";
- private var _-1iB:String = "Check Back Later";
- private var objectType:int;
- var _-0sY:_-0LD;
- public function _-2-V() : void {
- this._-0sY=new _-0LD(16,this._-9b);
- this._-0sY.textChanged.addOnce(this._-bp);
- addChild(this._-0sY);
- }
- public function _-gY() : void {
- this._-0sY=new _-0LD(16,this._-1iB);
- this._-0sY.textChanged.addOnce(this._-bp);
- addChild(this._-0sY);
- }
- public function init() : void {
- }
- private function _-bp() : void {
- this._-0sY.x=WIDTH/2-this._-0sY.width/2;
- this._-0sY.y=HEIGHT-this._-0sY.height-4;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement