Created
August 12, 2021 19:41
-
-
Save Shazbot/edb8a3af536e35c030c1c29f46d5b800 to your computer and use it in GitHub Desktop.
Dump UI hierarchy in the frontend with a delay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
core:remove_listener("pj_frontend_ui_dump_real_timer_cb") | |
core:add_listener( | |
"pj_frontend_ui_dump_real_timer_cb", | |
"RealTimeTrigger", | |
function(context) | |
return context.string == "pj_frontend_ui_dump_real_timer" | |
end, | |
function() | |
print_all_uicomponent_children(core:get_ui_root()) | |
end, | |
true | |
) | |
real_timer.unregister("pj_frontend_ui_dump_real_timer") | |
real_timer.register_singleshot("pj_frontend_ui_dump_real_timer", 5000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment