update, i have gotten this much accomplished so far...
Code:
---------------------------------------------------------------------------------
--
-- Register with Cosmos UI
--
---------------------------------------------------------------------------------
function CharactersViewer_OnLoad()
-- Register with Cosmos
CharactersViewer_RegisterCosmos();
end
Cosmos_RegisterButton (
"Characters Viewer",
"Toon Viewer",
"Allows you to view the equipment of all your other characters no matter which one is online",
"Interface\\Icons\\Spell_Holy_BlessingOfStrength",
CharactersViewer_Toggle);
----------------------------------------------------------------------------------
--
-- Toggle hidden status
--
---------------------------------------------------------------------------------
function CharactersViewer_Toggle()
if ( CharactersViewer:IsVisible() ) then
CharactersViewer:Hide();
else
CharactersViewer:Show();
end
end
and it is giving me a button where i want it, however i am unsure of how to get it to actually do what i want it do. right now it just gives me an error saying that line 63 of the cosmosbutton.lua search of "f" gives nil value. if some one could point me in the direction of having this simply open the "characters viewer" add on interface (can be reached using /cv) it would be greatly appriciated.
on a side note can anyone tell me where i can find / how i can view the pics used for the icons?? all add ons seem to reference some \\interface\icons\... area, where is this because i really don't want to have ten add on buttons with the blessing of strength icon. thanks again