Skip to content

Commit

Permalink
V2005 update
Browse files Browse the repository at this point in the history
- Re-added the tag helpmenu
- fixed lua error when logging in with config mode enabled
- Option to prevent combo bar from hiding itself
- More sensible default placements for raid indicators
- Elite indicator
- Fixed incoming heal bugging out under certain conditions
- Lua error when hiding power bar fixed
- Fixed conficting between range check and combat fader.
  • Loading branch information
Aviana committed Apr 3, 2016
1 parent ea95fd4 commit 008619a
Show file tree
Hide file tree
Showing 11 changed files with 253 additions and 33 deletions.
25 changes: 14 additions & 11 deletions LunaUnitFrames.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ LunaUF = AceLibrary("AceAddon-2.0"):new("AceEvent-2.0", "AceConsole-2.0", "AceDB
LunaUF:RegisterDB("LunaDB")

-- Assets ----------------------------------------------------------------------------------
LunaUF.Version = 2004
LunaUF.Version = 2005
LunaUF.BS = AceLibrary("Babble-Spell-2.2")
LunaUF.Banzai = AceLibrary("Banzai-1.0")
LunaUF.HealComm = AceLibrary("HealComm-1.0")
Expand All @@ -13,7 +13,7 @@ LunaUF.ScanTip = CreateFrame("GameTooltip", "LunaScanTip", nil, "GameTooltipTemp
LunaUF.ScanTip:SetOwner(WorldFrame, "ANCHOR_NONE")
LunaUF.modules = {}
_, LunaUF.playerRace = UnitRace("player")
local Alliance = {
LunaUF.AllianceCheck = {
["Dwarf"] = true,
["Human"] = true,
["Gnome"] = true,
Expand Down Expand Up @@ -325,7 +325,7 @@ LunaUF.defaults = {
enabled = true,
healthBar = { enabled = true, colorType = "class", reactionType="npc", size = 6 },
powerBar = { enabled = true, size = 4 },
comboPoints = { enabled = true, size = 2, growth = "LEFT" },
comboPoints = { enabled = true, size = 1, growth = "LEFT", hide = true },
portrait = { enabled = true, type = "3D", side = "right", size = 6 },
auras = { enabled = true, AurasPerRow = 12, position = "BOTTOM"},
highlight = { enabled = true, ontarget = false, ondebuff = true, onmouse = false },
Expand Down Expand Up @@ -355,6 +355,7 @@ LunaUF.defaults = {
enabled = true,
icons = {
raidTarget = { enabled = true, anchorPoint = "CENTER", size = 20, x = 0, y = 0 },
elite = { enabled = false, anchorPoint = "RIGHT", size = 74, x = -14, y = 0 },
class = { enabled = true, anchorPoint = "BOTTOMRIGHT", size = 16, x = 0, y = 0 },
masterLoot = { enabled = true, anchorPoint = "TOPRIGHT", size = 12, x = -16, y = 0 },
leader = { enabled = true, anchorPoint = "TOPRIGHT", size = 14, x = -2, y = 0 },
Expand Down Expand Up @@ -408,6 +409,7 @@ LunaUF.defaults = {
icons = {
raidTarget = { enabled = true, anchorPoint = "CENTER", size = 20, x = 0, y = 0 },
class = { enabled = true, anchorPoint = "BOTTOMLEFT", size = 16, x = 0, y = 0 },
elite = { enabled = false, anchorPoint = "LEFT", size = 74, x = 14, y = 0 },
masterLoot = { enabled = true, anchorPoint = "TOPLEFT", size = 12, x = 16, y = 0 },
leader = { enabled = true, anchorPoint = "TOPLEFT", size = 14, x = 2, y = 0 },
pvp = { enabled = true, anchorPoint = "TOPRIGHT", size = 30, x = 5, y = -25 },
Expand Down Expand Up @@ -460,6 +462,7 @@ LunaUF.defaults = {
icons = {
raidTarget = { enabled = true, anchorPoint = "CENTER", size = 20, x = 0, y = 0 },
class = { enabled = true, anchorPoint = "BOTTOMLEFT", size = 16, x = 0, y = 0 },
elite = { enabled = false, anchorPoint = "LEFT", size = 74, x = 14, y = 0 },
masterLoot = { enabled = true, anchorPoint = "TOPLEFT", size = 12, x = 16, y = 0 },
leader = { enabled = true, anchorPoint = "TOPLEFT", size = 14, x = 2, y = 0 },
pvp = { enabled = true, anchorPoint = "TOPRIGHT", size = 30, x = 5, y = -25 },
Expand Down Expand Up @@ -672,14 +675,14 @@ LunaUF.defaults = {
enabled = true,
icons = {
raidTarget = { enabled = false, anchorPoint = "CENTER", size = 20, x = 0, y = 0 },
class = { enabled = false, anchorPoint = "BOTTOMLEFT", size = 16, x = 0, y = 0 },
masterLoot = { enabled = false, anchorPoint = "TOPLEFT", size = 12, x = 16, y = -10 },
leader = { enabled = false, anchorPoint = "TOPLEFT", size = 14, x = 2, y = -12 },
pvp = { enabled = false, anchorPoint = "TOPRIGHT", size = 22, x = 11, y = -21 },
pvprank = { enabled = false, anchorPoint = "BOTTOMLEFT", size = 8, x = 0, y = 0 },
status = { enabled = false, anchorPoint = "BOTTOMLEFT", size = 16, x = 12, y = -2 },
class = { enabled = false, anchorPoint = "BOTTOMLEFT", size = 12, x = 3, y = 3 },
masterLoot = { enabled = false, anchorPoint = "TOPLEFT", size = 12, x = 1, y = -14 },
leader = { enabled = false, anchorPoint = "TOPLEFT", size = 14, x = 2, y = -3 },
pvp = { enabled = false, anchorPoint = "RIGHT", size = 22, x = 4, y = -2 },
pvprank = { enabled = false, anchorPoint = "BOTTOMRIGHT", size = 8, x = 0, y = 1 },
status = { enabled = false, anchorPoint = "BOTTOM", size = 16, x = 0, y = 1 },
ready = { enabled = false, anchorPoint = "LEFT", size = 24, x = 35, y = 0 },
rezz = { enabled = true, anchorPoint = "CENTER", size = 20, x = 0, y = 0 },
rezz = { enabled = true, anchorPoint = "TOPRIGHT", size = 20, x = -8, y = -9 },
},
},
castBar = { enabled = false, size = 3, hide = true },
Expand Down Expand Up @@ -810,7 +813,7 @@ LunaUF.constants = {
RaidClassMapping = {
[1] = "WARRIOR",
[2] = "DRUID",
[3] = Alliance[LunaUF.playerRace] and "PALADIN" or "SHAMAN",
[3] = LunaUF.AllianceCheck[LunaUF.playerRace] and "PALADIN" or "SHAMAN",
[4] = "WARLOCK",
[5] = "PRIEST",
[6] = "MAGE",
Expand Down
63 changes: 63 additions & 0 deletions locales/enUS.lua
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ local function enUS() return {
["class"] = "Class",
["masterLoot"] = "Masterloot",
["leader"] = "Leader",
["elite"] = "Elite",
["pvp"] = "PvP",
["pvprank"] = "PvP rank",
["ready"] = "Ready",
Expand Down Expand Up @@ -256,6 +257,68 @@ local function enUS() return {
["XP Bar"] = "XP Bar",
["Frame background"] = "Frame background",
["Color"] = "Color",

["Returns plain name of the unit"] = "Returns plain name of the unit",
["Returns shortened names (Marshall Williams = M. Williams)"] = "Returns shortened names (Marshall Williams = M. Williams)",
["Guildname"] = "Guildname",
["Current level, returns ?? for bosses and players too high"] = "Current level, returns ?? for bosses and players too high",
["Returns \"Boss\" for bosses and Level+10+ for players too high"] = "Returns \"Boss\" for bosses and Level+10+ for players too high",
["Class of the unit"] = "Class of the unit",
["Returns Class for players and Creaturetype for NPCs"] = "Returns Class for players and Creaturetype for NPCs",
["\"rare\" if the creature is rare or rareelite"] = "\"rare\" if the creature is rare or rareelite",
["\"elite\" if the creature is elite or rareelite"] = "\"elite\" if the creature is elite or rareelite",
["Shows elite, rare, boss, etc..."] = "Shows elite, rare, boss, etc...",
["\"E\", \"R\", \"RE\" for the respective classification"] = "\"E\", \"R\", \"RE\" for the respective classification",
["Race if available"] = "Race if available",
["Shows race when if player, creaturetype when npc"] = "Shows race when if player, creaturetype when npc",
["Creature type (Bat, Wolf , etc..)"] = "Creature type (Bat, Wolf , etc..)",
["Gender"] = "Gender",
["Current druid form of friendly unit"] = "Current druid form of friendly unit",
["Returns (civ) when civilian"] = "Returns (civ) when civilian",
["Displays \"PvP\" if flagged for it"] = "Displays \"PvP\" if flagged for it",
["PvP title"] = "PvP title",
["Numeric PvP rank"] = "Numeric PvP rank",
["Horde or Alliance"] = "Horde or Alliance",
["Returns (i) if the player is on your ignore list"] = "Returns (i) if the player is on your ignore list",
["Server name"] = "Server name",
["\"Dead\", \"Ghost\" or \"Offline\""] = "\"Dead\", \"Ghost\" or \"Offline\"",
["Pet happiness as 'unhappy','content' or 'happy'"] = "Pet happiness as 'unhappy','content' or 'happy'",
["Current subgroup of the raid"] = "Current subgroup of the raid",
["(c) when in combat"] = "(c) when in combat",
["Returns the same as \"smart:healmishp\" on friendly units and hp/maxhp on enemies"] = "Returns the same as \"smart:healmishp\" on friendly units and hp/maxhp on enemies",
["Returns missing hp with healing factored in. Shows status when needed (\"Dead\", \"Offline\", \"Ghost\")"] = "Returns missing hp with healing factored in. Shows status when needed (\"Dead\", \"Offline\", \"Ghost\")",
["Combo Points"] = "Combo Points",
["The classic hp display (hp/maxhp and \"Dead\" if dead etc)"] = "The classic hp display (hp/maxhp and \"Dead\" if dead etc)",
["Current hp and heal in one number (green when heal is incoming)"] = "Current hp and heal in one number (green when heal is incoming)",
["Current hp"] = "Current hp",
["Current maximum hp"] = "Current maximum hp",
["Current missing hp"] = "Current missing hp",
["Missing hp after incoming heal (green when heal is incoming)"] = "Missing hp after incoming heal (green when heal is incoming)",
["HP percent"] = "HP percent",
["Current mana/rage/energy etc"] = "Current mana/rage/energy etc",
["Maximum mana/rage/energy etc"] = "Maximum mana/rage/energy etc",
["Missing mana/rage/energy"] = "Missing mana/rage/energy",
["Mana/rage/energy percent"] = "Mana/rage/energy percent",
["Returns current mana even in druid form"] = "Returns current mana even in druid form",
["Returns current maximum mana even in druid form"] = "Returns current maximum mana even in druid form",
["Returns missing mana even in druid form"] = "Returns missing mana even in druid form",
["Returns mana percentage even in druid form"] = "Returns mana percentage even in druid form",
["Value of incoming heal"] = "Value of incoming heal",
["Red when in combat"] = "Red when in combat",
["White for unflagged units, green for flagged friendlies and red for flagged enemies"] = "White for unflagged units, green for flagged friendlies and red for flagged enemies",
["Red for enemies, yellow for neutrals, and green for friendlies"] = "Red for enemies, yellow for neutrals, and green for friendlies",
["Colors based on your level vs the level of the unit. (grey,green,yellow and red)"] = "Colors based on your level vs the level of the unit. (grey,green,yellow and red)",
["Red if the unit is targeted by an enemy"] = "Red if the unit is targeted by an enemy",
["Classcolor of the unit"] = "Classcolor of the unit",
["Color based on health (red = dead)"] = "Color based on health (red = dead)",
["Custom color in hexadecimal (rrggbb)"] = "Custom color in hexadecimal (rrggbb)",
["Resets the color to white"] = "Resets the color to white",
["Adds a line break"] = "Adds a line break",
["Number of people in your group targeting this unit"] = "Number of people in your group targeting this unit",
["Tag listing"] = "Tag listing",
["INFO TAGS"] = "INFO TAGS",
["HEALTH AND POWER TAGS"] = "HEALTH AND POWER TAGS",
["COLOR TAGS"] = "COLOR TAGS",
}
end

Expand Down
Binary file added media/textures/UI-DialogBox-Gold-Dragon-right.tga
Binary file not shown.
Binary file added media/textures/UI-DialogBox-Gold-Dragon.blp
Binary file not shown.
Loading

0 comments on commit 008619a

Please sign in to comment.