local _, addonTable = ...

addonTable.playerClass = select(2, UnitClass("player"))

addonTable.isRetail = true

addonTable.texturePaths =
{
  --BiggerHealthBar
  biggerHealthBarTexture = "Interface\\AddOns\\HealthBarColor\\Media\\Textures\\UIUnitFrame2x.tga",
  biggerHealthBarMask = "Interface\\AddOns\\HealthBarColor\\Media\\Textures\\BiggerHealthBar_PlayerFrameHealthMask.tga",
  --BetterBossFrames
  betterBossFramesFrameTexture = "Interface\\AddOns\\HealthBarColor\\Media\\Textures\\BetterBossFrames.png",
  betterBossFramesFrameFlash = "Interface\\AddOns\\HealthBarColor\\Media\\Textures\\BetterBossFlash.png",
  betterBossFramesMask = "Interface\\AddOns\\HealthBarColor\\Media\\Textures\\MaskTextureBoss.png",
  portraitIcon = "Interface\\AddOns\\HealthBarColor\\Media\\Textures\\Icon.tga",
}

addonTable.fontModules =
{
  "Font_player",
  "Font_pet",
  "Font_target",
  "Font_targettarget",
  "Font_focus",
  "Font_focustarget",
  "Font_boss1",
  "Font_boss2",
  "Font_boss3",
  "Font_boss4",
  "Font_boss5",
  "Font_party1",
  "Font_party2",
  "Font_party3",
  "Font_party4",
}

