ok its working now
This commit is contained in:
@@ -97,28 +97,27 @@ class UISliceSprite extends UISprite {
|
|||||||
public override function draw() @:privateAccess {
|
public override function draw() @:privateAccess {
|
||||||
checkEmptyFrame();
|
checkEmptyFrame();
|
||||||
|
|
||||||
if (alpha == 0 || _frame.type == FlxFrameType.EMPTY)
|
if (alpha == 0 || _frame.type == FlxFrameType.EMPTY) {
|
||||||
return;
|
if (__framesDirty) calculateFrames();
|
||||||
|
if (__meshDirty) __genMesh();
|
||||||
if (__framesDirty) calculateFrames();
|
|
||||||
if (__meshDirty) __genMesh();
|
for (camera in cameras)
|
||||||
|
{
|
||||||
for (camera in cameras)
|
if (!camera.visible || !camera.exists || !isOnScreen(camera))
|
||||||
{
|
continue;
|
||||||
if (!camera.visible || !camera.exists || !isOnScreen(camera))
|
|
||||||
continue;
|
getScreenPosition(_point, camera).subtractPoint(offset);
|
||||||
|
|
||||||
getScreenPosition(_point, camera).subtractPoint(offset);
|
#if !flash
|
||||||
|
camera.drawTriangles(graphic, vertices, indices, uvtData, colors, _point, blend, false, antialiasing, colorTransform, shader);
|
||||||
#if !flash
|
#else
|
||||||
camera.drawTriangles(graphic, vertices, indices, uvtData, colors, _point, blend, false, antialiasing, colorTransform, shader);
|
camera.drawTriangles(graphic, vertices, indices, uvtData, colors, _point, blend, false, antialiasing);
|
||||||
#else
|
#end
|
||||||
camera.drawTriangles(graphic, vertices, indices, uvtData, colors, _point, blend, false, antialiasing);
|
|
||||||
#end
|
#if FLX_DEBUG
|
||||||
|
FlxBasic.visibleCount++;
|
||||||
#if FLX_DEBUG
|
#end
|
||||||
FlxBasic.visibleCount++;
|
}
|
||||||
#end
|
|
||||||
}
|
}
|
||||||
|
|
||||||
super.drawMembers();
|
super.drawMembers();
|
||||||
|
|||||||
Reference in New Issue
Block a user