Thread Tools Display Modes
12-17-08, 06:34 AM   #1
Azza2
A Deviate Faerie Dragon
Join Date: Apr 2008
Posts: 10
Need a simple yes/no dialog window on raid join to combat log

Hello,

Hopefully my request is quite simple, it doesn't need to be anything fancy, but I would like a dialog window to appear in the center of the screen on joining a raid asking if I wish to combat log this raid - with yes/no buttons below it.

If Yes is selected then it should run /combatlog, if No is selected then no action should be taken.

It would be greatly appreciated since I forget to combatlog our raids a lot for WWS reports. Thanks
  Reply With Quote
12-17-08, 05:23 PM   #2
Lysiander
An Aku'mai Servant
Join Date: Dec 2007
Posts: 37
I would love such an addon.
  Reply With Quote
12-17-08, 08:57 PM   #3
Cralor
Mmm... cookies!!!
 
Cralor's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2007
Posts: 772
I just made this

I am going to test it tomorrow afternoon before I release it.

I agree, the idea is good!
__________________
Never be satisfied with satisfactory.
  Reply With Quote
12-17-08, 10:50 PM   #4
Farook
A Molten Giant
 
Farook's Avatar
Join Date: Mar 2006
Posts: 595
Did you try Loggerhead already?
__________________
  Reply With Quote
12-17-08, 11:06 PM   #5
Yhor
A Pyroguard Emberseer
 
Yhor's Avatar
Join Date: May 2007
Posts: 1,077
Originally Posted by Farook View Post
Did you try Loggerhead already?
I'd have to agree, it logs automatically when you enter a zone you want to log. It just takes about 5-10 minutes to set up for everything (shouldn't take 5 minutes, but you might need to go to the restroom before you're finished).
  Reply With Quote
12-18-08, 09:49 AM   #6
Azza2
A Deviate Faerie Dragon
Join Date: Apr 2008
Posts: 10
Gave loggerhead a go but couldn't find its config options anywhere, nothing in fubar, or when I try to use broker2fubar.

/lh or /loggerhead does nothing (well /lh is lightheaded so I'm not sure if Loggerhead is using /lh too and is causing a conflict). Getting unnecessarily spammed on zone switch so have disabled for now.

edit: never mind that, found it in Addons Menu. Still, it lacks the Northrend instances.

Last edited by Azza2 : 12-18-08 at 09:57 AM.
  Reply With Quote
12-18-08, 01:43 PM   #7
Kyc
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Dec 2006
Posts: 23
Something like this should work:
Code:
local f = CreateFrame("frame")
f:SetScript("OnEvent", function(self, event, ...) if self[event] then return self[event](self, event, ...) end end)
f:RegisterEvent("RAID_INSTANCE_WELCOME")

-- set to true to automatically start the log
local autoLog = false

-- fired when entering an instance that has a reset timer
function f:RAID_INSTANCE_WELCOME()
    
    if autoLog == true then
	LoggingCombat(1)
    else
	StaticPopup_Show("ENABLE_LOGGING_ON_RAID");
    end

end

-- simple dialog
StaticPopupDialogs["ENABLE_LOGGING_ON_RAID"] = {
  text = "Do you want to start logging?",
  button1 = "Yes",
  button2 = "No",
  OnAccept = function()
      LoggingCombat(1);
  end,
  timeout = 0,
  whileDead = 1,
  hideOnEscape = 1
};
  Reply With Quote
12-18-08, 03:45 PM   #8
Cralor
Mmm... cookies!!!
 
Cralor's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2007
Posts: 772
Kyc has it pretty much covered
__________________
Never be satisfied with satisfactory.
  Reply With Quote
12-20-08, 09:35 AM   #9
Kyc
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Dec 2006
Posts: 23
For the lazy:
http://www.wowinterface.com/download...idLogging.html
  Reply With Quote
12-20-08, 12:17 PM   #10
Azza2
A Deviate Faerie Dragon
Join Date: Apr 2008
Posts: 10
Gave this a go last night, but it keeps popping up upon re-entering the raid instance after a wipe despite logging being enabled already, as well as showing when doing heroics which I don't really want to log.

Would have preferred it if it showed once when joining a "raid" group rather than having the event fired when zoning in a zone that has a reset timer, but can't have everything perfect, thanks though
  Reply With Quote
12-20-08, 01:54 PM   #11
Kyc
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Dec 2006
Posts: 23
Revised for joining a raid and only asking once per session
Code:
local f = CreateFrame("frame")
f:SetScript("OnEvent", function(self, event, ...) if self[event] then return self[event](self, event, ...) end end)
f:RegisterEvent("RAID_ROSTER_UPDATE")

-- set to true to automatically start the log
local autoLog = false
local currentlyLogging = false

-- fired when joining/starting a raid
function f:RAID_ROSTER_UPDATE()
    
    if currentlyLogging == true then
        return
    end
    if autoLog == true then
	LoggingCombat(1)
	currentlyLogging = true
    else
	StaticPopup_Show("ENABLE_LOGGING_ON_RAID");
    end

end

-- simple dialog
StaticPopupDialogs["ENABLE_LOGGING_ON_RAID"] = {
  text = "Do you want to start logging?",
  button1 = "Yes",
  button2 = "No",
  OnAccept = function()
      LoggingCombat(1);
      currentlyLogging = true
  end,
  timeout = 0,
  whileDead = 1,
  hideOnEscape = 1
};

Last edited by Kyc : 12-20-08 at 01:55 PM. Reason: oops
  Reply With Quote
12-20-08, 02:48 PM   #12
Azza2
A Deviate Faerie Dragon
Join Date: Apr 2008
Posts: 10
Cheers, much <3
  Reply With Quote
12-20-08, 04:20 PM   #13
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
clean version, in case you just want it to work with no popups

Code:
local addon = CreateFrame('Frame')
addon:RegisterEvent('RAID_ROSTER_UPDATE')
addon:SetScript('OnEvent', function()
	if(not LoggingCombat()) then
		LoggingCombat(1)
	end
end)

Last edited by p3lim : 12-20-08 at 04:23 PM.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » Need a simple yes/no dialog window on raid join to combat log

Thread Tools
Display Modes

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