View Single Post
06-05-16, 05:38 AM   #54
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Options

Code:
DefaultCompactNamePlateFriendlyFrameOptions 
DefaultCompactNamePlateEnemyFrameOptions 
DefaultCompactNamePlateFrameSetUpOptions 
DefaultCompactNamePlatePlayerFrameOptions 
DefaultCompactNamePlatePlayerFrameSetUpOptions
https://github.com/tomrus88/Blizzard...rame.lua#L1615

Lua Code:
  1. local groups = {
  2.   "Friendly",
  3.   "Enemy",
  4. }
  5.  
  6. for i, group  in next, groups do
  7.   for key, value in next, _G["DefaultCompactNamePlate"..group.."FrameOptions"] do
  8.     print(group, key,value)
  9.   end
  10. end



NamePlate table & NamePlate.UnitFrame table

Lua Code:
  1. local function OnNamePlateCreated(args1, frame)
  2.   print("==================")
  3.   print("OnNamePlateCreated", frame)
  4.   for key, value in next, frame do
  5.     print(key,value)
  6.   end
  7.   print("------------------")
  8.   print("printint nameplate.UnitFrame keys:")
  9.   for key, value in next, frame.UnitFrame do
  10.     print(key,value)
  11.   end
  12. end
  13.  
  14. rLib:RegisterCallback("NAME_PLATE_CREATED", OnNamePlateCreated)



NamePlateDriverFrame

Lua Code:
  1. print("==================")
  2. print("NamePlateDriverFrame")
  3. for key, value in next, NamePlateDriverFrame do
  4.   print(key,value)
  5. 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
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 06-10-16 at 12:47 AM.