Skip to content

UI functions

InertSteak edited this page Jan 8, 2026 · 1 revision

UI functions

poke_random_text(strings,config)

Returns a table of args to be sent to DynaText(args). Used by Bird Energy.

  • strings: a table of string = string, colour = HEX
  • config: a table of arguments
    • .scale or 0.32
    • .pop_in_rate or 9999999
    • .not_silent
    • .not_random_element
    • .pop_delay or 0.2011
    • .min_cycle_time or 0
poke_create_UIBox_your_collection(args)

Returns a table of nodes to be passed to create_UIBox_generic_options(args) as args.content

  • .keys: a table of Joker keys
  • .rows or 3
  • .cols or 5
  • .create_card_func: function to create the cards, defaults to the standard card definition
  • .page_text or "k_page"
  • .dynamic_sizing: if true, adapts rows and cols to the amount of given keys
poke_UIBox_link_button(args)
  • .url
  • .colour or get_site_colour(.url's domain)
  • .site_text or first_to_upper(.url's domain)
  • args.bottom_text or .url's path

Clone this wiki locally