Your browser does not support JavaScript or its disabled!
Please turn it on, or be aware that some features on this website will not work correctly.
277
Dump RootWidget widgets #25
464b | 13 lines.
UI.Button("Dump Widget Ids", function(newText)
    local tmp_string = ''
    rootWidget = g_ui.getRootWidget()

    for i, rootW in pairs(rootWidget:getChildren()) do
        tmp_string = tmp_string .. '- '.. rootW:getId() ..'\n'
        for i, widget in pairs(rootW:getChildren()) do
            tmp_string = tmp_string ..'\t'.. widget:getId()..'\n'
        end
    end

    g_resources.writeFileContents("/bot/" .. 'widget_dump.txt', tmp_string)
end)

01 May 2021