diff --git a/WeakAuras/Types.lua b/WeakAuras/Types.lua index d9117ce..5ff5f45 100644 --- a/WeakAuras/Types.lua +++ b/WeakAuras/Types.lua @@ -25,9 +25,11 @@ Private.glow_action_types = { Private.glow_frame_types = { UNITFRAME = L["Unit Frame"], - NAMEPLATE = L["Nameplate"], FRAMESELECTOR = L["Frame Selector"] } +if WeakAuras.isAwesomeEnabled then + Private.glow_frame_types.NAMEPLATE = L["Nameplate"] +end Private.circular_group_constant_factor_types = { RADIUS = L["Radius"], @@ -928,10 +930,12 @@ Private.anchor_frame_types = { SCREEN = L["Screen/Parent Group"], MOUSE = L["Mouse Cursor"], SELECTFRAME = L["Select Frame"], - NAMEPLATE = L["Nameplates"], UNITFRAME = L["Unit Frames"], CUSTOM = L["Custom"] } +if WeakAuras.isAwesomeEnabled then + Private.anchor_frame_types.NAMEPLATE = L["Nameplates"] +end Private.anchor_frame_types_group = { SCREEN = L["Screen/Parent Group"], @@ -1930,9 +1934,11 @@ Private.classification_types = { elite = L["Elite"], rare = L["Rare"], normal = L["Normal"], - trivial = L["Trivial (Low Level)"], - minus = L["Minus (Small Nameplate)"] + trivial = L["Trivial (Low Level)"] } +if WeakAuras.isAwesomeEnabled then + Private.classification_types.minus = L["Minus (Small Nameplate)"] +end Private.anim_start_preset_types = { slidetop = L["Slide from Top"], diff --git a/WeakAuras/WeakAuras.lua b/WeakAuras/WeakAuras.lua index 497650f..9f7a592 100644 --- a/WeakAuras/WeakAuras.lua +++ b/WeakAuras/WeakAuras.lua @@ -2840,7 +2840,7 @@ function Private.HandleGlowAction(actions, region) if actions.glow_action and ( ( - (actions.glow_frame_type == "UNITFRAME" or actions.glow_frame_type == "NAMEPLATE") + (actions.glow_frame_type == "UNITFRAME" or (actions.glow_frame_type == "NAMEPLATE" and WeakAuras.isAwesomeEnabled)) and region.state.unit ) or (actions.glow_frame_type == "FRAMESELECTOR" and actions.glow_frame) @@ -2860,7 +2860,7 @@ function Private.HandleGlowAction(actions, region) elseif actions.glow_frame_type == "UNITFRAME" and region.state.unit then glow_frame = WeakAuras.GetUnitFrame(region.state.unit) elseif actions.glow_frame_type == "NAMEPLATE" and region.state.unit then - glow_frame = WeakAuras.GetNamePlateForUnit(region.state.unit) + glow_frame = WeakAuras.isAwesomeEnabled and WeakAuras.GetNamePlateForUnit(region.state.unit) or nil end if glow_frame then