Is it possible to add a Target Selected Alpha?
There are options for combat and health only as far as I know.
I want my hud to fade in when I target someone.
Copy Profiles doesnt work instantly. After a UIreload it does.
[2008/03/29 16:33:00-549-x1]: mHud_Threat\Threat.lua:2: Cannot find a library instance of "Threat-2.0".
Ace2\AceLibrary\AceLibrary.lua:49: in function `LibStub'
mHud_Threat\Threat.lua:2: in main chunk
---
Thats the thing, I tried to delete it, but it wouldn't let me. Is it because its one of the default bars? cause I can delete additional bars that I create, just not the original HP one.
Sorry for the slow reply.
Merl fixed bar deletion a while ago, I remember testing it after seeing the changes. If you're not using SVN updates from branches, you may want to.
Sorry about the late reply everyone, been having to much fun with the 2.4 patch ;)
@ ant1pathy: This is now possible (from r67100), here is what you do:
1. Navigate to: Modules => GradientAlpha
2. Templates - Normal
ManaTicker
Change all the Alpha bars to 0, this will hide the mana ticker.
Save.
3. Templates - Combat
[New]
Write the exact same name: ManaTicker
Save
Modify as you like, for starters just have 1 value, and set it to Alpha 1, this will make the ticker visible in combat.
Save
@ blazefire: I'm having no problem deleting my own bars, all of them. Could you supply a bit more info plz, like are you using the default profile, witch skin, and have you tried resetting your profile?
@ razoon: I'll have a look at it, I know there are some issues when changing profiles.
@ Terak: I just experimented a bit last night, bound to be something missing, but check if you have the Libs\Threat-2.0 directory. The externals where added some time after the initial commit.
Are there documentation somewhere for all the options when making a skin?
Right now I'm a bit confused about how to do skin.alphaTemplates for my bars.
(I have not read through the entire thread so if this has been answered before I'm sorry)
Edit:
Also, a question about DogTags. Let's say I want to show the HP (like "120000") if its known and othervise show it as a percent with a %-sign at the end ("100%"). How would I go about doing that? [CurHP] gets current hp and [PercentHP:Percent] would get the percent with a %-sign at the end. How would I combine these to do what I want?
Sorry Lej, there isn't any more documentation at this point, do you have a direct question, I'll do my best to answer.
skin.alphaTemplates = {
Combat = {
Rage = {
overWrite = true,
[1] = { v = 1.00, c = { a = 0.60, b = "BLEND" }},
[2] = { v = 0.00, c = { a = 1.00, b = "BLEND" }},
},
},
}
The code above creates a Alpha - Combat template, with the name Rage. If there already exists one, it overwrites it. As for the values, the keys ([1] and [2]) start at 1 and upwards as long as you need.
v = 1.00 is the value when the "c" (content) table is in effect. So when the bar is full, thats value 1 (100%), you get a a (alpha) of 0.60 (60%) and the b (BlendMode) is set to "BLEND" (default).
At v = 0.00, that's when your bar is empty, the alpha of the bar is 1.00 (100%). Everything in between is calculated, so if the bar is at 50%, you have 80% visibility.
Hope this helps you a bit along the way.
@ razoon: You're thinking about one for friendly, one for enemy and so on?
(The following is not tested, but it's intended to work)
1. Set Alpha to <Hostile> on your bars
2. Create the following templates in Modules => GradientAlpha
Hostile
Friendly
Neutral
Let me know if it works will you? I'm in a raid ATM, so can't test it myself.
@ razoon: You're thinking about one for friendly, one for enemy and so on?
(The following is not tested, but it's intended to work)
1. Set Alpha to <Hostile> on your bars
2. Create the following templates in Modules => GradientAlpha
Hostile
Friendly
Neutral
Let me know if it works will you? I'm in a raid ATM, so can't test it myself.
Well...this only affects the alpha of the Target bars.
But I actually want my own bars to fade in, when I have a target selected. And to fade out when I have no target. Doesnt matter if the target is friendly or hostile.
A question for my druid: Is it possible in someway to have the manabar always visible and at the same place and when changing to cat/bear form show another bar for rage/energy.
Basically having the druid mana bar always showing and only showing the power bar when in cat/bear?
I understand what you want to accomplish, but no, sorry Lej. The way those bars get their values are quite different. Far into the future I might make the mod more generic to allow this sort of things.
Another question if I may. Until 2.4 I used a old mHud build and it had an energy ticker showing me when I was getting energy next. I see there is a EnergyTicker folder in the mHud one but when I look in the module part of mHud config it's not there? I can see the other modules, ManaTicker, Background, Falloff, Abyss etc.
Edit: Reinstalled mHud and could see EnergyTicker on my druid. Made mHude look like I want it to and shifted into cat. Got errors.
[2008/03/30 23:14:22-47-x69]: mHud\EnergyTicker\EnergyTicker.lua:79: attempt to index field 'energyticker' (a nil value)
mHud\mTicker.lua:84: in function `OnUpdate'
mHud\mTicker.lua:54: in function <Interface\AddOns\mHud\mTicker.lua:54>
Edit2: After restarting WoW it seems to work on the Druid. But EnergyTicker doesn't show up in the modules list for my Rogue.
Sorry about that razoon, I'm running with several wow installations, got 2 versions mixed up last time, thought I'd transfered everything, apparently I missed this one :) I'll commit the fix shortly.
Edit: My installations don't always fire these errors, so thx for posting :)
@ Lej: Probably some reset profile error. About the rogue, that should be sorted now.
@ blazefire: I'm having no problem deleting my own bars, all of them. Could you supply a bit more info plz, like are you using the default profile, witch skin, and have you tried resetting your profile?
I did reset the profile, and it was the default profile, with the arcfantasy skin that I was using. I had the test bars up at the time, and when I told it to delete the default HP bar, it would reset changes I made to other bars, but the HP bar remained on screen and in the options.
Kinda what I'm after; I was hoping to have it show the pulse every 2 seconds (the time it takes to give back a bit of mana). Got what you said working though; thank you.
@ ant1pathy: The spark there illustrate when you enter the 5 second rule, non-casting regen, way would you want it to tick for every 2 tick all the time? :)
Currently the mana/energy tickers use the same graphical element. So they can't exist at the same time.
One thing you can do is remove the first line of the EnergyTicker.lua, and replace all UNIT_ENERGY with UNIT_MANA. Then remove the ManaTicker module (delete the folder or something).
That gradient error I talked about few posts back, occurs only once when I enter the game and target someone. After that you wont see the error anymore.
So, just once at entering game and targetting someone.
There are options for combat and health only as far as I know.
I want my hud to fade in when I target someone.
Copy Profiles doesnt work instantly. After a UIreload it does.
Sorry for the slow reply.
Merl fixed bar deletion a while ago, I remember testing it after seeing the changes. If you're not using SVN updates from branches, you may want to.
Of course, I might be horribly wrong.
I was using an updated version from a day or two ago when I could not delete the original HP bar. I update using the wowace updater w/externals.
@ ant1pathy: This is now possible (from r67100), here is what you do:
1. Navigate to: Modules => GradientAlpha
2. Templates - Normal
ManaTicker
Change all the Alpha bars to 0, this will hide the mana ticker.
Save.
3. Templates - Combat
[New]
Write the exact same name: ManaTicker
Save
Modify as you like, for starters just have 1 value, and set it to Alpha 1, this will make the ticker visible in combat.
Save
@ blazefire: I'm having no problem deleting my own bars, all of them. Could you supply a bit more info plz, like are you using the default profile, witch skin, and have you tried resetting your profile?
@ razoon: I'll have a look at it, I know there are some issues when changing profiles.
@ Terak: I just experimented a bit last night, bound to be something missing, but check if you have the Libs\Threat-2.0 directory. The externals where added some time after the initial commit.
Right now I'm a bit confused about how to do skin.alphaTemplates for my bars.
(I have not read through the entire thread so if this has been answered before I'm sorry)
Edit:
Also, a question about DogTags. Let's say I want to show the HP (like "120000") if its known and othervise show it as a percent with a %-sign at the end ("100%"). How would I go about doing that? [CurHP] gets current hp and [PercentHP:Percent] would get the percent with a %-sign at the end. How would I combine these to do what I want?
And what about the Target selected alpha? Is that possible you think?
The code above creates a Alpha - Combat template, with the name Rage. If there already exists one, it overwrites it. As for the values, the keys ([1] and [2]) start at 1 and upwards as long as you need.
v = 1.00 is the value when the "c" (content) table is in effect. So when the bar is full, thats value 1 (100%), you get a a (alpha) of 0.60 (60%) and the b (BlendMode) is set to "BLEND" (default).
At v = 0.00, that's when your bar is empty, the alpha of the bar is 1.00 (100%). Everything in between is calculated, so if the bar is at 50%, you have 80% visibility.
Hope this helps you a bit along the way.
@ razoon: You're thinking about one for friendly, one for enemy and so on?
(The following is not tested, but it's intended to work)
1. Set Alpha to <Hostile> on your bars
2. Create the following templates in Modules => GradientAlpha
Hostile
Friendly
Neutral
Let me know if it works will you? I'm in a raid ATM, so can't test it myself.
That helps a lot :)
Was able to understand most of the other stuff I needed from looking at other skins but the alpha templates got me a bit confused.
Well...this only affects the alpha of the Target bars.
But I actually want my own bars to fade in, when I have a target selected. And to fade out when I have no target. Doesnt matter if the target is friendly or hostile.
Basically having the druid mana bar always showing and only showing the power bar when in cat/bear?
Another question if I may. Until 2.4 I used a old mHud build and it had an energy ticker showing me when I was getting energy next. I see there is a EnergyTicker folder in the mHud one but when I look in the module part of mHud config it's not there? I can see the other modules, ManaTicker, Background, Falloff, Abyss etc.
Edit: Reinstalled mHud and could see EnergyTicker on my druid. Made mHude look like I want it to and shifted into cat. Got errors.
Edit2: After restarting WoW it seems to work on the Druid. But EnergyTicker doesn't show up in the modules list for my Rogue.
Hostile
Friendly
Neutral
I set Target Alpha to Hostile.
But sometimes I get an error when I target a mob:
Date: 2008-03-31 17:27:12
ID: 58
Error occured in: Global
Count: 1
Message: ...nterface\AddOns\mHud\GradientAlpha\GradientAlpha.lua line 92:
Usage: <unnamed>:SetBlendMode("mode")
Debug:
(tail call): ?
[C]: SetBlendMode()
...nterface\AddOns\mHud\GradientAlpha\GradientAlpha.lua:92: ?()
...gos\libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:146:
...gos\libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:146
[string "safecall Dispatcher[2]"]:4:
[string "safecall Dispatcher[2]"]:4
[C]: ?
[string "safecall Dispatcher[2]"]:13: ?()
...gos\libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:91: SendMessage()
mHud\mBar.lua:121: SetValue()
mHud\mBar.lua:17:
mHud\mBar.lua:17
[string "safecall Dispatcher[2]"]:4:
[string "safecall Dispatcher[2]"]:4
[C]: ?
[string "safecall Dispatcher[2]"]:13: ?()
...gos\libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:91: SendMessage()
mHud\mHud.lua:184: UpdateBarsForUnit()
mHud\mHud.lua:198: OnEvent()
mHud\mHud.lua:128:
mHud\mHud.lua:128
[C]: CameraOrSelectOrMoveStop()
[string "CAMERAORSELECTORMOVE"]:4:
[string "CAMERAORSELECTORMOVE"]:1
BTW. The Texture list doesnt fit on the screen. It goes from A to O and after O below the screenedge.
Edit: My installations don't always fire these errors, so thx for posting :)
@ Lej: Probably some reset profile error. About the rogue, that should be sorted now.
I did reset the profile, and it was the default profile, with the arcfantasy skin that I was using. I had the test bars up at the time, and when I told it to delete the default HP bar, it would reset changes I made to other bars, but the HP bar remained on screen and in the options.
Currently the mana/energy tickers use the same graphical element. So they can't exist at the same time.
One thing you can do is remove the first line of the EnergyTicker.lua, and replace all UNIT_ENERGY with UNIT_MANA. Then remove the ManaTicker module (delete the folder or something).
That gradient error I talked about few posts back, occurs only once when I enter the game and target someone. After that you wont see the error anymore.
So, just once at entering game and targetting someone.
Maybe you have a clue what this can be?