mirror of
https://github.com/brues-code/pfUI.git
synced 2026-11-08 19:38:56 +00:00
Animate unit frame bars with ClassicAPI's SmoothStatusBarMixin
Health and power bars take SmoothStatusBarMixin instead of pfUI's own OnUpdate animation, so the animation no longer runs faster at higher frame rates. The speed dropdown becomes an on/off checkbox, since the mixin's rate is fixed. A new range keeps the bar's filled share, so it doesn't jump before the animation moves on.
This commit is contained in:
+1
-20
@@ -222,7 +222,7 @@ function pfUI:LoadConfig()
|
|||||||
pfUI:UpdateConfig("unitframes", nil, "ragecolor", "1,.5,.5,1")
|
pfUI:UpdateConfig("unitframes", nil, "ragecolor", "1,.5,.5,1")
|
||||||
pfUI:UpdateConfig("unitframes", nil, "focuscolor", "1,1,.75,1")
|
pfUI:UpdateConfig("unitframes", nil, "focuscolor", "1,1,.75,1")
|
||||||
|
|
||||||
pfUI:UpdateConfig("unitframes", nil, "animation_speed", "5")
|
pfUI:UpdateConfig("unitframes", nil, "animatebars", "1")
|
||||||
pfUI:UpdateConfig("unitframes", nil, "portraitalpha", "0.1")
|
pfUI:UpdateConfig("unitframes", nil, "portraitalpha", "0.1")
|
||||||
pfUI:UpdateConfig("unitframes", nil, "always2dportrait", "0")
|
pfUI:UpdateConfig("unitframes", nil, "always2dportrait", "0")
|
||||||
pfUI:UpdateConfig("unitframes", nil, "portraittexture", "1")
|
pfUI:UpdateConfig("unitframes", nil, "portraittexture", "1")
|
||||||
@@ -1143,25 +1143,6 @@ function pfUI:MigrateConfig()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- migrating animation_speed (> 3.1.2)
|
|
||||||
if checkversion(3, 1, 2) then
|
|
||||||
if tonumber(pfUI_config.unitframes.animation_speed) >= 13 then
|
|
||||||
pfUI_config.unitframes.animation_speed = "13"
|
|
||||||
elseif tonumber(pfUI_config.unitframes.animation_speed) >= 8 then
|
|
||||||
pfUI_config.unitframes.animation_speed = "8"
|
|
||||||
elseif tonumber(pfUI_config.unitframes.animation_speed) >= 5 then
|
|
||||||
pfUI_config.unitframes.animation_speed = "5"
|
|
||||||
elseif tonumber(pfUI_config.unitframes.animation_speed) >= 3 then
|
|
||||||
pfUI_config.unitframes.animation_speed = "3"
|
|
||||||
elseif tonumber(pfUI_config.unitframes.animation_speed) >= 2 then
|
|
||||||
pfUI_config.unitframes.animation_speed = "2"
|
|
||||||
elseif tonumber(pfUI_config.unitframes.animation_speed) >= 1 then
|
|
||||||
pfUI_config.unitframes.animation_speed = "1"
|
|
||||||
else
|
|
||||||
pfUI_config.unitframes.animation_speed = "5"
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
-- migrating legacy buff/debuff naming (> 3.5.0)
|
-- migrating legacy buff/debuff naming (> 3.5.0)
|
||||||
if checkversion(3, 5, 0) then
|
if checkversion(3, 5, 0) then
|
||||||
local unitframes = { "player", "target", "focus", "group", "grouptarget", "grouppet", "raid", "ttarget", "pet", "ptarget", "fallback" }
|
local unitframes = { "player", "target", "focus", "group", "grouptarget", "grouppet", "raid", "ttarget", "pet", "ptarget", "fallback" }
|
||||||
|
|||||||
+10
-49
@@ -2,63 +2,30 @@
|
|||||||
setfenv(1, pfUI:GetEnvironment())
|
setfenv(1, pfUI:GetEnvironment())
|
||||||
|
|
||||||
do -- statusbars
|
do -- statusbars
|
||||||
local animations = {}
|
|
||||||
local stepsize
|
|
||||||
|
|
||||||
-- native StatusBar methods the bar overrides
|
-- native StatusBar methods the bar overrides
|
||||||
local statusbar = CreateFrame("StatusBar")
|
local statusbar = CreateFrame("StatusBar")
|
||||||
local SetValue, SetMinMaxValues = statusbar.SetValue, statusbar.SetMinMaxValues
|
local SetValue, SetMinMaxValues = statusbar.SetValue, statusbar.SetMinMaxValues
|
||||||
local SetOrientation, SetFrameLevel = statusbar.SetOrientation, statusbar.SetFrameLevel
|
local SetOrientation, SetFrameLevel = statusbar.SetOrientation, statusbar.SetFrameLevel
|
||||||
|
|
||||||
local animate = CreateFrame("Frame", "pfStatusBarAnimation", UIParent)
|
-- SmoothStatusBarMixin animates the bar through SetValue, so this is the
|
||||||
animate:SetScript("OnUpdate", function()
|
-- shown value; SetSmoothedValue sets the target
|
||||||
stepsize = tonumber(pfUI_config.unitframes.animation_speed)
|
|
||||||
|
|
||||||
for bar in pairs(animations) do
|
|
||||||
if not bar.val_ or abs(bar.val_ - bar.val) < stepsize then
|
|
||||||
bar:DisplayValue(bar.val)
|
|
||||||
elseif bar.val ~= bar.val_ then
|
|
||||||
bar:DisplayValue(bar.val_ + min((bar.val-bar.val_) / stepsize, max(bar.val-bar.val_, 30 / GetFramerate())))
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end)
|
|
||||||
|
|
||||||
local handlers = {
|
local handlers = {
|
||||||
["DisplayValue"] = function(self, val)
|
["SetValue"] = function(self, val)
|
||||||
local smin, smax = self:GetMinMaxValues()
|
local smin, smax = self:GetMinMaxValues()
|
||||||
val = Clamp(val, smin, smax)
|
val = Clamp(val, smin, smax)
|
||||||
|
|
||||||
-- remove animation queue
|
|
||||||
if val == self.val_ then
|
|
||||||
animations[self] = nil
|
|
||||||
end
|
|
||||||
|
|
||||||
-- set current visible value
|
|
||||||
self.val_ = val
|
|
||||||
SetValue(self, val)
|
SetValue(self, val)
|
||||||
|
|
||||||
-- the background fills the missing part, all of an empty range
|
-- the background fills the missing part, all of an empty range
|
||||||
self.bg:SetValue(smax > smin and (smax - val) / (smax - smin) or 1)
|
self.bg:SetValue(smax > smin and (smax - val) / (smax - smin) or 1)
|
||||||
end,
|
end,
|
||||||
|
|
||||||
["SetMinMaxValues"] = function(self, smin, smax, smooth)
|
-- the fill keeps its share of the bar, so a new range doesn't make it
|
||||||
-- smoothen the transition by keeping the value at the same percentage as before
|
-- jump before the smoothed value moves on from there
|
||||||
local _, oldmax = self:GetMinMaxValues()
|
["SetMinMaxValues"] = function(self, smin, smax)
|
||||||
if smooth and oldmax > 0 and smax > 0 and oldmax ~= smax then
|
local oldmin, oldmax = self:GetMinMaxValues()
|
||||||
self.val_ = (self.val_ or self.val) / oldmax * smax
|
local share = oldmax > oldmin and (self:GetValue() - oldmin) / (oldmax - oldmin) or 0
|
||||||
end
|
|
||||||
|
|
||||||
SetMinMaxValues(self, smin, smax)
|
SetMinMaxValues(self, smin, smax)
|
||||||
self:DisplayValue(self.val_ or self.val)
|
self:SetValue(smin + share * (smax - smin))
|
||||||
end,
|
|
||||||
|
|
||||||
["SetValue"] = function(self, val)
|
|
||||||
self.val = val or 0
|
|
||||||
|
|
||||||
-- start animation on difference
|
|
||||||
if self.val_ ~= self.val then
|
|
||||||
animations[self] = true
|
|
||||||
end
|
|
||||||
end,
|
end,
|
||||||
|
|
||||||
["SetStatusBarBackgroundColor"] = function(self, r, g, b, a)
|
["SetStatusBarBackgroundColor"] = function(self, r, g, b, a)
|
||||||
@@ -82,7 +49,6 @@ do -- statusbars
|
|||||||
local f = CreateFrame("StatusBar", name, parent)
|
local f = CreateFrame("StatusBar", name, parent)
|
||||||
SetMinMaxValues(f, 0, 100)
|
SetMinMaxValues(f, 0, 100)
|
||||||
SetValue(f, 0)
|
SetValue(f, 0)
|
||||||
f.val = 0
|
|
||||||
|
|
||||||
f.bg = CreateFrame("StatusBar", nil, f)
|
f.bg = CreateFrame("StatusBar", nil, f)
|
||||||
f.bg:SetFrameLevel(f:GetFrameLevel() - 1)
|
f.bg:SetFrameLevel(f:GetFrameLevel() - 1)
|
||||||
@@ -91,12 +57,7 @@ do -- statusbars
|
|||||||
f.bg:SetMinMaxValues(0, 1)
|
f.bg:SetMinMaxValues(0, 1)
|
||||||
f.bg:SetValue(1)
|
f.bg:SetValue(1)
|
||||||
|
|
||||||
-- add all handler functions to the object
|
return Mixin(f, SmoothStatusBarMixin, handlers)
|
||||||
for name, func in pairs(handlers) do
|
|
||||||
f[name] = func
|
|
||||||
end
|
|
||||||
|
|
||||||
return f
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
+17
-8
@@ -1700,6 +1700,15 @@ function pfUI.uf:CreateUnitFrame(unit, id, config, tick)
|
|||||||
return f
|
return f
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- animates a health or power bar to its new value, or sets it at once
|
||||||
|
local function SetBarValue(bar, value)
|
||||||
|
if C.unitframes.animatebars == "1" then
|
||||||
|
bar:SetSmoothedValue(value)
|
||||||
|
else
|
||||||
|
bar:ResetSmoothedValue(value)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
function pfUI.uf:RefreshUnitState(unit)
|
function pfUI.uf:RefreshUnitState(unit)
|
||||||
local alpha = unit.alpha_visible
|
local alpha = unit.alpha_visible
|
||||||
local unlock = pfUI.unlock and pfUI.unlock:IsShown() or nil
|
local unlock = pfUI.unlock and pfUI.unlock:IsShown() or nil
|
||||||
@@ -1707,10 +1716,10 @@ function pfUI.uf:RefreshUnitState(unit)
|
|||||||
if not UnitIsConnected(unit.label .. unit.id) and not unlock then
|
if not UnitIsConnected(unit.label .. unit.id) and not unlock then
|
||||||
-- offline
|
-- offline
|
||||||
alpha = unit.alpha_offline
|
alpha = unit.alpha_offline
|
||||||
unit.hp.bar:SetMinMaxValues(0, 100, true)
|
unit.hp.bar:SetMinMaxValues(0, 100)
|
||||||
unit.power.bar:SetMinMaxValues(0, 100, true)
|
unit.power.bar:SetMinMaxValues(0, 100)
|
||||||
unit.hp.bar:SetValue(0)
|
SetBarValue(unit.hp.bar, 0)
|
||||||
unit.power.bar:SetValue(0)
|
SetBarValue(unit.power.bar, 0)
|
||||||
elseif unit.config.faderange == "1" and not pfUI.api.UnitInRange(unit.label .. unit.id, 4) and not unlock then
|
elseif unit.config.faderange == "1" and not pfUI.api.UnitInRange(unit.label .. unit.id, 4) and not unlock then
|
||||||
alpha = unit.alpha_outrange
|
alpha = unit.alpha_outrange
|
||||||
end
|
end
|
||||||
@@ -2237,11 +2246,11 @@ function pfUI.uf:RefreshUnit(unit, component)
|
|||||||
hp = hpmax - hp
|
hp = hpmax - hp
|
||||||
end
|
end
|
||||||
|
|
||||||
unit.hp.bar:SetMinMaxValues(0, hpmax, true)
|
unit.hp.bar:SetMinMaxValues(0, hpmax)
|
||||||
unit.hp.bar:SetValue(hp)
|
SetBarValue(unit.hp.bar, hp)
|
||||||
|
|
||||||
unit.power.bar:SetMinMaxValues(0, powermax, true)
|
unit.power.bar:SetMinMaxValues(0, powermax)
|
||||||
unit.power.bar:SetValue(power)
|
SetBarValue(unit.power.bar, power)
|
||||||
|
|
||||||
-- Hide power bar text for NPCs without real power (power == 0)
|
-- Hide power bar text for NPCs without real power (power == 0)
|
||||||
local isNPC = not UnitIsPlayer(unitstr) and not UnitPlayerControlled(unitstr)
|
local isNPC = not UnitIsPlayer(unitstr) and not UnitPlayerControlled(unitstr)
|
||||||
|
|||||||
Vendored
+1
-2
@@ -32,6 +32,7 @@ pfUI_translation["deDE"] = {
|
|||||||
["Anchor Bags Above Chat"] = nil,
|
["Anchor Bags Above Chat"] = nil,
|
||||||
["A new installation of |cff33ffccpf|rUI ships with 4 prebuilt design profiles. Click below if you wish to load one of these profiles."] = nil,
|
["A new installation of |cff33ffccpf|rUI ships with 4 prebuilt design profiles. Click below if you wish to load one of these profiles."] = nil,
|
||||||
["A new version is available"] = nil,
|
["A new version is available"] = nil,
|
||||||
|
["Animate Health And Power Bars"] = nil,
|
||||||
["Appearance"] = nil,
|
["Appearance"] = nil,
|
||||||
["Ascending"] = nil,
|
["Ascending"] = nil,
|
||||||
["Author"] = nil,
|
["Author"] = nil,
|
||||||
@@ -371,7 +372,6 @@ pfUI_translation["deDE"] = {
|
|||||||
["Health"] = nil,
|
["Health"] = nil,
|
||||||
["Health - Auto"] = nil,
|
["Health - Auto"] = nil,
|
||||||
["Healthbar"] = nil,
|
["Healthbar"] = nil,
|
||||||
["Healthbar Animation Speed"] = nil,
|
|
||||||
["Health Bar Color"] = nil,
|
["Health Bar Color"] = nil,
|
||||||
["Healthbar Embedded"] = nil,
|
["Healthbar Embedded"] = nil,
|
||||||
["Healthbar Height"] = nil,
|
["Healthbar Height"] = nil,
|
||||||
@@ -433,7 +433,6 @@ pfUI_translation["deDE"] = {
|
|||||||
["Inherit Default Colors"] = nil,
|
["Inherit Default Colors"] = nil,
|
||||||
["Inputbox Height"] = nil,
|
["Inputbox Height"] = nil,
|
||||||
["Inputbox Width"] = nil,
|
["Inputbox Width"] = nil,
|
||||||
["Instant"] = nil,
|
|
||||||
["Integrations"] = nil,
|
["Integrations"] = nil,
|
||||||
["Invert Health Bar"] = nil,
|
["Invert Health Bar"] = nil,
|
||||||
["is not allowed in profile name"] = nil,
|
["is not allowed in profile name"] = nil,
|
||||||
|
|||||||
Vendored
+1
-2
@@ -33,6 +33,7 @@ pfUI_translation["enUS"] = {
|
|||||||
["Anchor Bags Above Chat"] = nil,
|
["Anchor Bags Above Chat"] = nil,
|
||||||
["A new installation of |cff33ffccpf|rUI ships with 4 prebuilt design profiles. Click below if you wish to load one of these profiles."] = nil,
|
["A new installation of |cff33ffccpf|rUI ships with 4 prebuilt design profiles. Click below if you wish to load one of these profiles."] = nil,
|
||||||
["A new version is available"] = nil,
|
["A new version is available"] = nil,
|
||||||
|
["Animate Health And Power Bars"] = nil,
|
||||||
["Appearance"] = nil,
|
["Appearance"] = nil,
|
||||||
["Ascending"] = nil,
|
["Ascending"] = nil,
|
||||||
["Author"] = nil,
|
["Author"] = nil,
|
||||||
@@ -381,7 +382,6 @@ pfUI_translation["enUS"] = {
|
|||||||
["Health"] = nil,
|
["Health"] = nil,
|
||||||
["Health - Auto"] = nil,
|
["Health - Auto"] = nil,
|
||||||
["Healthbar"] = nil,
|
["Healthbar"] = nil,
|
||||||
["Healthbar Animation Speed"] = nil,
|
|
||||||
["Health Bar Color"] = nil,
|
["Health Bar Color"] = nil,
|
||||||
["Healthbar Embedded"] = nil,
|
["Healthbar Embedded"] = nil,
|
||||||
["Healthbar Height"] = nil,
|
["Healthbar Height"] = nil,
|
||||||
@@ -444,7 +444,6 @@ pfUI_translation["enUS"] = {
|
|||||||
["Inherit Default Colors"] = nil,
|
["Inherit Default Colors"] = nil,
|
||||||
["Inputbox Height"] = nil,
|
["Inputbox Height"] = nil,
|
||||||
["Inputbox Width"] = nil,
|
["Inputbox Width"] = nil,
|
||||||
["Instant"] = nil,
|
|
||||||
["Integrations"] = nil,
|
["Integrations"] = nil,
|
||||||
["Invert Health Bar"] = nil,
|
["Invert Health Bar"] = nil,
|
||||||
["is not allowed in profile name"] = nil,
|
["is not allowed in profile name"] = nil,
|
||||||
|
|||||||
Vendored
+1
-2
@@ -32,6 +32,7 @@ pfUI_translation["esES"] = {
|
|||||||
["Anchor Bags Above Chat"] = nil,
|
["Anchor Bags Above Chat"] = nil,
|
||||||
["A new installation of |cff33ffccpf|rUI ships with 4 prebuilt design profiles. Click below if you wish to load one of these profiles."] = "Una nueva instalación de |cff33ffccpf|rUI viene con 4 perfiles de diseño preconfigurados. Haga clic debajo si deseas cargar uno de estos perfiles.",
|
["A new installation of |cff33ffccpf|rUI ships with 4 prebuilt design profiles. Click below if you wish to load one of these profiles."] = "Una nueva instalación de |cff33ffccpf|rUI viene con 4 perfiles de diseño preconfigurados. Haga clic debajo si deseas cargar uno de estos perfiles.",
|
||||||
["A new version is available"] = "Una nueva versión está disponible",
|
["A new version is available"] = "Una nueva versión está disponible",
|
||||||
|
["Animate Health And Power Bars"] = nil,
|
||||||
["Appearance"] = "Apariencia",
|
["Appearance"] = "Apariencia",
|
||||||
["Ascending"] = "Ascendiendo",
|
["Ascending"] = "Ascendiendo",
|
||||||
["Author"] = "Autor",
|
["Author"] = "Autor",
|
||||||
@@ -371,7 +372,6 @@ pfUI_translation["esES"] = {
|
|||||||
["Health"] = "Salud",
|
["Health"] = "Salud",
|
||||||
["Health - Auto"] = "Salud - Auto",
|
["Health - Auto"] = "Salud - Auto",
|
||||||
["Healthbar"] = "Barra de salud",
|
["Healthbar"] = "Barra de salud",
|
||||||
["Healthbar Animation Speed"] = "Velocidad de animación de la barra de salud",
|
|
||||||
["Health Bar Color"] = "Color de la barra de salud",
|
["Health Bar Color"] = "Color de la barra de salud",
|
||||||
["Healthbar Embedded"] = "Barra de salud embebida",
|
["Healthbar Embedded"] = "Barra de salud embebida",
|
||||||
["Healthbar Height"] = "Altura de la barra de salud",
|
["Healthbar Height"] = "Altura de la barra de salud",
|
||||||
@@ -433,7 +433,6 @@ pfUI_translation["esES"] = {
|
|||||||
["Inherit Default Colors"] = "Color predeterminado",
|
["Inherit Default Colors"] = "Color predeterminado",
|
||||||
["Inputbox Height"] = "Altura de la barra de entrada",
|
["Inputbox Height"] = "Altura de la barra de entrada",
|
||||||
["Inputbox Width"] = "Ancho de la barra de entrada",
|
["Inputbox Width"] = "Ancho de la barra de entrada",
|
||||||
["Instant"] = "Instantáneo",
|
|
||||||
["Integrations"] = "Integraciones",
|
["Integrations"] = "Integraciones",
|
||||||
["Invert Health Bar"] = "Invertir la barra de salud",
|
["Invert Health Bar"] = "Invertir la barra de salud",
|
||||||
["is not allowed in profile name"] = "no se permite en el nombre de perfil",
|
["is not allowed in profile name"] = "no se permite en el nombre de perfil",
|
||||||
|
|||||||
Vendored
+1
-2
@@ -32,6 +32,7 @@ pfUI_translation["frFR"] = {
|
|||||||
["Anchor Bags Above Chat"] = nil,
|
["Anchor Bags Above Chat"] = nil,
|
||||||
["A new installation of |cff33ffccpf|rUI ships with 4 prebuilt design profiles. Click below if you wish to load one of these profiles."] = "Une nouvelle installation de |cff33ffccpf|rUI est livrée avec 4 profils de conception prédéfinis, Cliquez ci-dessous si vous souhaitez charger l'un de ces profils",
|
["A new installation of |cff33ffccpf|rUI ships with 4 prebuilt design profiles. Click below if you wish to load one of these profiles."] = "Une nouvelle installation de |cff33ffccpf|rUI est livrée avec 4 profils de conception prédéfinis, Cliquez ci-dessous si vous souhaitez charger l'un de ces profils",
|
||||||
["A new version is available"] = "Une nouvelle version est disponible",
|
["A new version is available"] = "Une nouvelle version est disponible",
|
||||||
|
["Animate Health And Power Bars"] = nil,
|
||||||
["Appearance"] = "Apparence",
|
["Appearance"] = "Apparence",
|
||||||
["Ascending"] = "Ascendante",
|
["Ascending"] = "Ascendante",
|
||||||
["Author"] = "Auteur",
|
["Author"] = "Auteur",
|
||||||
@@ -371,7 +372,6 @@ pfUI_translation["frFR"] = {
|
|||||||
["Health"] = "Point de vie",
|
["Health"] = "Point de vie",
|
||||||
["Health - Auto"] = "Points de vie - Automatique",
|
["Health - Auto"] = "Points de vie - Automatique",
|
||||||
["Healthbar"] = "Barre des points de vie",
|
["Healthbar"] = "Barre des points de vie",
|
||||||
["Healthbar Animation Speed"] = "Vitesse de l'animation des barres de vie",
|
|
||||||
["Health Bar Color"] = "Couleur de la barre des points de vie",
|
["Health Bar Color"] = "Couleur de la barre des points de vie",
|
||||||
["Healthbar Embedded"] = "Barres de vies intégrées",
|
["Healthbar Embedded"] = "Barres de vies intégrées",
|
||||||
["Healthbar Height"] = "Hauteur des barres de vies",
|
["Healthbar Height"] = "Hauteur des barres de vies",
|
||||||
@@ -433,7 +433,6 @@ pfUI_translation["frFR"] = {
|
|||||||
["Inherit Default Colors"] = "Hériter des couleurs par défaut",
|
["Inherit Default Colors"] = "Hériter des couleurs par défaut",
|
||||||
["Inputbox Height"] = "Hauteur du champ de saisie du texte",
|
["Inputbox Height"] = "Hauteur du champ de saisie du texte",
|
||||||
["Inputbox Width"] = "Largeur du champ de saisie du texte",
|
["Inputbox Width"] = "Largeur du champ de saisie du texte",
|
||||||
["Instant"] = "Instantané",
|
|
||||||
["Integrations"] = nil,
|
["Integrations"] = nil,
|
||||||
["Invert Health Bar"] = "Inverser les barres de vie",
|
["Invert Health Bar"] = "Inverser les barres de vie",
|
||||||
["is not allowed in profile name"] = "n'est pas autorisé comme nom de profil",
|
["is not allowed in profile name"] = "n'est pas autorisé comme nom de profil",
|
||||||
|
|||||||
Vendored
+1
-2
@@ -32,6 +32,7 @@ pfUI_translation["koKR"] = {
|
|||||||
["Anchor Bags Above Chat"] = nil,
|
["Anchor Bags Above Chat"] = nil,
|
||||||
["A new installation of |cff33ffccpf|rUI ships with 4 prebuilt design profiles. Click below if you wish to load one of these profiles."] = nil,
|
["A new installation of |cff33ffccpf|rUI ships with 4 prebuilt design profiles. Click below if you wish to load one of these profiles."] = nil,
|
||||||
["A new version is available"] = nil,
|
["A new version is available"] = nil,
|
||||||
|
["Animate Health And Power Bars"] = nil,
|
||||||
["Appearance"] = "외관 설정",
|
["Appearance"] = "외관 설정",
|
||||||
["Ascending"] = nil,
|
["Ascending"] = nil,
|
||||||
["Author"] = nil,
|
["Author"] = nil,
|
||||||
@@ -371,7 +372,6 @@ pfUI_translation["koKR"] = {
|
|||||||
["Health"] = nil,
|
["Health"] = nil,
|
||||||
["Health - Auto"] = "체력-자동",
|
["Health - Auto"] = "체력-자동",
|
||||||
["Healthbar"] = nil,
|
["Healthbar"] = nil,
|
||||||
["Healthbar Animation Speed"] = "체력바 애니메이션 속도",
|
|
||||||
["Health Bar Color"] = nil,
|
["Health Bar Color"] = nil,
|
||||||
["Healthbar Embedded"] = "체력바에 겹쳐보기",
|
["Healthbar Embedded"] = "체력바에 겹쳐보기",
|
||||||
["Healthbar Height"] = "체력바 높이",
|
["Healthbar Height"] = "체력바 높이",
|
||||||
@@ -433,7 +433,6 @@ pfUI_translation["koKR"] = {
|
|||||||
["Inherit Default Colors"] = nil,
|
["Inherit Default Colors"] = nil,
|
||||||
["Inputbox Height"] = "챗팅 입력창 높이",
|
["Inputbox Height"] = "챗팅 입력창 높이",
|
||||||
["Inputbox Width"] = "챗팅 입력창 넓이",
|
["Inputbox Width"] = "챗팅 입력창 넓이",
|
||||||
["Instant"] = "즉시",
|
|
||||||
["Integrations"] = nil,
|
["Integrations"] = nil,
|
||||||
["Invert Health Bar"] = "체력바 반전",
|
["Invert Health Bar"] = "체력바 반전",
|
||||||
["is not allowed in profile name"] = "프로필 이름에 허용되지 않습니다.",
|
["is not allowed in profile name"] = "프로필 이름에 허용되지 않습니다.",
|
||||||
|
|||||||
Vendored
+1
-2
@@ -32,6 +32,7 @@ pfUI_translation["ruRU"] = {
|
|||||||
["Anchor Bags Above Chat"] = nil,
|
["Anchor Bags Above Chat"] = nil,
|
||||||
["A new installation of |cff33ffccpf|rUI ships with 4 prebuilt design profiles. Click below if you wish to load one of these profiles."] = "Новая установка |cff33ffccpf|rUI предлагает 4 предварительно созданных профиля дизайна. Нажмите ниже, если вы хотите загрузить один из этих профилей.",
|
["A new installation of |cff33ffccpf|rUI ships with 4 prebuilt design profiles. Click below if you wish to load one of these profiles."] = "Новая установка |cff33ffccpf|rUI предлагает 4 предварительно созданных профиля дизайна. Нажмите ниже, если вы хотите загрузить один из этих профилей.",
|
||||||
["A new version is available"] = "Доступна новая версия",
|
["A new version is available"] = "Доступна новая версия",
|
||||||
|
["Animate Health And Power Bars"] = nil,
|
||||||
["Appearance"] = "Внешний вид",
|
["Appearance"] = "Внешний вид",
|
||||||
["Ascending"] = "По возрастанию",
|
["Ascending"] = "По возрастанию",
|
||||||
["Author"] = "Автор",
|
["Author"] = "Автор",
|
||||||
@@ -371,7 +372,6 @@ pfUI_translation["ruRU"] = {
|
|||||||
["Health"] = "Здоровье",
|
["Health"] = "Здоровье",
|
||||||
["Health - Auto"] = "Здоровье - автоматически",
|
["Health - Auto"] = "Здоровье - автоматически",
|
||||||
["Healthbar"] = "Панель здоровья",
|
["Healthbar"] = "Панель здоровья",
|
||||||
["Healthbar Animation Speed"] = "Скорость анимации панели здоровья",
|
|
||||||
["Health Bar Color"] = "Цвет панели здоровья",
|
["Health Bar Color"] = "Цвет панели здоровья",
|
||||||
["Healthbar Embedded"] = "На панели здоровья",
|
["Healthbar Embedded"] = "На панели здоровья",
|
||||||
["Healthbar Height"] = "Высота панели здоровья",
|
["Healthbar Height"] = "Высота панели здоровья",
|
||||||
@@ -433,7 +433,6 @@ pfUI_translation["ruRU"] = {
|
|||||||
["Inherit Default Colors"] = "Наследовать цвета по умолчанию",
|
["Inherit Default Colors"] = "Наследовать цвета по умолчанию",
|
||||||
["Inputbox Height"] = "Высота поля ввода",
|
["Inputbox Height"] = "Высота поля ввода",
|
||||||
["Inputbox Width"] = "Ширина поля ввода",
|
["Inputbox Width"] = "Ширина поля ввода",
|
||||||
["Instant"] = "Мгновенно",
|
|
||||||
["Integrations"] = "Встраиваемые",
|
["Integrations"] = "Встраиваемые",
|
||||||
["Invert Health Bar"] = "Инвертировать панель здоровья",
|
["Invert Health Bar"] = "Инвертировать панель здоровья",
|
||||||
["is not allowed in profile name"] = "не разрешено в имени профиля",
|
["is not allowed in profile name"] = "не разрешено в имени профиля",
|
||||||
|
|||||||
Vendored
+1
-2
@@ -32,6 +32,7 @@ pfUI_translation["zhCN"] = {
|
|||||||
["Anchor Bags Above Chat"] = "将背包锚定在聊天框上方",
|
["Anchor Bags Above Chat"] = "将背包锚定在聊天框上方",
|
||||||
["A new installation of |cff33ffccpf|rUI ships with 4 prebuilt design profiles. Click below if you wish to load one of these profiles."] = "pfUI的新安装自带4以下四种预设风格.点击下方可选择其一",
|
["A new installation of |cff33ffccpf|rUI ships with 4 prebuilt design profiles. Click below if you wish to load one of these profiles."] = "pfUI的新安装自带4以下四种预设风格.点击下方可选择其一",
|
||||||
["A new version is available"] = "发现新版本!",
|
["A new version is available"] = "发现新版本!",
|
||||||
|
["Animate Health And Power Bars"] = nil,
|
||||||
["Appearance"] = "外观设置",
|
["Appearance"] = "外观设置",
|
||||||
["Ascending"] = "上移",
|
["Ascending"] = "上移",
|
||||||
["Author"] = "作者",
|
["Author"] = "作者",
|
||||||
@@ -371,7 +372,6 @@ pfUI_translation["zhCN"] = {
|
|||||||
["Health"] = "生命值",
|
["Health"] = "生命值",
|
||||||
["Health - Auto"] = "动态生命值和百分比",
|
["Health - Auto"] = "动态生命值和百分比",
|
||||||
["Healthbar"] = "血条",
|
["Healthbar"] = "血条",
|
||||||
["Healthbar Animation Speed"] = "掉血动画速度",
|
|
||||||
["Health Bar Color"] = "血条颜色",
|
["Health Bar Color"] = "血条颜色",
|
||||||
["Healthbar Embedded"] = "血条上显示动态头像",
|
["Healthbar Embedded"] = "血条上显示动态头像",
|
||||||
["Healthbar Height"] = "血条高度",
|
["Healthbar Height"] = "血条高度",
|
||||||
@@ -433,7 +433,6 @@ pfUI_translation["zhCN"] = {
|
|||||||
["Inherit Default Colors"] = "继承默认颜色",
|
["Inherit Default Colors"] = "继承默认颜色",
|
||||||
["Inputbox Height"] = "输入框高度",
|
["Inputbox Height"] = "输入框高度",
|
||||||
["Inputbox Width"] = "输入框宽度",
|
["Inputbox Width"] = "输入框宽度",
|
||||||
["Instant"] = "极快",
|
|
||||||
["Integrations"] = "整合",
|
["Integrations"] = "整合",
|
||||||
["Invert Health Bar"] = "血量反色显示",
|
["Invert Health Bar"] = "血量反色显示",
|
||||||
["is not allowed in profile name"] = "在配置文件名中不允许",
|
["is not allowed in profile name"] = "在配置文件名中不允许",
|
||||||
|
|||||||
Vendored
+1
-2
@@ -32,6 +32,7 @@ pfUI_translation["zhTW"] = {
|
|||||||
["Anchor Bags Above Chat"] = nil,
|
["Anchor Bags Above Chat"] = nil,
|
||||||
["A new installation of |cff33ffccpf|rUI ships with 4 prebuilt design profiles. Click below if you wish to load one of these profiles."] = "pfUI的安裝內建有四種風格.點選以下讀取其一",
|
["A new installation of |cff33ffccpf|rUI ships with 4 prebuilt design profiles. Click below if you wish to load one of these profiles."] = "pfUI的安裝內建有四種風格.點選以下讀取其一",
|
||||||
["A new version is available"] = nil,
|
["A new version is available"] = nil,
|
||||||
|
["Animate Health And Power Bars"] = nil,
|
||||||
["Appearance"] = "外觀設置",
|
["Appearance"] = "外觀設置",
|
||||||
["Ascending"] = "下移",
|
["Ascending"] = "下移",
|
||||||
["Author"] = nil,
|
["Author"] = nil,
|
||||||
@@ -371,7 +372,6 @@ pfUI_translation["zhTW"] = {
|
|||||||
["Health"] = nil,
|
["Health"] = nil,
|
||||||
["Health - Auto"] = "動態生命值和百分比",
|
["Health - Auto"] = "動態生命值和百分比",
|
||||||
["Healthbar"] = "生命條",
|
["Healthbar"] = "生命條",
|
||||||
["Healthbar Animation Speed"] = "掉血動畫速度",
|
|
||||||
["Health Bar Color"] = nil,
|
["Health Bar Color"] = nil,
|
||||||
["Healthbar Embedded"] = "血條上顯示動態頭像",
|
["Healthbar Embedded"] = "血條上顯示動態頭像",
|
||||||
["Healthbar Height"] = "生命條高度",
|
["Healthbar Height"] = "生命條高度",
|
||||||
@@ -433,7 +433,6 @@ pfUI_translation["zhTW"] = {
|
|||||||
["Inherit Default Colors"] = nil,
|
["Inherit Default Colors"] = nil,
|
||||||
["Inputbox Height"] = "輸入框高度",
|
["Inputbox Height"] = "輸入框高度",
|
||||||
["Inputbox Width"] = "輸入框寬度",
|
["Inputbox Width"] = "輸入框寬度",
|
||||||
["Instant"] = "極快",
|
|
||||||
["Integrations"] = nil,
|
["Integrations"] = nil,
|
||||||
["Invert Health Bar"] = "血量反色顯示",
|
["Invert Health Bar"] = "血量反色顯示",
|
||||||
["is not allowed in profile name"] = "在設定檔名中不允許",
|
["is not allowed in profile name"] = "在設定檔名中不允許",
|
||||||
|
|||||||
+1
-9
@@ -907,14 +907,6 @@ pfUI:RegisterModule("gui", function ()
|
|||||||
"HORIZONTAL:" .. T["Horizontal"],
|
"HORIZONTAL:" .. T["Horizontal"],
|
||||||
"VERTICAL:" .. T["Vertical"],
|
"VERTICAL:" .. T["Vertical"],
|
||||||
},
|
},
|
||||||
["uf_animationspeed"] = {
|
|
||||||
"1:" .. T["Instant"],
|
|
||||||
"2:" .. T["Very Fast"],
|
|
||||||
"3:" .. T["Fast"],
|
|
||||||
"5:" .. T["Medium"],
|
|
||||||
"8:" .. T["Slow"],
|
|
||||||
"13:" .. T["Very Slow"],
|
|
||||||
},
|
|
||||||
["xpanchors"] = {
|
["xpanchors"] = {
|
||||||
"__NONONIL__:" .. T["No Anchor"],
|
"__NONONIL__:" .. T["No Anchor"],
|
||||||
"pfChatLeft:" .. T["Left Chat Frame"],
|
"pfChatLeft:" .. T["Left Chat Frame"],
|
||||||
@@ -2050,7 +2042,7 @@ pfUI:RegisterModule("gui", function ()
|
|||||||
|
|
||||||
CreateGUIEntry(T["Unit Frames"], T["General"], function()
|
CreateGUIEntry(T["Unit Frames"], T["General"], function()
|
||||||
CreateConfig(nil, T["Disable pfUI Unit Frames"], C.unitframes, "disable", "checkbox")
|
CreateConfig(nil, T["Disable pfUI Unit Frames"], C.unitframes, "disable", "checkbox")
|
||||||
CreateConfig(nil, T["Healthbar Animation Speed"], C.unitframes, "animation_speed", "dropdown", pfUI.gui.dropdowns.uf_animationspeed)
|
CreateConfig(nil, T["Animate Health And Power Bars"], C.unitframes, "animatebars", "checkbox")
|
||||||
CreateConfig(nil, T["Portrait Alpha"], C.unitframes, "portraitalpha")
|
CreateConfig(nil, T["Portrait Alpha"], C.unitframes, "portraitalpha")
|
||||||
CreateConfig(nil, T["Always Use 2D Portraits"], C.unitframes, "always2dportrait", "checkbox")
|
CreateConfig(nil, T["Always Use 2D Portraits"], C.unitframes, "always2dportrait", "checkbox")
|
||||||
CreateConfig(nil, T["Enable 2D Portraits As Fallback"], C.unitframes, "portraittexture", "checkbox")
|
CreateConfig(nil, T["Enable 2D Portraits As Fallback"], C.unitframes, "portraittexture", "checkbox")
|
||||||
|
|||||||
Reference in New Issue
Block a user