Download
(10 Kb)
Download
Updated: 11-10-10 10:13 AM
Pictures
File Info
Updated:11-10-10 10:13 AM
Created:04-03-09 12:34 PM
Downloads:3,637
Favorites:57
MD5:
Lua Browser
Version: 10.11.10
by: Aezay [More]
Description
Using Lua Browser allows you to easily browse through the Lua environment, tables, widgets and other values.
This can be quite useful when developing addons.

The currently browsed root will have a reference in the global variable "lbRoot", this makes it easier to manipulate it using /run scripts and the likes.

Please note this is an advanced tool, do not use this unless you know what you are doing.

Controls
The Left click action depends on which item is under the mouse.
Tables and Widgets will be opened like a folder in normal file browsing. Hold down shift to try and open any possible metatables this table might have.
For functions, the function will be called, if you hold down shift, it will be called with "self" as the first parameter.

Right clicking will go back in history, to the previous browsed table.
If you hold down shift while right clicking, the key will be deleted!

You can link things into the chat editbox like normally. Open up the chat editbox, hold down shift and click an item.

Slash Commands
The slash command for Lua Browser is "/lb". Below are the valid parameters.

"/lb code <code>"
Executes the code and browses the result.

"/lb filter <word>"
You can use this to filter out what is shown, very useful in _G.

"/lb mouse"
Sometimes frames are unnamed, and the easiest way to get to them is through GetMouseFocus().

"/lb mousemeta"
Allows you to browse the meta table of the widget under the mouse.
Lua Browser Changes | 2010 Nov 10
- Changed the TOC version to 40000 for the 4.0.1 pre Cataclysm patch.
- Added a "/lb codemeta" slash command. This works exactly like the "/lb code" slash command, but will return the metatable of the code.
- Added "/luabrowser" as an alternative, to the already existing "/lb" slash command.
- Filters now searches the value of strings and numbers for a match.
- If the currently browsed root is a frame, and that frame has a name, it will now be display in the top right.

Lua Browser Changes | 2010 Jun 28
- Corrected the error that could happen when clicking on an item, which was introduced with the latest "ChatFrameEditBox" fix.

Lua Browser Changes | 2010 Jun 27
- Fixed the ChatFrameEditBox issues.

Lua Browser Changes | 2010 Feb 27
- Changed the TOC version to 30300 for the 3.3 patch.

Lua Browser Changes | 2009 May 18
- Changed the TOC version to 30100 for the 3.1 patch.
- If you move the mouse over the window showing the address of the current root, it will show a tip with how many of each data type is in this table.
- Filter settings are now saved per root, instead of a global setting, this should make browsing back and forth from _G a lot more pleasent.
- Did a few code optimisations.

Lua Browser Changes | 2009 Apr 07
- Fixed a bug that caused not all keys in a table to be shown.

Lua Browser Changes | 2009 Apr 06
- Now sets the global variables "lbRoot" to the current browsed table. This is done so you can easily work with the table in a custom script using "/run" or similar.
- Some other issues related to showing tables with metatables, is now fixed by using rawget() everywhere instead of normal table access.
- Removed some global pollution from the sort function.
- Now shows a the current table address next to the close button.
- If a table had a metatable with an "__index" function, which would return a value or give an error when accessing table[0], Lua Brower were not able to detect widget objects. This problem has been resolved by testing existance with rawget().
- Fixed an error if a table key was anything but a string or number.
- If you hold down shift when selecting a type filter, it will be selected exclusivly.
- Added the slash command "/lb mousemeta", allows you to browse the meta table of the widget under the mouse.
- Removed the global slash command "/lb global <key>", use "/lb code <code>" instead.
Optional Files (0)


Archived Files (7)
File Name
Version
Size
Author
Date
10.06.28
9kB
Aezay
06-28-10 05:00 AM
10.06.27
9kB
Aezay
06-27-10 08:26 AM
10.02.27
9kB
Aezay
02-27-10 07:50 AM
09.05.18
9kB
Aezay
05-18-09 12:24 PM
09.04.07
9kB
Aezay
04-07-09 06:16 AM
09.04.06
9kB
Aezay
04-06-09 11:45 AM
09.04.03
8kB
Aezay
04-03-09 12:34 PM


Post A Reply Comment Options
Old 04-03-09, 06:29 PM  
mangeg
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 20
Uploads: 0
amazing! This will for sure make life easier!
mangeg is offline Report comment to moderator  
Reply With Quote
Old 04-03-09, 02:53 PM  
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1176
File comments: 783
Uploads: 82
wow
Dridzt is offline Report comment to moderator  
Reply With Quote
Old 04-03-09, 02:24 PM  
p3lim
Mmmrrrggglll
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1143
File comments: 1200
Uploads: 24
Looks nice
p3lim is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.