SliceCommander

SliceCommander
SliceCommander is an addon designed to monitor all your rogue feature in PvE. The addon frame is divided into four different parts.

Energy Bar
The First part is the Energy bar. It has a combo point counter on its left side and an energy counter on the right one.
There is also three sparks showing three different thresholds on the energy bar.
These three thresholds can be used to let you know when to press a specific key instead of spamming it; you can for example set two sparks at respectively 35 and 55 energy to know when to use mutilate or envenom if you are Assa specíed. By default, the three thresholds are set to 25, 35 and 55 but you can change their value and you can also choose to play an audio alert for each one.

Combo Point Bar
The second part is the combo point bar. It displays five rectangles in a line, one for each combo point.
When you gain a combo point, the corresponding rectangle will be colored in yellow; it will turn green if a deadly poison stack corresponding to the combo point is applied.
There is also a combo point counter in the middle of the bar.If you lose or change target the combo point become gray. At this time you could still use them for Slice and Dice or Recuperate.

Timer Bar
The third part is composed by multiple bars; one for each following timer:
-Slice and Dice
-Vendetta and its cooldown
-Rupture
-Garrote
-Deadly Poison
-Envenom buff
-Tricks of the Trade cooldown
-Recuperate
-Expose Armor
-Adrenaline Rush and its cooldown.
The spellís icon is displayed on the left side and the timer itself on the right side of each bar; you can also choose to display or not the spellís name on the bar.
Each bar is optional and can be hidden individually using the configuration menu.

The slice and dice and Rupture timers also share a special feature.
The add-on will deliver an audio alert when there is only 3s, 2s and 1s remaining either on Slice and Dice or Rupture, and audio rewards for refreshing them.

Configuration Menu
You can modify your settings through the configuration menu which can be accessed by typing "/sc" or "/slicecommander". Hereís an overview of what you can configure:
-adjust width, height and scale value of each type of bars.
-modify the texture of energy and timer bars.
-choose which timer bars are displayed.
-choose which sound is played for each alert.
-choose to display or not the name of the spell on timer bars.

This add-on should work with English, US, French, German, Spanish and Russian clients.
I will keep improving this add-on, so feel free to leave a comment.

Localization
I add translation, Currently only the following localization are implemented:

Fixed error with Haemorrhage timer because debuff timer now has the same id as the ability.

Version 6.01 For patch 6.0.0
--------------------------------

Fixes:

Fixed some errors with 6.0 patch.

Fixed errors when using without borders.

Version 5.22 For patch 5.4.0
--------------------------------

Fixes:

Fixed error when trying to create poison button to fast at login (for real this time).

Version 5.21 For patch 5.4.0
--------------------------------

Fixes:

Fixed error when trying to create poison button to fast at login.

Version 5.20 For patch 5.4.0
--------------------------------

Changes:

Bump toc for patch 5.4.

Version 5.19 For patch 5.3.0
--------------------------------

Additions:

The icon of poison reminder are now configurable.

The icon of poison reminder can now be click to re-apply poisons.

Fixes:

Fixed error with new SliceCommander install.

Version 5.18 For patch 5.3.0
--------------------------------

Fixes:

Fixed error with wow UI Scale setting to be checked.

Version 5.17 For patch 5.3.0
--------------------------------

Additions:

Rupture dot power indicator.

Changes:

Bump toc for patch 5.3.

Update AceLib

Version 5.16 For patch 5.1.0
--------------------------------

Additions:

Wound poison now count for the icon poison warning.

Changes:

Bump toc for patch 5.1.

Version 5.15 For patch 5.0.0
--------------------------------

Changes:

Armor reduction debuff timer bar will now always show even if it is applied by an other player.

Some code tweaking.

Version 5.14 For patch 5.0.0
--------------------------------

Additions:

Anticipation features.

Fixes:

Fixed error with sound settings.

Version 5.13 For patch 5.0.0
--------------------------------

Fixes:

Fixed the quick fix. (for real)

Version 5.12 For patch 5.0.0
--------------------------------

Fixes:

Fixed the quick fix.

Version 5.11 For patch 5.0.0
--------------------------------

Fixes:

Fixed error during first initialization.

Version 5.10 For patch 5.0.0
--------------------------------

Additions:

Icons are now freely movable.

Icons size can now be change.

Add poison buff reminder function: An icon can be display 10 minutes before Deadly poison ends. It does not appear in fight unless it ends. It also does not appear when mounted. A sound can be associated to this reminder.

Changes:

Shadow blades CD bar display can now be set separately.

Vendetta CD bar display can now be set separately.

Update AceLib

The movable anchor has been re-size, you can now catch it from all the moving frame side.

Version 5.01 For patch 5.0.0
--------------------------------

Fixes:

Fixed error with missing rupture declaration bar.

Version 5.00 For patch 5.0.0
--------------------------------

Additions:

Dispatch timer bar.

Killing Spree CD bar.

Crimson Tempest timer bar.

Shadowstep CD bar.

Add Shadow Blades timer and CD bar.

