SliceCommander

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

English

French

Chinese (Thanks to 老超@网易魔兽插件站 (@wowuicn))

German (Thanks to Baine)

Russian (Thanks to itekimasu)

I still need:

"esES": Spanish (Spain)

"esMX": Spanish (Mexico)

"koKR": Korean

"zhTW"

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 a 35% health target warning on it which display the backstab icon to show you when to switch Combo builder in mutilate spec.
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.

Todo list

Let choose bar position and order. [DONE v4.3.0]

Make timer bars not only decrease at 6sec of the end, but at the start. [DONE v4.4.0]

Add threat bar.[DONE v4.5.0]

Add Option to not fade out full energy bar when in combat.[DONE v4.6.0]*Not an option.

==6.03==
-Combo points should now be retain correctly. Replace the use of GetComboPoint() by UnitPower("player", 4). (thanks to angoliant)

==6.02==
-Fix issue with custom mp3 file not playing since 6.0, all files are not ogg.
-Fix issue with poison button because UnitAffectingCombat function never return nill anymore.
-Fix issue with Hemorrhage timer because debuff timer now same id as the ability.

==6.01==
-Fix some 6.0 issue.
-Fix some issue when using without border.

==5.22==
-Fix an issue when trying to create poison button to fast at loggin (for real this time).

==5.21==
-Fix an issue when trying to create poison button to fast at loggin.

==5.20==
-Bump toc for patch 5.4.

==5.19==
-Fix an issue with new slicecommander install.
-The icon of poison reminder are now clickable to re-apply poisons.
-The icon of poison reminder are now configurable.

==5.15==
-Fix armor reduction deubff timer bar that will now always show even if it is applied by an other player.
-Some code tweaking.

==5.14==
-Add anticipation support.
-Fix sound settings.

==5.13==
-Fix the quick fix. (for real)

==5.12==
-Fix the quick fix.

==5.11==
-Fix first initialization issue.

==5.10==
-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.
-Shadow blades cooldown bar display can now be set separately.
-Vendetta cooldown 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.

==4.40==
-Add Legendary proc feature.
-Add Shadow of the destroyer proc counter with an icon, display on the energy bar, It appears when you reach 29 stacks.
-Add Fury of the destroyer timer bar and sound proc.
-Some code tweaks.

==4.30== /!\ It will reset your current setting, I am sorry.
-Add Vanish CD bar.
-Add Cold blood CD bar.
-Add Global cooldown bar indicator: A thin red bar on the top energy bar.
-Add Find weakness timer bar (not tested).
-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.14==
-Add zhCN localization, thanks to 老超@网易魔兽插件站 (@wowuicn)
-Add the possibility to display health in value insteed of percentage.
-Add the possibility to hide health bar when out of combat.

==Version 4.11.0==
-Add pixel perfect to the frame.
-Add Borders like those on Tukui interface.

==Version 4.10.2==
-Replace the moving function with one integrated in SliceCommander.
-Move some function in Config.lua.
-Fix the disable setting for kick warning which not work.
-Correct some string in the setting pannel.

==Version 4.7.4==
-Fix an issue when attempt to compare number with nil in some case.
-Add missing libraries when try to run SliceCommander in stand alone. (I apologize to people which I ask to run SliceCommander alone when they have errors)

==Version 4.7.2==
-Change 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. (Bye bye the Trick to enable sound effect before playing the sound and disable it after)
-Fix ToT show setting not working.
-You can now select energy ticks up to 120 if your max energy value is 120.
-The Energy bar should correctly fade when it should.
-Add an option to disable Adrenaline Rush CD bar.

==Version 4.6.2==
-Fix a bug with threshold positionnement for real now.
-Fix some issues with vendetta bar of other rogue apply on you (PvP).
-Fix some other issues.

==Version 4.6.1==
-Fix a bug with threshold positionnement.
-Remove SliceCommander.xml, the frame is now create in SliceCommander.lua.

==Version 4.6.0==
-Added opacity setting.
-The energy bar is not fadeout anymore when player is in combat.
-Fixed target change event not catching.
-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. => This will make your setting reset.
-Remove the possibility to see all bleed effect on the target.

==Version 4.5.0==
-A new setting panel, it should fix some random issue.
-Added a threat bar.

==Version 4.4.3==
-Fix the vendetta CD bar overlapping issue.

==Version 4.4.3==
-Fix the disappearing of the Rupture bar when garrot timer end.
-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==
-Seal off the memory leak.
-The "disable right click to move" option is now apply at the ticking of the box.
-When the "disable right click to move" option is ticked, 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==
-Added a missing Lib needed to run Slicecommander in standalone.

==Version 4.4.0==
-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==
-Re-Fix the offsetSize error.
-Slightly change the color of the bar.
-Update the setting panel.
-You can now choose which bar to display and where including CP and Stun bars. (Order and Position)
/!\ You have to use value like this:
* Negative: on the top of the energy bar
* Positive: on the bottom of the energy bar
* You HAVE TO use the smallest index before.
IE: you can't use index 5 if index 1,2,3,4 are not use.

