mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-26 14:00:48 +00:00
nameplates: unify player database table name
This commit is contained in:
+12
-12
@@ -379,26 +379,26 @@ pfUI:RegisterModule("nameplates", function ()
|
|||||||
-- show class names?
|
-- show class names?
|
||||||
if healthbar.reaction == 0 then
|
if healthbar.reaction == 0 then
|
||||||
if C.nameplates["enemyclassc"] == "1"
|
if C.nameplates["enemyclassc"] == "1"
|
||||||
and pfUI_playerDB[name:GetText()]
|
and pfUI.nameplates.players[name:GetText()]
|
||||||
and pfUI_playerDB[name:GetText()]["class"]
|
and pfUI.nameplates.players[name:GetText()]["class"]
|
||||||
and RAID_CLASS_COLORS[pfUI_playerDB[name:GetText()]["class"]]
|
and RAID_CLASS_COLORS[pfUI.nameplates.players[name:GetText()]["class"]]
|
||||||
then
|
then
|
||||||
healthbar:SetStatusBarColor(
|
healthbar:SetStatusBarColor(
|
||||||
RAID_CLASS_COLORS[pfUI_playerDB[name:GetText()]["class"]].r,
|
RAID_CLASS_COLORS[pfUI.nameplates.players[name:GetText()]["class"]].r,
|
||||||
RAID_CLASS_COLORS[pfUI_playerDB[name:GetText()]["class"]].g,
|
RAID_CLASS_COLORS[pfUI.nameplates.players[name:GetText()]["class"]].g,
|
||||||
RAID_CLASS_COLORS[pfUI_playerDB[name:GetText()]["class"]].b,
|
RAID_CLASS_COLORS[pfUI.nameplates.players[name:GetText()]["class"]].b,
|
||||||
0.9)
|
0.9)
|
||||||
end
|
end
|
||||||
elseif healthbar.reaction == 2 then
|
elseif healthbar.reaction == 2 then
|
||||||
if C.nameplates["friendclassc"] == "1"
|
if C.nameplates["friendclassc"] == "1"
|
||||||
and pfUI_playerDB[name:GetText()]
|
and pfUI.nameplates.players[name:GetText()]
|
||||||
and pfUI_playerDB[name:GetText()]["class"]
|
and pfUI.nameplates.players[name:GetText()]["class"]
|
||||||
and RAID_CLASS_COLORS[pfUI_playerDB[name:GetText()]["class"]]
|
and RAID_CLASS_COLORS[pfUI.nameplates.players[name:GetText()]["class"]]
|
||||||
then
|
then
|
||||||
healthbar:SetStatusBarColor(
|
healthbar:SetStatusBarColor(
|
||||||
RAID_CLASS_COLORS[pfUI_playerDB[name:GetText()]["class"]].r,
|
RAID_CLASS_COLORS[pfUI.nameplates.players[name:GetText()]["class"]].r,
|
||||||
RAID_CLASS_COLORS[pfUI_playerDB[name:GetText()]["class"]].g,
|
RAID_CLASS_COLORS[pfUI.nameplates.players[name:GetText()]["class"]].g,
|
||||||
RAID_CLASS_COLORS[pfUI_playerDB[name:GetText()]["class"]].b,
|
RAID_CLASS_COLORS[pfUI.nameplates.players[name:GetText()]["class"]].b,
|
||||||
0.9)
|
0.9)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user