This commit is contained in:
binary-husky
2024-05-18 23:03:28 +08:00
parent 9477824ac1
commit 29daba5d2f
4 changed files with 35 additions and 14 deletions

View File

@@ -1639,8 +1639,17 @@ function close_current_pop_up_plugin(){
hide_all_elem();
}
advanced_plugin_init_code_lib = {}
function register_advanced_plugin_init_code(key, code){
advanced_plugin_init_code_lib[key] = code;
}
function run_advanced_plugin_launch_code(key){
// convert js code string to function
generate_menu(advanced_plugin_init_code_lib[key], key);
}
function on_flex_button_click(key){
run_advanced_plugin_launch_code(key);
}