Thread Tools Display Modes
01-10-07, 05:56 PM   #1
Tatheltek
A Cyclonian
AddOn Author - Click to view addons
Join Date: Dec 2006
Posts: 43
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.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Help with SetAtribute


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off