Guest User

Untitled

a guest
Jan 27th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         [Embed(source="../assets/interface/status/indicator_back.png")]
  2.         private var IndicatorImage:Class;
  3.        
  4.         public function WomanMaster(resource:ModelObjectResourceData, texture:String=null)
  5.         {
  6.             _state = STATE_NOTHING;
  7.            
  8.             super(resource, texture);
  9.            
  10.             checkTargetAvailability = true;
  11.             mouseEnabled = true;
  12.             mouseClick = true;
  13.             initServicesTime();
  14.            
  15.             var shape:Shape = new Shape();
  16.             shape.graphics.beginBitmapFill(BitmapAsset(new IndicatorImage()).bitmapData);
  17.             DrawUtils.drawPie(shape.graphics, new Point(32, 32), 16, 0.5, 1, 2, 0xFFD300);
  18.             shape.graphics.drawRect(0, 0, 64, 64); 
  19.             shape.graphics.endFill();
  20.            
  21.             shape.width = 64;
  22.             shape.height = 64;
  23.            
  24.             indicator = new Sprite3D(shape.width, shape.height, StubHolder.drawMaterial(shape));
  25.             indicator.alwaysOnTop = true;
  26.             indicator.perspectiveScale = false;
  27.             indicator.z = model.boundBox.maxZ + shape.height;
  28.            
  29.             model.addChild(indicator);
  30.         }
Add Comment
Please, Sign In to add comment