Download
(3Kb)
Download
Updated: 12-04-22 08:56 AM
Pictures
File Info
Compatibility:
Dragonflight (10.0.2)
Updated:12-04-22 08:56 AM
Created:11-09-14 09:30 PM
Downloads:18,202
Favorites:60
MD5:

Skada Chat Frame Integrator  Popular! (More than 5000 hits)

Version: 0.5.4
by: Eternal_Lynx [More]

What's this
A simple addon to move Skada Damage Meter window to one of your Chat window.
Then you can toggle Skada window with chat tab and it looks like Skada been "integrated" into that chat window.

Many famous UI suites have this feature, but it seems there are no stand-alone versions (or maybe I didn't find it on google) so I made this.

Also available on Curse.

TL;DR Usage
Create a chat window called "Skada" and /scfi.

Usage

  1. Create chat windows you want Skada window to fit in.
  2. By default, the first Skada window will be embedded into "Skada" chat window, but there're more options now, see below.
  3. If this addon failed to embed Skada windows, use /skadacfi or /scfi to manually embed.
  4. When in doubt, /reload.

Advanced Usage
  1. You can manually embed a Skada window to any Chat window you want by using command: /scfi n x , where n is the number of Skada Window, x is the name of the chat window. For example, if you want to embed the second Skada window into Chat window called "Threat", use command /scfi 2 threat .
  2. The addon will automatically remember this operation and save it to a per-character settings file.
  3. After that you can use /scfi to embed all windows you previously done embedding.
  4. If you don't know the numbers of Skada Windows, use command "/scfi stat" to get them.
  5. If you want to reset all the settings you have done before, use command "/scfi reset" and addon will fall back to its default behaviors after a UI reload.

Available Commands
  • "/skadacfi" Equals to "/scfi".
  • /scfi : Manually embed all Skada windows configured to be embedded.
  • /scfi n x: Configure Skada window #n to embed into Chat frame "x". Only first time needed, addon will remember this, then you can use just /scfi to do all the work. (e.g. /scfi 2 threat)
  • /scfi stat: Show current Skada windows ID and Title.
  • /scfi reset: Reset this addon to its default behaviors: Only embed the first Skada window to Chat window called "Skada".
  • /scfi rm n: Manually release Skada window #n from chat window. But I recommend reset and re-integrate instead of this, because it will cause lua errors on incorrect #n and you will probably blame that on me.

Known Issues
  • This addon will automatically remove all chat messages from those chat windows Skada embedded in. This is a feature, not a bug.
  • Sometimes it will fail to embed on player login, because this addon loaded before Skada, or some lua error prevented it to run correctly. Simply /scfi to fix that.
  • Rarely it would have some issues with libWindow, whatever...
  • This is a very simple addon without any library, and it's based on hooking scripts, so if you /scfi too many times (like a thousand times or more maybe?) without reloading ui, you may encounter some performance loss. But who the hell would be bored enough do this?

P.s. If anything goes wrong just comment and I'll try to figure out why. Or revert to older but simpler versions.

v0.52
*TOC changes for BfA pre-patch.
*This is so effortless, I'm sorry.

v0.51
*TOC change to fit patch 7.20.

v0.5
*TOC change to fit patch 7.15.
*Slight modifications to make this addon more stable (no more global functions, only one global instance _G.SCFI).

v0.4c
*Only toc change to fit patch 7.03. You can just open skadacfi.toc and modify 60100 to 70000.

v0.4b
*Only toc change to fit patch 6.1. You can just open skadacfi.toc and modify 60000 to 60100.

v0.4a
*Fixed errors for first run or after changing chat frame name. (Addon itself still works under that condition.)
*Slash command "/scfi reset" will now force all Skada windows to unlock and unhidden after a UI reload.

v0.4
*Finally I got the APIs I want, now it will automatically remove all the chat messages from the selected chat windows.
*Added "/scfi rm n" command.

v0.3a
*Added some more error traps to prevent Lua error caused by mis-typed slash commands.

v0.3
*Now support multiple Skada windows.
*It may sounds easy but it's not that easy for me to code this...

v0.2
*No more ui reloads, just /skadacfi or /scfi.
*If successfully "integrated", skada window will move along with your chat window this time.
*If skada window refuse to do that above, use the slash commands again.
Optional Files (0)


Post A Reply Comment Options
Unread 01-01-15, 12:02 PM  
Kokoschlade
A Kobold Labourer
 
Kokoschlade's Avatar

Forum posts: 0
File comments: 2
Uploads: 0
This is awesome, thank you very much!
Report comment to moderator  
Reply With Quote
Unread 12-28-14, 01:57 AM  
Taet
A Deviate Faerie Dragon

Forum posts: 17
File comments: 81
Uploads: 0
i have Scada 1.4-27
and Scada chat frame integrator

sry work now, i have old version scfi

ty for addon
Last edited by Taet : 12-28-14 at 01:59 AM.
Report comment to moderator  
Reply With Quote
Unread 12-23-14, 07:31 AM  
Eternal_Lynx
An Aku'mai Servant
 
Eternal_Lynx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 31
File comments: 21
Uploads: 3
Originally Posted by Taet
function /scfi dont work for me

each time i must /reload for integrate skada to chat frame = flustrated = deleted
Is there any message showing up in your default chat frame when you use the slash command? Or some lua errors?
__________________
Moo'. Are you happy now?
Report comment to moderator  
Reply With Quote
Unread 12-22-14, 11:11 PM  
Taet
A Deviate Faerie Dragon

Forum posts: 17
File comments: 81
Uploads: 0
function /scfi dont work for me

each time i must /reload for integrate skada to chat frame = flustrated = deleted
Report comment to moderator  
Reply With Quote
Unread 11-24-14, 05:21 PM  
JDoubleU00
A Firelord
 
JDoubleU00's Avatar
AddOn Author - Click to view AddOns

Forum posts: 463
File comments: 82
Uploads: 2
Originally Posted by Eternal_Lynx
Originally Posted by rocnroll
Silly question, but can you apply this technique to other damage meters like Details?
Technically, yes.
Actually, this addon is just a complex version of a macro:
Lua Code:
  1. /run local chatframe = _G['ChatFrame4']
  2. chatframe:HookScript('OnShow', function()
  3.    for _, win in ipairs(Skada:GetWindows())
  4.       win:Show()
  5.    end
  6. end)
  7. chatframe:HookScript('OnHide', function()
  8.    for _, win in ipairs(Skada:GetWindows())
  9.       win:Hide()
  10.    end
  11. end)
which the main part is getting the windows of Skada using a built-in function.
And for Recount, it's _G.Recount.Mainwindow.

I'm not so sure but I think it's similar for Details!, since I haven't used that addon before.
I'll let you know! Thanks.
Report comment to moderator  
Reply With Quote
Unread 11-24-14, 03:07 AM  
Eternal_Lynx
An Aku'mai Servant
 
Eternal_Lynx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 31
File comments: 21
Uploads: 3
Originally Posted by rocnroll
Silly question, but can you apply this technique to other damage meters like Details?
Technically, yes.
Actually, this addon is just a complex version of a macro:
Lua Code:
  1. /run local chatframe = _G['ChatFrame4']
  2. chatframe:HookScript('OnShow', function()
  3.    for _, win in ipairs(Skada:GetWindows())
  4.       win:Show()
  5.    end
  6. end)
  7. chatframe:HookScript('OnHide', function()
  8.    for _, win in ipairs(Skada:GetWindows())
  9.       win:Hide()
  10.    end
  11. end)
which the main part is getting the windows of Skada using a built-in function.
And for Recount, it's _G.Recount.Mainwindow.

I'm not so sure but I think it's similar for Details!, since I haven't used that addon before.
__________________
Moo'. Are you happy now?
Last edited by Eternal_Lynx : 11-24-14 at 03:08 AM.
Report comment to moderator  
Reply With Quote
Unread 11-23-14, 11:22 PM  
JDoubleU00
A Firelord
 
JDoubleU00's Avatar
AddOn Author - Click to view AddOns

Forum posts: 463
File comments: 82
Uploads: 2
Silly question, but can you apply this technique to other damage meters like Details?
Report comment to moderator  
Reply With Quote
Unread 11-23-14, 03:03 AM  
grete
A Kobold Labourer

Forum posts: 0
File comments: 10
Uploads: 0
Works

One issue i had directly after installing the addon and loggin into my char, got this one:
Message: Interface\AddOns\Skadacfi\core.lua:73: attempt to index local 'chattab' (a nil value)
Time: 11/23/14 10:02:35
Count: 1
Stack: [C]: ?
Interface\AddOns\Skadacfi\core.lua:73: in function <Interface\AddOns\Skadacfi\core.lua:64>
Interface\AddOns\Skadacfi\core.lua:140: in function `ScfiCoreFunction'
Interface\AddOns\Skadacfi\core.lua:149: in function <Interface\AddOns\Skadacfi\core.lua:148>

After setting everything up the error is gone.
After relog everything stays where it belongs.

Nice work, thanks a lot!
Report comment to moderator  
Reply With Quote
Unread 11-23-14, 02:02 AM  
Eternal_Lynx
An Aku'mai Servant
 
Eternal_Lynx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 31
File comments: 21
Uploads: 3
Originally Posted by grete
Thanks for the quick response.

What about the embed command "/scfi"? Should i rename it to scfi1 in the copied addon?

Anyway i tried both it is not working like we wanted

It's not embedding anything anymore.

I checked and doublechecked everything, but i'm going to triplecheck now.

EDIT:

Triplecheck successful, found an error on my side.
Now, only the second window (copied addon) is embedded, and only
with "/scfi1".
First window "/scfi" is not embedding and shows me "type /help....." that means
the command is not recognized anymore and there must be a problem with
the aphandler section and the slash commands, which i can't identify by myself.
New version is up, now you can use /scfi n x to embed multiple skada windows.(Per-character, remember to repeat this on every alt you have.)
e.g. /scfi 2 threat to embed window #2 to chat window "Threat".
Then addon will remember this and after that /scfi will do all the tricks.
__________________
Moo'. Are you happy now?
Report comment to moderator  
Reply With Quote
Unread 11-22-14, 09:59 AM  
grete
A Kobold Labourer

Forum posts: 0
File comments: 10
Uploads: 0
Thanks for the quick response.

What about the embed command "/scfi"? Should i rename it to scfi1 in the copied addon?

Anyway i tried both it is not working like we wanted

It's not embedding anything anymore.

I checked and doublechecked everything, but i'm going to triplecheck now.

EDIT:

Triplecheck successful, found an error on my side.
Now, only the second window (copied addon) is embedded, and only
with "/scfi1".
First window "/scfi" is not embedding and shows me "type /help....." that means
the command is not recognized anymore and there must be a problem with
the aphandler section and the slash commands, which i can't identify by myself.
Last edited by grete : 11-22-14 at 11:25 AM.
Report comment to moderator  
Reply With Quote
Unread 11-22-14, 07:59 AM  
Eternal_Lynx
An Aku'mai Servant
 
Eternal_Lynx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 31
File comments: 21
Uploads: 3
Re: Finally...

Originally Posted by grete
someone made this.

Awesome, thank you.

Now, my feature request. You know what that is, don't you

Please let me integrate 2 Skada windows.
They don't have to be splitted like in Elv, thats not important in the moment, but another chat window
(or even more with different names).

Or wait, i have an idea...i could just copy the addon to another name,
change the chat window name in the lua file to "skada1" for example and somehow
fetch another "free floating" skada window?
Maybe you could point me to that so i can do it by myself?

Thanks again for the addon.
That's... actually a brilliant idea!
You can copy and rename the folder and .toc file of this addon,
open core.lua, line 35:
Lua Code:
  1. if string.lower(name) == 'skada' then
change 'skada' to 'skada1',
then line 57, 82 and 98:
Lua Code:
  1. if i == 1 then
change i == 1 to i == 2.

I'm considering making the slash command to accept arguments like:
/scfi 2 skada1
to "integrate" skada window #2 to chat tab "skada1".
__________________
Moo'. Are you happy now?
Report comment to moderator  
Reply With Quote
Unread 11-22-14, 03:53 AM  
grete
A Kobold Labourer

Forum posts: 0
File comments: 10
Uploads: 0
Finally...

someone made this.

Awesome, thank you.

Now, my feature request. You know what that is, don't you

Please let me integrate 2 Skada windows.
They don't have to be splitted like in Elv, thats not important in the moment, but another chat window
(or even more with different names).

Or wait, i have an idea...i could just copy the addon to another name,
change the chat window name in the lua file to "skada1" for example and somehow
fetch another "free floating" skada window?
Maybe you could point me to that so i can do it by myself?

Thanks again for the addon.
Last edited by grete : 11-22-14 at 04:06 AM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: