Gaming
 

FeatureFrame

From WoWWiki

(Redirected from EarthFeatureFrame)

FeatureFrame is menu system which developers may register their AddOn with.






Usage:

FeatureFrame_AddButton ( FeatureFrameRegistrationObject[name,subtext,tooltip,icon,callback,testfunction] )

Example:

FeatureFrame_AddButton (
	{
		id = "MyAddOnID";
		name = "My AddOn";
		subtext = "Is very cool";
		tooltip = "Long Tool\n Tip Text";
		icon = "Interface\\Icons\\Spell_Holy_BlessingOfStrength";
		callback = function()
			if (MinimapFrameFrame:IsVisible()) then
				HideUIPanel(MinimapFrame);
			else
				ShowUIPanel(MinimapFrame);
			end
		end;
		test = 	function()
			if (UnitInParty("party1")) then
				return true; -- The button is enabled
			else
				return false; -- The button is disabled
			end
		end
	}
);
  • Description must not be more than 2 words, you should put a longer description in the tooltip.

Download

Available at CosmosUI.org - FeatureFrame