Api

object Api

API for PopupWidgets. Add, remove, and interact with popups here.

Author

fzzyhmstrs

Since

0.2.0

Functions

Link copied to clipboard
fun focusElement(element: Element)
fun focusElement(popup: PopupWidget, element: Element)

Provides an element for the current popup widget to focus on.

Link copied to clipboard
fun pop()

Removes the top widget from the current me.fzzyhmstrs.fzzy_config.screen.PopupWidgetScreen widget stack, if any. Pops the popup on the next tick.

fun pop(mouseX: Double, mouseY: Double)

Removes the top widget from the current me.fzzyhmstrs.fzzy_config.screen.PopupWidgetScreen widget stack, if any

Link copied to clipboard

Removes the top widget from the current me.fzzyhmstrs.fzzy_config.screen.PopupWidgetScreen widget stack, if any, immediately, rather than on the next tick.

Link copied to clipboard
fun push(popup: PopupWidget?, mouseX: Double? = null, mouseY: Double? = null)

Sets a PopupWidget to the current screen on the next tick, if the current screen is a me.fzzyhmstrs.fzzy_config.screen.PopupWidgetScreen

Link copied to clipboard
fun pushImmediate(popup: PopupWidget?, mouseX: Double? = null, mouseY: Double? = null)

Sets a PopupWidget to the current screen immediately, if the current screen is a me.fzzyhmstrs.fzzy_config.screen.PopupWidgetScreen