Codename LogoCodename Logo

funkin.editors.ui.UIButtonList

APIWiki

Constructor

View in GitHub

new(x:Float, y:Float, width:Int, height:Int, windowName:String, buttonSize:FlxPoint, ?buttonOffset:FlxPoint, ?buttonSpacing:Float)

Variables

addIcon:FlxSprite

buttonCameras:FlxCamera

buttonOffset:FlxPoint = FlxPoint.get()

buttonSize:FlxPoint = FlxPoint.get()

buttonSpacing:Float = 16

buttons:FlxTypedGroup<T> = new FlxTypedGroup<T>()

cameraSpacing:Int = 30

dragging:Bool = false

dragCallback:(T, Int, Int) ‑> Void

Methods

View in GitHub

inlineadd(button:T):Void

View in GitHub

inlineinsert(button:T, position:Int):Void

View in GitHub

inlineremove(button:T):Void

View in GitHub

inlineupdateButtonsPos(elapsed:Float):Void

Inherited Variables

Defined by UIWindow

Defined by UISliceSprite

bHeight:Int = 20

bWidth:Int = 120

drawBottom:Bool = true

drawMiddle:Bool = true

drawTop:Bool = true

framesOffset:Int = 0

incorporeal:Bool = false

Defined by UISprite

autoAlpha:Bool = true

canBeHovered:Bool = true

cursor:MouseCursor = ARROW

focused:Bool

hoverCallback:() ‑> Void = null

hovered:Bool = false

hoveredByChild:Bool = false

members:Array<FlxBasic> = []

pressed:Bool = false

selectable:Bool = true

Inherited Methods

Defined by UISliceSprite

View in GitHub

resize(w:Int, h:Int):Void

Defined by UISprite

View in GitHub

onHovered():Void

Called whenever the sprite is being hovered by the mouse.