==Version 4.2.3==
-Should Fix the playSoundFile error.

==Version 4.2.2==
-Should Fix the offsetSize error.

==Version 4.2.1==
-Fix the title of the Rupture panel (which was Vendetta settings)
-Fix a bug with the reset position button
-Modified 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==
-Add sound for the 35% target health warning.
-Add a configuration to disable Vendetta bar.
-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 1.4.5==
-Added a new texture bar.
-Added a third spark energy threshold.
-Added two thin bars on energy bar which monitor Main hand and Off hand poison timer.
-Added options to enable/disable poison timer.
-Added config option for the third energy threshold.

==Version 1.4.4==
-You can now click-through the entire frame when the right click to move option is disable.
-Corrected some bug with the envenom feature.
-Corrected a bug which provided collapsing issues with the TotT bar.

==Version 1.4.3==
-Added the option to monitor the envenom buff instead of deadly poison. (it is a option you can monitor deadly poison OR envenom)
-The reset option button now have different settings. It has my currently addon configuration.

==Version 1.4.1==
-Tweaked the interface, the icon is now inside the frame.
-Corrected some bugs with size resizing.
-I greatly recomand not to use the addon scale value to make the frame look bigger. You should use Bar Width, TimeBar Height and EnergyBar Height rather than scale value. It should look better.
-Added the function to display Spell text on the timer bars.
-Added the option to disable sounds when you are out of combat.

==Version 1.3.4.1==
-Added An Expose Armor bar which monitors Hight Armor reduction debuff (your expose armor if you make it, sunder armor or expose armor applied by other rogues).
-Added bar which monitor the cooldown of Trick Of Tread with an extra blue bar.
-A few cosmetics changes, stylish icons, no transparency background.
-Added the blizzard default status bar in the list of texture.
-Added option to enable/disable the Expose Armor bar.
-Added option to monitor only our current rupture instead of the max time of the currently apply bleed effect.
-Some tweaks in the code.
-Some bug Fixes.

==Version numbering==
With cataclysm I start a new numbering system of version.
The first set of number corresponding to the first number of the current game version which is compatible with SliceCommander.
The second set corresponding to which major version the addon is. A major version is new version with new features.
The Third set corresponding to which minor version the addon is. A minor version is new version with only bug fix or cosmetic changes.

Any chance we could get expiration alerts added for Revealing Strike? (Similar to what we have to Rupt and SnD already)

Also, don't know if anyone else is experiencing this, but since 6.0, the Mario Mod sound (and some others at times) has been distorted / playing several times at the same time, but slightly off. Perhaps an issue with surround sound?

Concerning revealing strike alert maybe in some future release but not in the next one.

Concerning sound issue some other people has encountered the same issue but not me. But I investigate and found that there is a bug that can cause this issue. It will be fixed in the version 6.07 that will be release soon(tm).

Any chance we could get expiration alerts added for Revealing Strike? (Similar to what we have to Rupt and SnD already)

Also, don't know if anyone else is experiencing this, but since 6.0, the Mario Mod sound (and some others at times) has been distorted / playing several times at the same time, but slightly off. Perhaps an issue with surround sound?

Concerning revealing strike alert maybe in some future release but not in the next one.

Concerning sound issue some other people has encountered the same issue but not me. But I investigate and found that there is a bug that can cause this issue. It will be fixed in the version 6.07 that will be release soon(tm).

Any chance we could get expiration alerts added for Revealing Strike? (Similar to what we have to Rupt and SnD already)

Also, don't know if anyone else is experiencing this, but since 6.0, the Mario Mod sound (and some others at times) has been distorted / playing several times at the same time, but slightly off. Perhaps an issue with surround sound?

So if we have full timer enable can we also choose if we want the DOTs to move or be in a static position?

Currently you can't and I don't really want to wast time on a such feature but maybe one day.

Originally Posted by soyolas

Would be great if at least you can make it to WOD.

I doubt of it there is so much to do for it and I don't think I will have enought spare time to do it. And at side note there is a lot of bars and it will be a bit anoying to place theme where you want.

Originally Posted by soyolas

