i feel like this makes more sense
This commit is contained in:
@@ -122,9 +122,9 @@ class FunkinButton extends FunkinSprite implements IFlxInput
|
||||
var touchID:Int = -1;
|
||||
|
||||
/**
|
||||
* Whether the funkin button is a back button, button shouldn't call onDownHandler() on touch.pressed.
|
||||
* Whether the button should skip calling onDownHandler() on touch.pressed.
|
||||
*/
|
||||
public var isBackButton:Bool = false;
|
||||
public var ignoreDownHandler:Bool = false;
|
||||
|
||||
/**
|
||||
* Creates a new `FunkinButton` object.
|
||||
@@ -330,7 +330,7 @@ class FunkinButton extends FunkinSprite implements IFlxInput
|
||||
|
||||
onDownHandler();
|
||||
}
|
||||
else if (status == FunkinButtonStatus.NORMAL && !isBackButton)
|
||||
else if (status == FunkinButtonStatus.NORMAL && !ignoreDownHandler)
|
||||
{
|
||||
if (newInput.pressed)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user