🐸
$
Dropdown
☰
Dropdown
Dropdown Entity created $.makeDropdown
Properties
x
//number
y
//number
w
//number
options
//string[]
background
//string
border
//string
textColour
//string
accentColour
//string
name
//string
index
//number
openDirection
//{"up" | "down"}
open
//boolean
value
//string
Methods
draw(
)
//Draws the dropdown at its current x and y co-ords
remove(
)
//Mark the image for removal at next cleanup
isHoverOnBox(
)
//Returns true when the mouse is hovering over the main box of the dropdown
isHoverOnOptions(
)
//Returns true when the mouse is hovering over the options dropdown area