Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(8 Kb)
Download
Updated: 07-19-13 04:42 PM
Pictures
File Info
Compatibility:
Escalation (5.3)
Updated:07-19-13 04:42 PM
Created:11-06-10 10:29 PM
Downloads:1,718
Favorites:15
MD5:

Texture Browser

Version: 13.07.20
by: Aezay [More]

Texture Browser
This is a developer tool which allows you to browse all textures within WoW's interface.

You can shift click on a texture entry to paste the path into the chat box, and then copy it from there to insert into your code.

To open, use slash command "/tb" or "/texturebrowser".

Icon Count
As of patch 4.0.1a, a total of 6233 icons can be viewed using this tool.
As of patch 4.0.3a, a total of 7949 icons can be viewed using this tool.

Texture Browser Changes | 2013 Jul 20
- Changed the TOC version to 50300 for the 5.3 patch.
- Updated to work with the new API functions for retrieving macro icons. That is, GetMacroIcons() and GetMacroItemIcons().

Texture Browser Changes | 2010 Nov 10
- Added textures from achievements and feats of strength.
- Added textures from spells using the GetSpellInfo() function.
- No longer shows duplicate textures.
- When linking a texture path into the chat edit, it will now use double blackslash, instead of just a single one.
- Added a large 128 x 128 texture preview to the right side of the frame.
Optional Files (0)


Archived Files (2)
File Name
Version
Size
Author
Date
10.11.10
8kB
Aezay
11-10-10 11:05 AM
10.11.07
7kB
Aezay
11-06-10 10:29 PM


Post A Reply Comment Options
Unread 07-16-13, 11:07 AM  
semlar
A Molten Giant
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 622
File comments: 87
Uploads: 16
Unless you want to free up the memory every time, you could even just create the table like local MacroIcons = GetMacroIcons() outside the function.

Otherwise, you could wipe the table in the OnHide function to be more in-line with the rest of the addon.

There doesn't seem to be any downside to calling GetMacroIcons(tbl) without wiping it first, it either wipes it internally or replaces all of the entries with themselves.
semlar is online now Report comment to moderator  
Reply With Quote
Unread 07-16-13, 10:45 AM  
Aezay
A Theradrim Guardian
 
Aezay's Avatar
AddOn Author - Click to view AddOns

Forum posts: 66
File comments: 707
Uploads: 20
semlar
Yes, that was exactly what I was thinking, to create the table locally and supply the function with it. Was just wondering if it would be fine to call both GetMacroIcons(tbl) and GetMacroItemIcons(tbl) without calling wipe(tbl) in between. What I mean mean is, do those two functions support being called with non-empty tables?

I'll try and put out an update before the week is over.
Aezay is offline Report comment to moderator  
Reply With Quote
Unread 07-14-13, 07:33 PM  
semlar
A Molten Giant
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 622
File comments: 87
Uploads: 16
Originally Posted by Aezay
semlar
If that is all that is needed to make this addon work with WoW today, I could update it. Are there any other issues?
Everything seems to work aside from those 2 api functions.

GetMacroIcons returns a table of texture names, but it can also take an optional table to fill up for an argument instead of creating a new one every time it's called, so it would be marginally more efficient to create a table outside the OnShow function to fill up, but it probably doesn't matter much.
semlar is online now Report comment to moderator  
Reply With Quote
Unread 07-14-13, 06:34 PM  
Aezay
A Theradrim Guardian
 
Aezay's Avatar
AddOn Author - Click to view AddOns

Forum posts: 66
File comments: 707
Uploads: 20
semlar
If that is all that is needed to make this addon work with WoW today, I could update it. Are there any other issues?
Aezay is offline Report comment to moderator  
Reply With Quote
Unread 07-14-13, 05:45 PM  
semlar
A Molten Giant
 
semlar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 622
File comments: 87
Uploads: 16
In case someone wants to use this.. (patch 5.3)

In core.lua replace
Lua Code:
  1. for i = 1, GetNumMacroIcons() do
  2.     AddTexture(GetMacroIconInfo(i));
  3. end
  4. for i = 1, GetNumMacroItemIcons() do
  5.     AddTexture(GetMacroItemIconInfo(i));
  6. end
with
Lua Code:
  1. for i, texture in ipairs(GetMacroIcons()) do
  2.     if texture and texture ~= '' then
  3.         AddTexture('interface/icons/' .. texture)
  4.     end
  5. end
Last edited by semlar : 07-14-13 at 05:48 PM.
semlar is online now Report comment to moderator  
Reply With Quote
Unread 09-15-12, 04:45 PM  
Aezay
A Theradrim Guardian
 
Aezay's Avatar
AddOn Author - Click to view AddOns

Forum posts: 66
File comments: 707
Uploads: 20
oscarucb
I see the GetNumMacroIcons() and GetNumMacroItemIcons() was removed. This require some code changes for this addon to work again. I'll try to look into it.
Aezay is offline Report comment to moderator  
Reply With Quote
Unread 09-10-12, 01:44 AM  
oscarucb
A Murloc Raider
 
oscarucb's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 15
Uploads: 1
Broken in 5.0.4:

