Help with SetAtribute
Im trying to make some mini map buttons have funtions
1. open a window using SetAtribute but im not quite sure if im doing it right...i know i could use the <OnClick> xml code but id like to do it another way since im making minimap buttons refrencing a xml template and i need each one to do something different...
so if i want the button to open the window how do i write the SetAttribute code up?
Its a warlock addon im working on called Apocalypto
SummonButton:SetAttribute("?" "?");
What im looking for this to do is open the main window for Summons Monitor (by Zayla)...
the code written by the author for that is
SummonsMonitor_MainWindow_Show()
and id like to make the window open by clicking on my minimap button..
2. I'd like to have the other button i have, which also is currently functioning as a soul shard counter, to spam my help menu to the chat window with a click, again i think this can be done with SetAttribute if im not wrong
the code for that currently working off slash command is
function ApocHelp()
so that would be:
ShardButton:SetAttribute ("?" "?");
Last edited by Tatheltek : 01-10-07 at 06:03 PM.
|