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 soyolas And I have this idea of showing the number of combo points in a bar such as slice and dice so we can see if the current slice and dice is a 1-2-3-4-5 combo point bar, or if the rupture is a 1-2-3-4-5 combo point rupture bar;

Originally posted by Tomate I don't undestand what you explain here...

I'm pretty sure he means to put a number on the bar to represent how many combo points were used. For example, if you only got a 2 point Slice and Dice, there would be a 2 on the bar. If you got a 4 point Rupture, there would be a 4 on the bar. And so on.

That said, I don't know how well it would work when your Slice and Dice is refreshed by other means, such as an Envenom.

Originally posted by soyolas So the displayed bars are already taking into account our current latency? cuse otherwise I am not seeing any extra information/pads (like the poison timer pads on the energy bar) showing the latency delay like many other castbar aaddons do, if you get what I mean.

That's it.

Originally posted by soyolas
Also can you implement non-dps bars like evasion, cloak of shadows, etc so we can concentrate all rogue bars in a single addon [/b]

Why not.

Originally posted by soyolas
And I have this idea of showing the number of combo points in a bar such as slice and dice so we can see if the current slice and dice is a 1-2-3-4-5 combo point bar, or if the rupture is a 1-2-3-4-5 combo point rupture bar;[/b]

I don't undestand what you explain here...

Originally posted by soyolas
BTW why not uploading the addon to curse? is great for those of us who use the curse client to update addons. [/b]

So the displayed bars are already taking into account our current latency? cuse otherwise I am not seeing any extra information/pads (like the poison timer pads on the energy bar) showing the latency delay like many other castbar aaddons do, if you get what I mean.

Also can you implement non-dps bars like evasion, cloak of shadows, etc so we can concentrate all rogue bars in a single addon

And I have this idea of showing the number of combo points in a bar such as slice and dice so we can see if the current slice and dice is a 1-2-3-4-5 combo point bar, or if the rupture is a 1-2-3-4-5 combo point rupture bar;

BTW why not uploading the addon to curse? is great for those of us who use the curse client to update addons.

Originally posted by Quelthydani i've found that after being out of combat for more than 15 minutes the combo points still show, but grayed out (even after the target had none on them when combat was left) it usually only displays one combo point, i'm using v4.7.7.

not a major thing, it just annoys when i think i can use a finisher and i can't.

love the addon though, i've been using it since BC

Yes, I am aware of this 'issue' but it only apear when you go out of combat and your target is still alive. If you go away from your target effectivly you can't use those combo points, but if you are close you still can use those combo points, after 15 minutes.
Maybe I should remove not used combo points on a none kill unit after 2.5 minute but theorically you still can use those CP.
Oh and there isn't a v4.7.7 yet, I know it appears in the change log but, it is more a todo than a real version.

i've found that after being out of combat for more than 15 minutes the combo points still show, but grayed out (even after the target had none on them when combat was left) it usually only displays one combo point, i'm using v4.7.7.

not a major thing, it just annoys when i think i can use a finisher and i can't.

Originally posted by monty11ez just a few comments on the latest version. First the the buff bars do not scale I don't know if this is what you were referring to with the scale slider or not, and second, unless the combo point bar is turned on the number of combo points is not shown in the energy bar. That is all for now I will let you know if anything comes up. Keep up the good work, it's much appreciated.

just a few comments on the latest version. First the the buff bars do not scale I don't know if this is what you were referring to with the scale slider or not, and second, unless the combo point bar is turned on the number of combo points is not shown in the energy bar. That is all for now I will let you know if anything comes up. Keep up the good work, it's much appreciated.