addonTable.globalUnitVariables =
{
  player =
  {
    frame = _G.PlayerFrame,
    healthBar = _G.PlayerFrame.PlayerFrameContent.PlayerFrameContentMain.HealthBarsContainer.HealthBar,
    healthBarMask = _G.PlayerFrame.PlayerFrameContent.PlayerFrameContentMain.HealthBarsContainer.HealthBarMask,
    powerBar = _G.PlayerFrame.PlayerFrameContent.PlayerFrameContentMain.ManaBarArea.ManaBar,
    nameText = _G.PlayerName,
    healthTextLeft = _G.PlayerFrame.PlayerFrameContent.PlayerFrameContentMain.HealthBarsContainer.LeftText,
    healthTextMiddle = _G.PlayerFrame.PlayerFrameContent.PlayerFrameContentMain.HealthBarsContainer.HealthBarText,
    healthTextRight = _G.PlayerFrame.PlayerFrameContent.PlayerFrameContentMain.HealthBarsContainer.RightText,
    powerBarTextLeft = _G.PlayerFrame.PlayerFrameContent.PlayerFrameContentMain.ManaBarArea.ManaBar.LeftText,
    powerBarTextMiddle = _G.PlayerFrame.PlayerFrameContent.PlayerFrameContentMain.ManaBarArea.ManaBar.ManaBarText,
    powerBarTextRight = _G.PlayerFrame.PlayerFrameContent.PlayerFrameContentMain.ManaBarArea.ManaBar.RightText,
    alternatePowerBarTextLeft = addonTable.playerClass == "MONK" and _G.MonkStaggerBar.LeftText or _G.AlternatePowerBar.LeftText,
    alternatePowerBarTextMiddle = addonTable.playerClass == "MONK" and _G.MonkStaggerBarText or _G.AlternatePowerBarText,
    alternatePowerBarTextRight = addonTable.playerClass == "MONK" and _G.MonkStaggerBar.RightText or _G.AlternatePowerBar.RightText,
    frameTexture = _G.PlayerFrame.PlayerFrameContainer.FrameTexture,
    alternatePowerFrameTexture = _G.PlayerFrame.PlayerFrameContainer.AlternatePowerFrameTexture,
    totalAbsorbBar = _G.PlayerFrame.PlayerFrameContent.PlayerFrameContentMain.HealthBarsContainer.HealthBar.TotalAbsorbBar,
    tiledFillOverlay = _G.PlayerFrame.PlayerFrameContent.PlayerFrameContentMain.HealthBarsContainer.HealthBar.TotalAbsorbBar.TiledFillOverlay,
    overAbsorbGlow = _G.PlayerFrame.PlayerFrameContent.PlayerFrameContentMain.HealthBarsContainer.HealthBar.OverAbsorbGlow,
  },
  target =
  {
    frame = _G.TargetFrame,
    healthBar = _G.TargetFrame.TargetFrameContent.TargetFrameContentMain.HealthBarsContainer.HealthBar,
    healthBarMask = _G.TargetFrame.TargetFrameContent.TargetFrameContentMain.HealthBarsContainer.HealthBarMask,
    powerBar = _G.TargetFrame.TargetFrameContent.TargetFrameContentMain.ManaBar,
    nameText = _G.TargetFrame.TargetFrameContent.TargetFrameContentMain.Name,
    healthTextLeft = _G.TargetFrame.TargetFrameContent.TargetFrameContentMain.HealthBarsContainer.LeftText,
    healthTextMiddle = _G.TargetFrame.TargetFrameContent.TargetFrameContentMain.HealthBarsContainer.HealthBarText,
    healthTextRight = _G.TargetFrame.TargetFrameContent.TargetFrameContentMain.HealthBarsContainer.RightText,
    powerBarTextLeft = _G.TargetFrame.TargetFrameContent.TargetFrameContentMain.ManaBar.LeftText,
    powerBarTextMiddle = _G.TargetFrame.TargetFrameContent.TargetFrameContentMain.ManaBar.ManaBarText,
    powerBarTextRight = _G.TargetFrame.TargetFrameContent.TargetFrameContentMain.ManaBar.RightText,
    glowTexture = _G.TargetFrame.TargetFrameContent.TargetFrameContentMain.ReputationColor,
    frameTexture = _G.TargetFrame.TargetFrameContainer.FrameTexture,
    totalAbsorbBar = _G.TargetFrame.TargetFrameContent.TargetFrameContentMain.HealthBarsContainer.HealthBar.TotalAbsorbBar,
    tiledFillOverlay = _G.TargetFrame.TargetFrameContent.TargetFrameContentMain.HealthBarsContainer.HealthBar.TotalAbsorbBar.TiledFillOverlay,
    overAbsorbGlow = _G.TargetFrame.TargetFrameContent.TargetFrameContentMain.HealthBarsContainer.HealthBar.OverAbsorbGlow,
  },
  focus =
  {
    frame = _G.FocusFrame,
    healthBar = _G.FocusFrame.TargetFrameContent.TargetFrameContentMain.HealthBarsContainer.HealthBar,
    healthBarMask = _G.FocusFrame.TargetFrameContent.TargetFrameContentMain.HealthBarsContainer.HealthBarMask,
    powerBar = _G.FocusFrame.TargetFrameContent.TargetFrameContentMain.ManaBar,
    nameText = _G.FocusFrame.TargetFrameContent.TargetFrameContentMain.Name,
    healthTextLeft = _G.FocusFrame.TargetFrameContent.TargetFrameContentMain.HealthBarsContainer.LeftText,
    healthTextMiddle = _G.FocusFrame.TargetFrameContent.TargetFrameContentMain.HealthBarsContainer.HealthBarText,
    healthTextRight = _G.FocusFrame.TargetFrameContent.TargetFrameContentMain.HealthBarsContainer.RightText,
    powerBarTextLeft = _G.FocusFrame.TargetFrameContent.TargetFrameContentMain.ManaBar.LeftText,
    powerBarTextMiddle = _G.FocusFrame.TargetFrameContent.TargetFrameContentMain.ManaBar.ManaBarText,
    powerBarTextRight = _G.FocusFrame.TargetFrameContent.TargetFrameContentMain.ManaBar.RightText,
    glowTexture = _G.FocusFrame.TargetFrameContent.TargetFrameContentMain.ReputationColor,
    frameTexture = _G.FocusFrame.TargetFrameContainer.FrameTexture,
    totalAbsorbBar = _G.FocusFrame.TargetFrameContent.TargetFrameContentMain.HealthBarsContainer.HealthBar.TotalAbsorbBar,
    tiledFillOverlay = _G.FocusFrame.TargetFrameContent.TargetFrameContentMain.HealthBarsContainer.HealthBar.TotalAbsorbBar.TiledFillOverlay,
    overAbsorbGlow = _G.FocusFrame.TargetFrameContent.TargetFrameContentMain.HealthBarsContainer.HealthBar.OverAbsorbGlow,
  },
  targettarget =
  {
    frame = _G.TargetFrameToT,
    healthBar = _G.TargetFrameToT.HealthBar,
    powerBar = _G.TargetFrameToT.ManaBar,
    nameText = _G.TargetFrameToT.name,
    frameTexture = _G.TargetFrameToT.FrameTexture,
  },
  focustarget =
  {
    frame = _G.FocusFrameToT,
    healthBar = _G.FocusFrameToT.HealthBar,
    powerBar = _G.FocusFrameToT.ManaBar,
    nameText = _G.FocusFrameToT.name,
    frameTexture = _G.FocusFrameToT.FrameTexture,
  },
  pet =
  {
    frame = _G.PetFrame,
    healthBar = _G.PetFrameHealthBar,
    powerBar = _G.PetFrameManaBar,
    nameText = _G.PetName,
    healthTextLeft = _G.PetFrameHealthBarTextLeft,
    healthTextMiddle = _G.PetFrameHealthBarText,
    healthTextRight = _G.PetFrameHealthBarTextRight,
    powerBarTextLeft = _G.PetFrameManaBarTextLeft,
    powerBarTextMiddle = _G.PetFrameManaBarText,
    powerBarTextRight = _G.PetFrameManaBarTextRight,
    frameTexture = _G.PetFrameTexture
  },
  boss1 =
  {
    frame = _G.Boss1TargetFrame,
    healthBar = _G.Boss1TargetFrame.TargetFrameContent.TargetFrameContentMain.HealthBarsContainer.HealthBar,
    healthBarMask = _G.Boss1TargetFrame.TargetFrameContent.TargetFrameContentMain.HealthBarsContainer.HealthBarMask,
    powerBar = _G.Boss1TargetFrame.TargetFrameContent.TargetFrameContentMain.ManaBar,
    nameText = _G.Boss1TargetFrame.TargetFrameContent.TargetFrameContentMain.Name,
    healthTextLeft = _G.Boss1TargetFrame.TargetFrameContent.TargetFrameContentMain.HealthBarsContainer.LeftText,
    healthTextMiddle = _G.Boss1TargetFrame.TargetFrameContent.TargetFrameContentMain.HealthBarsContainer.HealthBarText,
    healthTextRight = _G.Boss1TargetFrame.TargetFrameContent.TargetFrameContentMain.HealthBarsContainer.RightText,
    powerBarTextLeft = _G.Boss1TargetFrame.TargetFrameContent.TargetFrameContentMain.ManaBar.LeftText,
    powerBarTextMiddle = _G.Boss1TargetFrame.TargetFrameContent.TargetFrameContentMain.ManaBar.ManaBarText,
    powerBarTextRight = _G.Boss1TargetFrame.TargetFrameContent.TargetFrameContentMain.ManaBar.RightText,
    glowTexture = _G.Boss1TargetFrame.TargetFrameContent.TargetFrameContentMain.ReputationColor,
    highLevelTexture = _G.Boss1TargetFrame.TargetFrameContent.TargetFrameContentContextual.HighLevelTexture,
    frameFlash = _G.Boss1TargetFrame.threatIndicator,
    frameTexture = _G.Boss1TargetFrame.TargetFrameContainer.FrameTexture,
    levelText = _G.Boss1TargetFrame.TargetFrameContent.TargetFrameContentMain.LevelText,
  },
  boss2 =
  {
    frame = _G.Boss2TargetFrame,
    healthBar = _G.Boss2TargetFrame.TargetFrameContent.TargetFrameContentMain.HealthBarsContainer.HealthBar,
    healthBarMask = _G.Boss2TargetFrame.TargetFrameContent.TargetFrameContentMain.HealthBarsContainer.HealthBarMask,
    powerBar = _G.Boss2TargetFrame.TargetFrameContent.TargetFrameContentMain.ManaBar,
    nameText = _G.Boss2TargetFrame.TargetFrameContent.TargetFrameContentMain.Name,
    healthTextLeft = _G.Boss2TargetFrame.TargetFrameContent.TargetFrameContentMain.HealthBarsContainer.LeftText,
    healthTextMiddle = _G.Boss2TargetFrame.TargetFrameContent.TargetFrameContentMain.HealthBarsContainer.HealthBarText,
    healthTextRight = _G.Boss2TargetFrame.TargetFrameContent.TargetFrameContentMain.HealthBarsContainer.RightText,
    powerBarTextLeft = _G.Boss2TargetFrame.TargetFrameContent.TargetFrameContentMain.ManaBar.LeftText,
    powerBarTextMiddle = _G.Boss2TargetFrame.TargetFrameContent.TargetFrameContentMain.ManaBar.ManaBarText,
    powerBarTextRight = _G.Boss2TargetFrame.TargetFrameContent.TargetFrameContentMain.ManaBar.RightText,
    glowTexture = _G.Boss2TargetFrame.TargetFrameContent.TargetFrameContentMain.ReputationColor,
    highLevelTexture = _G.Boss2TargetFrame.TargetFrameContent.TargetFrameContentContextual.HighLevelTexture,
    frameFlash = _G.Boss2TargetFrame.threatIndicator,
    frameTexture = _G.Boss2TargetFrame.TargetFrameContainer.FrameTexture,
    levelText = _G.Boss2TargetFrame.TargetFrameContent.TargetFrameContentMain.LevelText,
  },
  boss3 =
  {
    frame = _G.Boss3TargetFrame,
    healthBar = _G.Boss3TargetFrame.TargetFrameContent.TargetFrameContentMain.HealthBarsContainer.HealthBar,
    healthBarMask = _G.Boss3TargetFrame.TargetFrameContent.TargetFrameContentMain.HealthBarsContainer.HealthBarMask,
    powerBar = _G.Boss3TargetFrame.TargetFrameContent.TargetFrameContentMain.ManaBar,
    nameText = _G.Boss3TargetFrame.TargetFrameContent.TargetFrameContentMain.Name,
    healthTextLeft = _G.Boss3TargetFrame.TargetFrameContent.TargetFrameContentMain.HealthBarsContainer.LeftText,
    healthTextMiddle = _G.Boss3TargetFrame.TargetFrameContent.TargetFrameContentMain.HealthBarsContainer.HealthBarText,
    healthTextRight = _G.Boss3TargetFrame.TargetFrameContent.TargetFrameContentMain.HealthBarsContainer.RightText,
    powerBarTextLeft = _G.Boss3TargetFrame.TargetFrameContent.TargetFrameContentMain.ManaBar.LeftText,
    powerBarTextMiddle = _G.Boss3TargetFrame.TargetFrameContent.TargetFrameContentMain.ManaBar.ManaBarText,
    powerBarTextRight = _G.Boss3TargetFrame.TargetFrameContent.TargetFrameContentMain.ManaBar.RightText,
    glowTexture = _G.Boss3TargetFrame.TargetFrameContent.TargetFrameContentMain.ReputationColor,
    highLevelTexture = _G.Boss3TargetFrame.TargetFrameContent.TargetFrameContentContextual.HighLevelTexture,
    frameFlash = _G.Boss3TargetFrame.threatIndicator,
    frameTexture = _G.Boss3TargetFrame.TargetFrameContainer.FrameTexture,
    levelText = _G.Boss3TargetFrame.TargetFrameContent.TargetFrameContentMain.LevelText,
  },
  boss4 =
  {
    frame = _G.Boss4TargetFrame,
    healthBar = _G.Boss4TargetFrame.TargetFrameContent.TargetFrameContentMain.HealthBarsContainer.HealthBar,
    healthBarMask = _G.Boss4TargetFrame.TargetFrameContent.TargetFrameContentMain.HealthBarsContainer.HealthBarMask,
    powerBar = _G.Boss4TargetFrame.TargetFrameContent.TargetFrameContentMain.ManaBar,
    nameText = _G.Boss4TargetFrame.TargetFrameContent.TargetFrameContentMain.Name,
    healthTextLeft = _G.Boss4TargetFrame.TargetFrameContent.TargetFrameContentMain.HealthBarsContainer.LeftText,
    healthTextMiddle = _G.Boss4TargetFrame.TargetFrameContent.TargetFrameContentMain.HealthBarsContainer.HealthBarText,
    healthTextRight = _G.Boss4TargetFrame.TargetFrameContent.TargetFrameContentMain.HealthBarsContainer.RightText,
    powerBarTextLeft = _G.Boss4TargetFrame.TargetFrameContent.TargetFrameContentMain.ManaBar.LeftText,
    powerBarTextMiddle = _G.Boss4TargetFrame.TargetFrameContent.TargetFrameContentMain.ManaBar.ManaBarText,
    powerBarTextRight = _G.Boss4TargetFrame.TargetFrameContent.TargetFrameContentMain.ManaBar.RightText,
    glowTexture = _G.Boss4TargetFrame.TargetFrameContent.TargetFrameContentMain.ReputationColor,
    highLevelTexture = _G.Boss4TargetFrame.TargetFrameContent.TargetFrameContentContextual.HighLevelTexture,
    frameFlash = _G.Boss4TargetFrame.threatIndicator,
    frameTexture = _G.Boss4TargetFrame.TargetFrameContainer.FrameTexture,
    levelText = _G.Boss4TargetFrame.TargetFrameContent.TargetFrameContentMain.LevelText,
  },
  boss5 =
  {
    frame = _G.Boss5TargetFrame,
    healthBar = _G.Boss5TargetFrame.TargetFrameContent.TargetFrameContentMain.HealthBarsContainer.HealthBar,
    healthBarMask = _G.Boss5TargetFrame.TargetFrameContent.TargetFrameContentMain.HealthBarsContainer.HealthBarMask,
    powerBar = _G.Boss5TargetFrame.TargetFrameContent.TargetFrameContentMain.ManaBar,
    nameText = _G.Boss5TargetFrame.TargetFrameContent.TargetFrameContentMain.Name,
    healthTextLeft = _G.Boss5TargetFrame.TargetFrameContent.TargetFrameContentMain.HealthBarsContainer.LeftText,
    healthTextMiddle = _G.Boss5TargetFrame.TargetFrameContent.TargetFrameContentMain.HealthBarsContainer.HealthBarText,
    healthTextRight = _G.Boss5TargetFrame.TargetFrameContent.TargetFrameContentMain.HealthBarsContainer.RightText,
    powerBarTextLeft = _G.Boss5TargetFrame.TargetFrameContent.TargetFrameContentMain.ManaBar.LeftText,
    powerBarTextMiddle = _G.Boss5TargetFrame.TargetFrameContent.TargetFrameContentMain.ManaBar.ManaBarText,
    powerBarTextRight = _G.Boss5TargetFrame.TargetFrameContent.TargetFrameContentMain.ManaBar.RightText,
    glowTexture = _G.Boss5TargetFrame.TargetFrameContent.TargetFrameContentMain.ReputationColor,
    highLevelTexture = _G.Boss5TargetFrame.TargetFrameContent.TargetFrameContentContextual.HighLevelTexture,
    frameFlash = _G.Boss5TargetFrame.threatIndicator,
    frameTexture = _G.Boss5TargetFrame.TargetFrameContainer.FrameTexture,
    levelText = _G.Boss5TargetFrame.TargetFrameContent.TargetFrameContentMain.LevelText,
  },
  party1 =
  {
    frame = _G.PartyFrame.MemberFrame1,
    healthBar = _G.PartyFrame.MemberFrame1.HealthBarContainer.HealthBar,
    healthBarMask = _G.PartyFrame.MemberFrame1.HealthBarContainer.HealthBarMask,
    powerBar = _G.PartyFrame.MemberFrame1.ManaBar,
    nameText = _G.PartyFrame.MemberFrame1.Name,
    healthTextLeft = _G.PartyFrame.MemberFrame1.HealthBarContainer.LeftText,
    healthTextMiddle = _G.PartyFrame.MemberFrame1.HealthBarContainer.HealthBarText,
    healthTextRight = _G.PartyFrame.MemberFrame1.HealthBarContainer.RightText,
    powerBarTextLeft = _G.PartyFrame.MemberFrame1.ManaBar.LeftText,
    powerBarTextMiddle = _G.PartyFrame.MemberFrame1.ManaBar.ManaBarText,
    powerBarTextRight = _G.PartyFrame.MemberFrame1.ManaBar.RightText,
    frameTexture = _G.PartyFrame.MemberFrame1.Texture,
  },
  party2 =
  {
    frame = _G.PartyFrame.MemberFrame2,
    healthBar = _G.PartyFrame.MemberFrame2.HealthBarContainer.HealthBar,
    healthBarMask = _G.PartyFrame.MemberFrame2.HealthBarContainer.HealthBarMask,
    powerBar = _G.PartyFrame.MemberFrame2.ManaBar,
    nameText = _G.PartyFrame.MemberFrame2.Name,
    healthTextLeft = _G.PartyFrame.MemberFrame2.HealthBarContainer.LeftText,
    healthTextMiddle = _G.PartyFrame.MemberFrame2.HealthBarContainer.HealthBarText,
    healthTextRight = _G.PartyFrame.MemberFrame2.HealthBarContainer.RightText,
    powerBarTextLeft = _G.PartyFrame.MemberFrame2.ManaBar.LeftText,
    powerBarTextMiddle = _G.PartyFrame.MemberFrame2.ManaBar.ManaBarText,
    powerBarTextRight = _G.PartyFrame.MemberFrame2.ManaBar.RightText,
    frameTexture = _G.PartyFrame.MemberFrame2.Texture,
  },
  party3 =
  {
    frame = _G.PartyFrame.MemberFrame3,
    healthBar = _G.PartyFrame.MemberFrame3.HealthBarContainer.HealthBar,
    healthBarMask = _G.PartyFrame.MemberFrame3.HealthBarContainer.HealthBarMask,
    powerBar = _G.PartyFrame.MemberFrame3.ManaBar,
    nameText = _G.PartyFrame.MemberFrame3.Name,
    healthTextLeft = _G.PartyFrame.MemberFrame3.HealthBarContainer.LeftText,
    healthTextMiddle = _G.PartyFrame.MemberFrame3.HealthBarContainer.HealthBarText,
    healthTextRight = _G.PartyFrame.MemberFrame3.HealthBarContainer.RightText,
    powerBarTextLeft = _G.PartyFrame.MemberFrame3.ManaBar.LeftText,
    powerBarTextMiddle = _G.PartyFrame.MemberFrame3.ManaBar.ManaBarText,
    powerBarTextRight = _G.PartyFrame.MemberFrame3.ManaBar.RightText,
    frameTexture = _G.PartyFrame.MemberFrame3.Texture,
  },
  party4 =
  {
    frame = _G.PartyFrame.MemberFrame4,
    healthBar = _G.PartyFrame.MemberFrame4.HealthBarContainer.HealthBar,
    healthBarMask = _G.PartyFrame.MemberFrame4.HealthBarContainer.HealthBarMask,
    powerBar = _G.PartyFrame.MemberFrame4.ManaBar,
    nameText = _G.PartyFrame.MemberFrame4.Name,
    healthTextLeft = _G.PartyFrame.MemberFrame4.HealthBarContainer.LeftText,
    healthTextMiddle = _G.PartyFrame.MemberFrame4.HealthBarContainer.HealthBarText,
    healthTextRight = _G.PartyFrame.MemberFrame4.HealthBarContainer.RightText,
    powerBarTextLeft = _G.PartyFrame.MemberFrame4.ManaBar.LeftText,
    powerBarTextMiddle = _G.PartyFrame.MemberFrame4.ManaBar.ManaBarText,
    powerBarTextRight = _G.PartyFrame.MemberFrame4.ManaBar.RightText,
    frameTexture = _G.PartyFrame.MemberFrame4.Texture,
  },
}