Fixes:

Fixed error with Find weakness debuff which is not displaying.

Fixed error with SotD icon buff which is not hiding correctly after FotD proc.

Shadow of the destroyer proc counter with an icon, display on the energy bar, It appears when you reach 29 stacks.

Fury of the destroyer timer bar and sound proc.

Changes:

Some code tweaks.

Version 4.30 For patch 4.3.0
--------------------------------

Additions:

Vanish CD bar.

Cold blood CD bar.

Global cooldown bar indicator: A thin red bar on the top energy bar.

Find weakness timer bar (not tested).

Changes:

Update Combo Point bar skin: CP are now colored from green to red and add an option to let them green colored when DP is up. When border are enable CP are now bordered not the entire bar. Each border are colored in green when DP is UP.

Rewrite the setting save format.

Rewrite the init bar function.

Rewrite the position bar function.

Version 4.24 For patch 4.3.0
--------------------------------

Fixes:

Fixed Unknown error with wrong local variable.

Version 4.23 For patch 4.3.0
--------------------------------

Additions:

Hemorrhage DOT timer bar.

Shadow dance timer and CD bar.

Changes:

Update ruRU localization.

Version 4.22 For patch 4.3.0
--------------------------------

Fixes:

Fixed an issue with getting CVAR value.

Changes:

Update missing version number.

Version 4.21 For patch 4.3.0
--------------------------------

Additions:

Russian localization (thanks to itekimasu).

Some sounds options: You can change the sound channel and sound volume of current selected channel. (I hope it will fix all sound issue).

Update the PlaySoundFile call with new parameter. It should now always call with "Master" in the second parameter. It should work like it was before they change the function.

You can now select energy ticks up to 120 if your max energy value is 120.

Version 4.7.1 For patch 4.0.0
--------------------------------

Fixes:

Fixed sound not playing issue.

Fixed move issue.

Fixed Blade Flurry icon.

Changes:

Remove Blade flurry options.

Version 4.7.0 For patch 4.0.0
--------------------------------

Additions:

Ticks markers for rupture and Recuperate.

Adrenaline Rush CD timer and timer bar.

Blade Flurry icon.

Fixes:

Fixed the loading of the addon on other class.

Version 4.6.2 For patch 4.0.0
--------------------------------

Fixes:

Fixed a bug with threshold positionnement for real now.

Fixed some issues with vendetta bar of other rogue apply on you (PvP).

Fixed some other issues.

Version 4.6.1 For patch 4.0.0
--------------------------------

Fixes:

Fix a bug with threshold positionnement.

Changes:

Remove SliceCommander.xml, the frame is now create in SliceCommander.lua.

Version 4.6.0 For patch 4.0.0
--------------------------------

Additions:

Opacity setting.

Fixes:

Fixed target change event not catching.

Changes:

The energy bar is not fadeout anymore when player is in combat.

The ability icon of each timer is not ON the timer bar anymore, it is at the left.

Added a border frame of 1 pixel around icon ability.

Script are not bound in SliceCommander.xml anymore.

Optimize the code a bit.

A lot of code refactoring (Remove about 550 lines).

The Backstab warning script (sound and icon display) is bound to UNIT_HEALTH event.

Renamed a lot of variables.

SaveVariable name is now SliceComander_Save not SliceCmdr_Save.

Remove the possibility to see all bleed effect on the target.

Version 4.5.4 For patch 4.0.0
--------------------------------

Fixes:

Fixed rupture bar not hiding.

Fixed the energy bar re-appearing at new load.

Version 4.5.3 For patch 4.0.0
--------------------------------

Fixes:

Fixed partially empty save_variable error.

Version 4.5.2 For patch 4.0.0
--------------------------------

Fixes:

Fixed of the save_variable initialization error. (for real)

Version 4.5.1 For patch 4.0.0
--------------------------------

Fixes:

Fixed of the save_variable initialization error.

Version 4.5.0 For patch 4.0.0
--------------------------------

Additions:

Threat bar.

Changes:

A new setting panel, it should fix some random issue.

Version 4.4.4 For patch 4.0.0
--------------------------------

Fixes:

Fixed the vendetta CD bar overlapping issue.

Version 4.4.3 For patch 4.0.0
--------------------------------

Fixes:

Fixed the disappearing of the Rupture bar when garrot timer end.

Changes:

Enhanced the bar order function. This function should be more handy. You can now use which index you want and more than one time an index number. One of these two bar will appear first.

Version 4.4.2 For patch 4.0.0
--------------------------------

Fixes:

Seal off the memory leak.

Changes:

The "disable right click to move" option is now apply at the ticking of the box.

Update the "disable right click to move", a Red square appear on the left of the energy bar, and the energy bar should be display. You can move the frame by dragging the red square.

Version 4.4.1 For patch 4.0.0
--------------------------------

Fixes:

Fixed missing Lib needed to run Slicecommander in standalone.

Version 4.4.0 For patch 4.0.0
--------------------------------

Additions:

