Options
Code:
DefaultCompactNamePlateFriendlyFrameOptions
DefaultCompactNamePlateEnemyFrameOptions
DefaultCompactNamePlateFrameSetUpOptions
DefaultCompactNamePlatePlayerFrameOptions
DefaultCompactNamePlatePlayerFrameSetUpOptions
https://github.com/tomrus88/Blizzard...rame.lua#L1615
Lua Code:
local groups = {
"Friendly",
"Enemy",
}
for i, group in next, groups do
for key, value in next, _G["DefaultCompactNamePlate"..group.."FrameOptions"] do
print(group, key,value)
end
end
NamePlate table & NamePlate.UnitFrame table
Lua Code:
local function OnNamePlateCreated(args1, frame)
print("==================")
print("OnNamePlateCreated", frame)
for key, value in next, frame do
print(key,value)
end
print("------------------")
print("printint nameplate.UnitFrame keys:")
for key, value in next, frame.UnitFrame do
print(key,value)
end
end
rLib:RegisterCallback("NAME_PLATE_CREATED", OnNamePlateCreated)
NamePlateDriverFrame
Lua Code:
print("==================")
print("NamePlateDriverFrame")
for key, value in next, NamePlateDriverFrame do
print(key,value)
end
NamePlateUnitFrameTemplate
https://github.com/tomrus88/Blizzard...NamePlates.xml
Code:
<Button name="NamePlateUnitFrameTemplate" parentKey="UnitFrame" setAllPoints="true" useParentLevel="true" virtual="true">
<KeyValue key="disableMouse" value="true" type="boolean"/>
<Frames>
<StatusBar parentKey="healthBar" frameLevel="90">
<Frame parentKey="border" inherits="NamePlateFullBorderTemplate" />
<Texture parentKey="background">
<Color r=".2" g=".2" b=".2" a=".85"/>
<BarTexture parentKey="barTexture" file="Interface/TargetingFrame/UI-TargetingFrame-BarFill" />
<StatusBar parentKey="castBar" frameLevel="100" hidden="true">
<KeyValue key="iconWhenNoninterruptible" value="true" type="boolean"/>
<Texture parentKey="background">
<Color r=".2" g=".2" b=".2" a=".85"/>
<FontString parentKey="Text" inherits="SystemFont_Shadow_Small">
<Texture parentKey="BorderShield" atlas="nameplates-InterruptShield" hidden="true" forceAlpha="true">
<Texture parentKey="Icon" hidden="true" forceAlpha="true">
<Texture parentKey="Spark" file="Interface\CastingBar\UI-CastingBar-Spark" alphaMode="ADD">
<Texture parentKey="Flash" file="Interface\TargetingFrame\UI-TargetingFrame-BarFill" alphaMode="ADD" />
<Scripts>
<OnLoad>
CastingBarFrame_OnLoad(self, nil, false, true);
<OnEvent function="CastingBarFrame_OnEvent" />
<OnUpdate function="CastingBarFrame_OnUpdate" />
<OnShow function="CastingBarFrame_OnShow" />
<BarTexture file="Interface\TargetingFrame\UI-StatusBar"/>
<BarColor r="1.0" g="0.7" b="0.0"/>
<Frame parentKey="BuffFrame" inherits="HorizontalLayoutFrame" mixin="NameplateBuffContainerMixin">
<KeyValue key="spacing" value="4" type="number"/>
<KeyValue key="fixedHeight" value="14" type="number"/>
<Scripts>
<OnLoad method="OnLoad"/>
<OnEvent method="OnEvent"/>
<Frame parentKey="RaidTargetFrame">
<Texture parentKey="RaidTargetIcon" file="Interface\TargetingFrame\UI-RaidTargetingIcons" hidden="true">
<Layers>
<Texture parentKey="myHealPrediction"/>
<Texture parentKey="otherHealPrediction"/>
<Texture parentKey="totalAbsorb"/>
<Texture parentKey="totalAbsorbOverlay"/>
<FontString parentKey="name" inherits="SystemFont_NamePlate" wordwrap="false" justifyH="CENTER">
<FontString parentKey="statusText" inherits="GameFontDisable" />
<Texture parentKey="myHealAbsorb"/>
<Texture parentKey="myHealAbsorbLeftShadow" file="Interface\RaidFrame\Absorb-Edge"/>
<Texture parentKey="myHealAbsorbRightShadow" file="Interface\RaidFrame\Absorb-Edge">
<Texture parentKey="overAbsorbGlow"/>
<Texture parentKey="overHealAbsorbGlow"/>
<Texture parentKey="selectionHighlight" file="Interface/TargetingFrame/UI-TargetingFrame-BarFill" alpha=".25" forceAlpha="true" alphaMode="ADD">
<Texture parentKey="aggroHighlight" file="Interface/TargetingFrame/UI-TargetingFrame-BarFill" alpha="0" alphaMode="ADD">
<Color r="1" g="1" b="0"/>
<Animations>
<AnimationGroup parentKey="LoseAggroAnim" setToFinalAlpha="true">
<Alpha childKey="aggroHighlight" duration=".25" fromAlpha="1" toAlpha="0" order="1"/>
<Alpha childKey="aggroHighlight" duration=".25" fromAlpha="1" toAlpha="0" order="2"/>
<Scripts>
<OnLoad function="CompactUnitFrame_OnLoad"/>
https://github.com/tomrus88/Blizzard...Frame.lua#L598