ok it works just gotta fix isOnScreen
This commit is contained in:
@@ -245,15 +245,26 @@ class UISliceSprite extends UISprite {
|
||||
private inline function __genUVs() {
|
||||
uvtData.length = 0;
|
||||
|
||||
__genSliceUV(topleft);
|
||||
__genSliceUV(top);
|
||||
__genSliceUV(topright);
|
||||
__genSliceUV(middleleft);
|
||||
__genSliceUV(middle);
|
||||
__genSliceUV(middleright);
|
||||
__genSliceUV(bottomleft);
|
||||
__genSliceUV(bottom);
|
||||
__genSliceUV(bottomright);
|
||||
if (drawTop) {
|
||||
__genSliceUV(topleft);
|
||||
if (bWidth > topleft.frame.width + topright.frame.width)
|
||||
__genSliceUV(top);
|
||||
__genSliceUV(topright);
|
||||
}
|
||||
|
||||
if (drawMiddle && bHeight > top.frame.height + bottom.frame.height) {
|
||||
__genSliceUV(middleleft);
|
||||
if (bWidth > (middleleft.frame.width * Math.min(bWidth/(middleleft.frame.width*2), 1)) + middleright.frame.width)
|
||||
__genSliceUV(middle);
|
||||
__genSliceUV(middleright);
|
||||
}
|
||||
|
||||
if (drawBottom) {
|
||||
__genSliceUV(bottomleft);
|
||||
if (bWidth > bottomleft.frame.width + bottomright.frame.width)
|
||||
__genSliceUV(bottom);
|
||||
__genSliceUV(bottomright);
|
||||
}
|
||||
|
||||
__framesDirty = false;
|
||||
}
|
||||
|
||||
@@ -100,6 +100,8 @@ class UISlider extends UISprite {
|
||||
valueStepper.bWidth = Std.int(FlxMath.lerp(valueStepper.bWidth, __stepperWidth, 1/2.25));
|
||||
valueStepper.follow(this, -startText.width-10 - valueStepper.bWidth - 4, (height-valueStepper.bHeight)/2);
|
||||
|
||||
@:privateAccess valueStepper.__framesDirty = true;
|
||||
|
||||
var lastBarProgress:Float = __barProgress;
|
||||
|
||||
if (selectableHitbox.hovered && FlxG.mouse.pressed) {
|
||||
|
||||
Reference in New Issue
Block a user