Think you can add a FeatureFrame window toggle button? It's easy, just optdep FeatureFrame and add a line into your loading code. Here's the spec:
Code:
--[[
-- RegisterButton
--
-- Allow you to create a button of your mod in the FeatureFrame.
--
-- 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
-- }
-- );
--
-- A button will be created in the Features Frame.
--
-- Description must not be more than 2 words, you should put a longer description in the tooltip.
--
-- ]]--
BTW, Feature Frame is a part of Cosmos, but is also standalone, just a simple place to put buttons so you don't have to remember slash commands.