07-21-16, 12:20 PM | #21 |
I reopen a really old thread, but with the 7.0 patch, the "ReverseBar" function doesn't work, and I don't have any idea why. Calling "tex:SetPoint" with any parameters doesn't seem to have any effect.
I am using a custom fork of oUF_Mono witch use this function : lua Code:
Using ReverseFill doesn't work either, because of the Smooth plugin : calling SetValue in a PostUpdate callback make the bar going from right to left continually. I'll try to hack this plugin, but this solution doesn't look very good to me. Any help appreciated, and I apologize for my bad english :-) |
|
07-25-16, 05:20 AM | #22 |
Same as j3rem1e.
I have been asking this few months ago and zork tried his best to enlighten me, but I was so stupid to understand his effort... I was damn busy for last couple of months finishing my work and finally back here to solve this old problem. Tried with haste's method: Lua Code:
as well as Monolit's method which I modified a bit to match my taste: (BUT, I definitely left a contribution comment!) Lua Code:
Unfortunately, those two approaches does not seem to work for me either... Could we please get some help regarding this? Thank you! Last edited by Layback_ : 07-25-16 at 05:27 AM. |
|
07-26-16, 10:01 AM | #23 |
If this can help you, I have fixed oUF_Mono by using the following function. Probably not the prettiest things to do as I am not an addon coder, but at least, it works and it's compatible with the Smooth plugin :-)
Code:
local ReverseBar do local ReverseSetValue = function(self, value) local minv, maxv = self:GetMinMaxValues(); self.__value = value; self:__setValue(maxv - value); end local ReverseGetValue = function(self) return self.__value; end function ReverseBar(f) s = CreateFrame("StatusBar", nil, f) s:SetReverseFill(true) s.__setValue = s.SetValue; s.SetValue = ReverseSetValue; s.__value = s:GetValue(); s.GetValue = ReverseGetValue; return s; end end |
|
07-26-16, 07:13 PM | #24 | |
I'll have a go with it Thank you !! |
||
WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » reverse status bars (again) |
«
Previous Thread
|
Next Thread
»
|
Display Modes |
Linear Mode |
Switch to Hybrid Mode |
Switch to Threaded Mode |
|
|