# ui_on_open function library

Dependencies: lib_2da, lib_anon, lib_array, lib_fn, lib_ini, lib_sfo, lib_sugar, lib_tools, lib_ui

## Description

Part of sfo-lua's core structure, this library hijacks the onOpen command of many menus to run a bunch of functions if they are installed. (I do this in part so as to control function run order, irrespective of component install order.)

## Public functions

ui_on_open_setup()=() action

Sets up the ui_on_open library's systematic hijacking of ui.menu's onOpen command. This function is called automatically by other sfo-lua libraries: it is highly unlikely that any mod will need to call it directly.

## Internal functions

These should not be called from outside the library itself.

add_chargen_bio_onopen()=() patch

add_generic_onopen()=() patch

ui_add_missing_on_opens()=() action

ui_on_open_patch()=() patch