Date: 2012-09-10 03:42:35
ID: 1
Error occured in: Global
Count: 3
Message: ..\AddOns\TextureBrowser\core.lua line 190:
attempt to call global 'GetNumMacroIcons' (a nil value)
Debug:
TextureBrowser\core.lua:190:
TextureBrowser\core.lua:187
[C]: Show()
TextureBrowser\core.lua:362: ?()
..\FrameXML\ChatFrame.lua:4358:
..\FrameXML\ChatFrame.lua:4304
[C]: ChatEdit_ParseText()
..\FrameXML\ChatFrame.lua:4052: ChatEdit_SendText()
..\FrameXML\ChatFrame.lua:4091: ChatEdit_OnEnterPressed()
[string "*:OnEnterPressed"]:1:
[string "*:OnEnterPressed"]:1
oscarucb is offline Report comment to moderator  
Reply With Quote
Unread 12-18-10, 07:06 PM  
jbashara
A Deviate Faerie Dragon
 
jbashara's Avatar

Forum posts: 17
File comments: 35
Uploads: 0
Sorry, just to confirm then, is this only an icon browser or does it support spell textures (for use in addons like SexyMap) as well?

Thanks
__________________

"People with real courage and character always seem sinister to the rest."
- Herman Hesse, Damian
jbashara is offline Report comment to moderator  
Reply With Quote
Unread 11-07-10, 10:46 PM  
Limb0
A Cobalt Mageweaver
 
Limb0's Avatar
AddOn Author - Click to view AddOns

Forum posts: 220
File comments: 298
Uploads: 10
Originally posted by Aezay
Limb0
Just looked at that addon, it comes with a precompiled list of texture paths. I have no intention of doing that, I just want to gather as many from ingame functions etc, so I don't have to update a precompiled list.

I guess I should have named this addon for "Icon Browser" instead ^^
Oops, I didn't realize it had a list like Shared Media. Completely unintentional and blond of me (not the first time)..
Limb0 is offline Report comment to moderator  
Reply With Quote
Unread 11-07-10, 08:26 PM  
Aezay
A Theradrim Guardian
 
Aezay's Avatar
AddOn Author - Click to view AddOns

Forum posts: 66
File comments: 707
Uploads: 20
Limb0
Just looked at that addon, it comes with a precompiled list of texture paths. I have no intention of doing that, I just want to gather as many from ingame functions etc, so I don't have to update a precompiled list.

I guess I should have named this addon for "Icon Browser" instead ^^
Aezay is offline Report comment to moderator  
Reply With Quote
Unread 11-07-10, 10:01 AM  
Limb0
A Cobalt Mageweaver
 
Limb0's Avatar
AddOn Author - Click to view AddOns

Forum posts: 220
File comments: 298
Uploads: 10
Originally posted by Aezay
..got any good ideas as to where I can gather more texture paths?
You could check out the old addon, Texbrowser. I thought this was the updated version (last updated 2 years ago), but your addon adds the copy function which I prefer.

Looking forward to the next version.
Limb0 is offline Report comment to moderator  
Reply With Quote
Unread 11-07-10, 07:45 AM  
Aezay
A Theradrim Guardian
 
Aezay's Avatar
AddOn Author - Click to view AddOns

Forum posts: 66
File comments: 707
Uploads: 20
hairy_palms
Thanks, that issue will be fixed in next release.
I've also made it include textures from all achievements, as well as all spells using GetSpellInfo(), got any good ideas as to where I can gather more texture paths?
Last edited by Aezay : 11-07-10 at 07:46 AM.
Aezay is offline Report comment to moderator  
Reply With Quote
Unread 11-07-10, 06:48 AM  
hairy_palms
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 25
File comments: 40
Uploads: 7
Looks promising :)

Looks really nice, will stop me keeping a copy of the icons about to just browse filenames ^^

think ive found a small bug though, when i open it for the first time i get this error

Code:
Interface\AddOns\TextureBrowser\core.lua:51: attempt to index a nil value
Count: 1

Call Stack:
[C]: ?
Interface\AddOns\TextureBrowser\core.lua:51: in function <Interface\AddOns\TextureBrowser\core.lua:39>
Interface\AddOns\TextureBrowser\core.lua:125: in function `initFunc'
Interface\AddOns\TextureBrowser\Libs\AzDropDown.lua:173: in function <Interface\AddOns\TextureBrowser\Libs\AzDropDown.lua:155>
Interface\AddOns\TextureBrowser\Libs\AzDropDown.lua:211: in function `InitSelectedItem'
Interface\AddOns\TextureBrowser\core.lua:67: in function <Interface\AddOns\TextureBrowser\core.lua:66>
Interface\AddOns\TextureBrowser\core.lua:289: in function `value'
Interface\FrameXML\ChatFrame.lua:4127: in function `ChatEdit_ParseText'
Interface\FrameXML\ChatFrame.lua:3717: in function `ChatEdit_SendText'
Interface\FrameXML\ChatFrame.lua:3755: in function `ChatEdit_OnEnterPressed'
[string "*:OnEnterPressed"]:1: in function <[string "*:OnEnterPressed"]:1>
Last edited by hairy_palms : 11-07-10 at 06:50 AM.
hairy_palms 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.