You can now, choose to make the timer bar stating decrees as soon as timer start, not only at 6 sec of the end.

Version 4.3.0 For patch 4.0.0
--------------------------------

Additions:

You can now choose which bar to display and where including CP and Stun bars. (Order and Position)

Fixes:

Re-Fixed the offsetSize error.

Changes:

Slightly change the color of the bar.

Update the setting panel.

Version 4.2.3 For patch 4.0.0
--------------------------------

Fixes:

Fixed the playSoundFile error.

Version 4.2.2 For patch 4.0.0
--------------------------------

Fixes:

Fixed the offsetSize error.

Version 4.2.1 For patch 4.0.0
--------------------------------

Fixes:

Fixed the title of the Rupture panel (which was Vendetta settings).

Fixed a bug with the reset position button.

Changes:

Update how sound works. Thanks to blizzard, now we can't hear sounds play while sound is disable. So, now when SliceCommander play a sound, it in infirst re-enable sound, and play the sound after. Then it re-disable the sound.

Version 4.2.0 For patch 4.0.0
--------------------------------

Additions:

Sound for the 35% target health warning.

Option to disable Vendetta bar.

Changes:

Update the sound settings panel to work with rupture rather than the old Hunger for Blood.

Update translation (work with spellID).

Add Faerie Fire to the Armor reduction timer bar.

Version 4.1.0 For patch 4.0.0
--------------------------------

Additions:

35% target health warning for backstab with a small icon on the ennergy bar).

Originally posted by devinewedgy I have this problem too, in terms of I can't move the frame, with disable right click to move ticked or not ticked I cannot move the frame.
I really like the mod but if I can't move it then I can't use it, would it not be simpler to use slider bars in mod control menu to move the frame?

Thanks in advance.

You have to validate you choice after ticking or un-ticking the box. I mean you have to validate by pressing Ok button. After that you should be able to move the frame.
I think I should make this option automatically validate itself. I will work on it.

Originally posted by Tomate You have to validate you choice after ticking or un-ticking the box. I mean you have to validate by pressing Ok button. After that you should be able to move the frame.
I think I should make this option automatically validate itself. I will work on it.

That was the first thing I tried, thanks for the quick reply.

Ok I just found the way it moves for me, there is an invisible drag box about five mm under the bar, which I can drag by holding down the 'left' mouse button.

Originally posted by Infuriate08 I can't figure out (if it's possible) to have just slice commander sounds without any of the in-game noises. I strongly dislike hearing the attacking and voices of things I'm hitting.

No it can't be done anymore, thanks to blizzard...
A lot of people whine about it in blizzard forum so maybe it will be reverted.

Don't know if it's only me, but I've got some kind of "memory leak". Memory is increasing to 9 or 10 Mb until cleaning up by Blizzard collector and fall back to 145 kb.
Have you seen this behavior or it's just me ?

Yep I have the exact same behavior. Started with version 4.3.0. Possibly some strange interaction with another addon perhaps? I'm not getting any errors.

Originally posted by Tini Nope, I can just stand and idle in Dalaran watching it grow quickly in size.

You just logged in? Can you post a screenshot? Is this happen without others addons enable? Is this happen with previous version or just the last one? Is this happening in others places?
A lot of questions I know, I have not seen the issue, I have to reproduce it to correct it.

As per the sound issue. Blizzard knows about the issue and it was unintended. Should be fixed in Cata. For now "/console Sound_ListenerAtCharacter 0" helps. The further your camera is zoomed out the less combat noise you'll hear, but addon sound will still be 100% (great for BigWigs).

Future suggestion: Have the symbol of abilities flash when they come off CD (like power auras can do). I.e. Trix, Vendetta, Hyperspeed Accelerators, Kick, etc. And an option to turn said flash off (for those out there that are sticks in the mud).

Thanks Tomate for putting the option to have the bars grow upward in. And thanks for keeping a close eye on the comments here. <3 u

Originally posted by trueelimite As per the sound issue. Blizzard knows about the issue and it was unintended. Should be fixed in Cata. For now "/console Sound_ListenerAtCharacter 0" helps. The further your camera is zoomed out the less combat noise you'll hear, but addon sound will still be 100% (great for BigWigs).

I will try that. It should be useful.
[edit]:Yeah, I have try it in raid it is really helpful THANKS!

Originally posted by trueelimite Future suggestion: Have the symbol of abilities flash when they come off CD (like power auras can do). I.e. Trix, Vendetta, Hyperspeed Accelerators, Kick, etc. And an option to turn said flash off (for those out there that are sticks in the mud).

I will add it in my todolist. One thing, You think, I should add a icon of the CD ability which only pop and flash in the middle of the screen when the CD end.

Originally posted by trueelimite Thanks Tomate for putting the option to have the bars grow upward in. And thanks for keeping a close eye on the comments here. <3 u

I'd like the window's to display, but only if I can put them where I want to. The only thing I was able to do to move the windows was click "reset position" button. I tried messing with the "disable right click to move" button, but that didn't seem to do anything.