Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Embed(source="../assets/interface/status/indicator_back.png")]
- private var IndicatorImage:Class;
- public function WomanMaster(resource:ModelObjectResourceData, texture:String=null)
- {
- _state = STATE_NOTHING;
- super(resource, texture);
- checkTargetAvailability = true;
- mouseEnabled = true;
- mouseClick = true;
- initServicesTime();
- var shape:Shape = new Shape();
- shape.graphics.beginBitmapFill(BitmapAsset(new IndicatorImage()).bitmapData);
- DrawUtils.drawPie(shape.graphics, new Point(32, 32), 16, 0.5, 1, 2, 0xFFD300);
- shape.graphics.drawRect(0, 0, 64, 64);
- shape.graphics.endFill();
- shape.width = 64;
- shape.height = 64;
- indicator = new Sprite3D(shape.width, shape.height, StubHolder.drawMaterial(shape));
- indicator.alwaysOnTop = true;
- indicator.perspectiveScale = false;
- indicator.z = model.boundBox.maxZ + shape.height;
- model.addChild(indicator);
- }
Add Comment
Please, Sign In to add comment