GuildMemberInfo

This project has become inactive.

This project is inactive and its default file will likely not work with the most recent version of World of Warcraft. The author may have abandoned it, or it may have outlived its usefulness.

GMI 0.1

Interface for addons to include extra information on the GuildMemberInfo frame.

How to use

This is only for other addon authors that want to put extra information next to the guild frame when people are selected.

Load GuildMemberInfo

In your toc make GuildMemberInfo a dependency

## Dependencies: GuildMemberInfo

Register with GuildMemberInfo

bool = GMI:Register('AddonName', {
	lines = {
		uniqueLabel = {
				-- Required
			callback = function(GetGuildRosterInfo(i)) return newText; end,
			
				-- Optional
			label = 'Label', -- localized field label, default is uniqueLabel
			default = 'Default Value',
			height = ##, -- Special height consideration, default is 10, this requires testing
			onload = function(labelF, textF) yourFunc(labelF,textF) end, -- Function to run when the frame is created
			text = false, -- Disable creating the text frame, works well with onload
		},
	},
});

Callback Example:

function yourCallback(name, ...)
	if true then
		return 'This is '..name;
	else
		-- Returning false doen't update the text
		return false;
	end
end

To-Do

A way to unregister items

Available Modules

You must login to post a comment. Don't have an account? Register to get one!

Facts

Date created
Jun 05, 2011
Categories
Last update
Mar 13, 2013
Development stage
Inactive
License
GNU General Public License version 3 (GPLv3)
Curse link
GuildMemberInfo
Downloads
12,878
Recent files

Authors