Origins: I created this to fix Carbonite's code as it doesn't allow you to control the colour of icon's added. I have posted on Carbonite's forums asking if the TINY code change could be added (as it doesn't affect anything that doesn't pass the colour to the icon) but nobody has replied so until they fix it I have created this small fix/library.
Description: This replaces some of Carbonite's functions with an almost identical copy with a slight changes:
1-3 - Small changes to the public API to get it usable again (guess it worked at some point!)
4-6 - These are three new public API's I believe are needed. They are just pass-thought's really but reduce the likely hood of problems if Carbonite changes it's code
7 - "Nx.Map:UpI(dNG)" changed from hard coded icon colours to use the icon colours you can already pass and are stored with the icon. If no colour is passed/stored then this function will work exactly the same as before.
8 - "Nx.Map:IOMD(but)" changed so that it doesn't ignore right clicks on objects on the map that aren't valid types. Instead it clicks though them to the map below. I can't see this being a problem as before it did nothing on a right click on these objects and now it just lets the user access the map hidden behind the object!
As this replaces some functions it could cause problems if another addon does the same or when Carbonite change that function and this fix isn't updated (or hopefully removed if they integrate the suggested code change!). Therefore if you intend to use this in your code ether make sure you keep it up to date or contact me and I will send you updates for your addon every time I update it!
Use: Add this file to your TOC file BEFORE the .lua files that will use it are loaded and make sure your addon has Carbonite as an optional dependency.
Facts
- Date created
- Jan 28, 2012
- Category
- Last update
- Jan 28, 2012
- Development stage
- Alpha
- License
- All Rights Reserved
- Downloads
- 17
- Recent file
- A: r0 for 4.3 Jan 28, 2012
Authors
Relationships
- Embedded library
- LibStub