AH perhaps you can make it like this: ''5 (#)'' # being the number of points that Anticipation is giving you.

I don't understand... It's already the case.

Originally Posted by soyolas

Tbh I don't mind if the screen surface gets bigger for me, make it an option so ppl can choose if they like it or not.

The threshold is at 6 seconds. I do it because I think it is more handy to have bar fill down at the same rate. But there is an option to make bar fill down at start. The option is "Full Timer".

Can you let us choose the threshold value?

Originally Posted by Tomate

If the bar fill down at start yes but if it's not I have to make DOTs ticks move to the left to show the ticks.

So if we have full timer enable can we also choose if we want the DOTs to move or be in a static position?

Originally Posted by Tomate

It's a long time request and maybe I do an option for it but currently I haven't the time to.

Would be great if at least you can make it to WOD.

Originally Posted by Tomate

Concerning this option I could easily do it but In the case which you have for example 3 CP and 3 Anticipation charge it would show 6 and will miss the fact that you do not have 5 real CP. So no I will not do it.

AH perhaps you can make it like this: ''5 (#)'' # being the number of points that Anticipation is giving you.

Originally Posted by Tomate

Yes I've already thinking of it but actually when you are in raid I've already thinking that it takes too many screen surface. Maybe I could do a more visual option but I don't want to add an other bar.
Like I already said I need time to do things on this addon.

Tbh I don't mind if the screen surface gets bigger for me, make it an option so ppl can choose if they like it or not.

Why the bars only fill down when it reaches an hidden threshold like rupture, can you make them fill down from the beginning when the timer starts or at least let us set the threshold value?

The threshold is at 6 seconds. I do it because I think it is more handy to have bar fill down at the same rate. But there is an option to make bar fill down at start. The option is "Full Timer".

Originally Posted by soyolas

i suppose you could also mark the DOTs ticks on rupture on a static position and let the bar fill down.

If the bar fill down at start yes but if it's not I have to make DOTs ticks move to the left to show the ticks.

Originally Posted by soyolas

Also would be great if we could position each bar individual just like we can with the energy bar and icons. Speaking of icons can we have an option to hide them?

It's a long time request and maybe I do an option for it but currently I haven't the time to.

Originally Posted by soyolas

One more thing, regarding Anticipation talent, can you make it show the number of combo points beyond 5 on the energy bar in numbers 6-10?

Concerning this option I could easily do it but In the case which you have for example 3 CP and 3 Anticipation charge it would show 6 and will miss the fact that you do not have 5 real CP. So no I will not do it.

Originally Posted by soyolas

and on the combo point bar maybe make a second one below the original so we can see more combo points squares up to 10.

Yes I've already thinking of it but actually when you are in raid I've already thinking that it takes too many screen surface. Maybe I could do a more visual option but I don't want to add an other bar.
Like I already said I need time to do things on this addon.

Originally Posted by sajocolo

Awsome addon ! add Ferals will be great 2.

I know. I want to do several class modules for months and haven't found time to finalize the code rewrite which I have to do for it. I hope it will be done for the WoD beta version.

Why the bars only fill down when it reaches an hidden threshold like rupture, can you make them fill down from the beginning when the timer starts or at least let us set the threshold value? i suppose you could also mark the DOTs ticks on rupture on a static position and let the bar fill down. Also would be great if we could position each bar individual just like we can with the energy bar and icons. Speaking of icons can we have an option to hide them?

One more thing, regarding Anticipation talent, can you make it show the number of combo points beyond 5 on the energy bar in numbers 6-10? and on the combo point bar maybe make a second one below the original so we can see more combo points squares up to 10.

Hey Tomate, just started getting back into my rogue again, i've seen this addon for ever so i'm finally getting to use it and love it so far.

I was wondering, is there a way i could disable some of the bars/elements of the addon (mainly the threat bar and the empty space between the combo points where i believe the energy bar would be)? I don't really need the threat bar and the empty space is kinda annoying.

Hi,
Yes you could do all this. There is a bunch of options that give you the opportunity to do that.
Simply type /slicecommancer or /sc, the setting pannel should open (maybe you wil have to do that twice because blizzard broke something in a a past release but maybe it is fix now). In the setting panel you will find the possibility to disable all bars independently. There is normaly no gap between combo points bar and timers bar. Normally there is the energy bar if you choose to hide it. I suggest you to move all bars to attach them at the bottom of the erngy bar. For this you have to choose the position of each bar and change value to a positive one.

Currently the display position is like that:

...
-3
-2
-1
ENERGY BAR
1
2
3
...

One thing to note, the position is relative not absolute: If there is no bar with position 1 to display, the bar with position 2 will use the position 1 and so on...

Hey Tomate, just started getting back into my rogue again, i've seen this addon for ever so i'm finally getting to use it and love it so far.

I was wondering, is there a way i could disable some of the bars/elements of the addon (mainly the threat bar and the empty space between the combo points where i believe the energy bar would be)? I don't really need the threat bar and the empty space is kinda annoying.

Hi, I'm having a rather weird problem. The dispatch icon doesn't show anymore when blindside procs, it only shows when the target is below 35%. It used to show even above 35% when blindside proced. I've tried everything and this is driving me crazy, I even deleted cache, interface and wtf folders and started the game with only slicecommander enabled, to see if there was some sort of error or weird interaction with another addon that made that icon stop showing. It doesn't work still. Please help. Thanks.

Edit: Alright I reinstalled Wow and only added slicecommander to addons, still that dispatch icon will not show up when blindside procs. It does show but only under 35%.

Hi, I'm sorry but the dispatch icon has never show up when blindside proc... I don't know what to answer... The official version has never show the dispatch icon when there is a blindside proc...
But you right on what thing I should probably add an option to display the dispatch icon when blindside proc.