Thread Tools Display Modes
06/12/14, 08:28 AM   #1
kaco76
Join Date: Apr 2014
Posts: 2
Request: Death Recap

Anyone working on an addon to disable death recap?
  Reply With Quote
06/12/14, 10:29 AM   #2
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Originally Posted by kaco76 View Post
Anyone working on an addon to disable death recap?
This should work (just copy&paste it to the end of any .lua file in your addons folder):
Lua Code:
  1. EVENT_MANAGER:RegisterForEvent("DisableDeathRecap", EVENT_PLAYER_ACTIVATED,
  2.    function(event)
  3.       EVENT_MANAGER:UnregisterForEvent("DisableDeathRecap", event)
  4.  
  5.       local isDisabled = true --disabled by default
  6.       ZO_PreHook(DEATH_RECAP, "OnPlayerDead", function() return isDisabled end)
  7.  
  8.       --use /togglerecap to switch death recap on/off
  9.       SLASH_COMMANDS["/togglerecap"] = function()
  10.             isDisabled = not isDisabled
  11.             d("Death Recap " .. (isDisabled and "disabled" or "enabled"))
  12.          end
  13.    end)

Last edited by Garkin : 06/12/14 at 10:50 AM.
  Reply With Quote
06/12/14, 10:49 AM   #3
Dieonar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 5
Yup, it's working

Last edited by Dieonar : 06/12/14 at 10:53 AM.
  Reply With Quote
06/12/14, 10:52 AM   #4
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Originally Posted by Dieonar View Post
It's not working for me,
Any error messages? I have edidted code a bit. When I post it, there was missing comma at the end of the first line.
  Reply With Quote
06/12/14, 10:56 AM   #5
Dieonar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 5
Originally Posted by Garkin View Post
Any error messages? I have edidted code a bit. When I post it, there was missing comma at the end of the first line.
I've juste edtied, my post, it's working, an conflict occured with one of my addon.

Last edited by Dieonar : 06/12/14 at 11:01 AM.
  Reply With Quote
06/13/14, 11:25 AM   #6
kaco76
Join Date: Apr 2014
Posts: 2
Awesome thanks will try it out later today.

Just tested it out and it works great. Keep up the awesome work

Last edited by kaco76 : 06/13/14 at 12:18 PM.
  Reply With Quote
06/13/14, 11:36 AM   #7
Tonyleila
 
Tonyleila's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 288
Uhm my I ask why someone woud like to disable the Death Recap?
  Reply With Quote
06/13/14, 06:06 PM   #8
tiarna
Join Date: Apr 2014
Posts: 2
an addon to save all the Death recap page.. for later consultation.. can be fine!
  Reply With Quote
06/17/14, 05:50 AM   #9
zgrssd
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 280
Originally Posted by Tonyleila View Post
Uhm my I ask why someone woud like to disable the Death Recap?
It was not there before?
I agree it does not make much sense. Especially as there is a button to turn it off already (many say it does not stick past relogs).

Different people, different goals for the UI. And this kind of stuff is what we got the Addon API for after all.
  Reply With Quote

ESOUI » AddOns » AddOn Search/Requests » Request: Death Recap


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