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.
1.7K
Dump RootWidget widgets #25
464b | 13 lines.
 --[[
  Script made by Lee (Discord: l33_) - www.trainorcreations.com
  If you want to support my work, feel free to donate at https://trainorcreations.com/donate
  PS. Stop ripping off my work and selling it as your own.
 ]]--
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
Ads