Plater Nameplates

Plater Nameplates

64M Downloads

[Feature Request] Buff special stack count x/y offset.

TheDescender opened this issue ยท 11 comments

commented

Seems to not be an option present to move the stack counter on special marked buffs/debuffs (haven't checked for normal buffs).

Would be nice to have this feature, as with the current location of my special buff icons, the health bar blocks half the stack count number.

commented

This option is currently not planned, but I'll keep it in mind.
You can use the following in a new mod on Constructor to change the alignment:
unitFrame.ExtraIconFrame:SetOption ("stack_text_anchor", "top"), stack_text_rel_anchor, stack_text_x_offset and stack_text_y_offset respectively.

commented

I feel stupid for asking this, since it's just a function call with some variables, but am I understanding correctly, that this is how this should be implemented?

image

As you can see from the image, that's not working.

commented

Yes, this looks correct but might require a reload to function.

commented

I'll just reboot. On a side note, if you're ever looking to implement offsets as an option, I notice the stack count strata is also lower than the icon swipe strata, so the dark filter will cover the counter.

commented

Nope, neither reload or restart seems to make the stack count move. This is working on your end?

commented

Ok I managed to get this working from the Nameplate Added Hook instead of the Constructor.

function (self, unitId, unitFrame, envTable)
    unitFrame.ExtraIconFrame:SetOption ("stack_text_anchor", "top")
    unitFrame.ExtraIconFrame:SetOption ("stack_text_rel_anchor", "bottom")
    unitFrame.ExtraIconFrame:SetOption ("stack_text_x_offset", 0)
    unitFrame.ExtraIconFrame:SetOption ("stack_text_y_offset", 30)
    unitFrame.ExtraIconFrame:SetOption ("cooldown_swipe_enabled", false)
    --unitFrame.ExtraIconFrame:SetOption ("show_text", false)
    --unitFrame.ExtraIconFrame:SetOption ("cooldown_edge_texture", "Interface\Cooldown\transparent")
    unitFrame.ExtraIconFrame:SetOption ("text_y_offset", 0)
end

For anyone running into this, with these settings the counter is centered to the top of the icon. show_text disables the CD text if u want that to happen. As you can guess, cooldown_edge_texture is a string that refers to an image path with the cooldown edge texture. You cannot disable the Edge texture, unless you add a custom transparent image. Otherwise it'll throw a white picture over your icon. I didn't bother doing this, but it'll probably work. You can guess what the rest does.

commented

Are you sure that you don't have any other buff special mod active? Updated seems too much. Added should suffice.

commented

And how would WA docs help here?

commented

Yeah Added seems to also work fine, Thanks! As far as I can tell, I have nothing else that interacts with my buff special window, especially not the stack counter. I tested it in constructor on a fresh plater install, which had the same issue. No clue why that doesn't work. I'll edit my post to say I put it under Added.

WA docs just helped me find show_text, cooldown_edge_texture, cooldown_swipe_enabled, etc. If these are not standard, count me lucky I guess.

commented

It still stands that the Stacks count strata is lower than the cooldown swipe and edge texture strata. Preferably I'd be able to set those as well. Can you share the variables to change the strata/layer if possible? To the same level as Cooldown should suffice. That way the swipes can stay active and won't cover the stack number.

commented

There is no option for that. I will need to have a look at that internally for a potential fix.