Target Nameplate Highlight
-- Updated to remove a details! code refence, should work without details now. --
Provides a customizable box to highlight the target you have selected.
You can change the color and size of the box in custom options.
|
|
| Quick Facts |
|---|
-- Updated to remove a details! code refence, should work without details now. --
Provides a customizable box to highlight the target you have selected.
You can change the color and size of the box in custom options.
Contains custom functions.
Code has been reviewed and is safe to use, custom functions might affect in-game performance.
{
"s": "4.2.4",
"m": "d",
"d": {
"borderBackdrop": "Blizzard Tooltip",
"wagoID": "oIAUMlv3V",
"xOffset": 0,
"yOffset": 0,
"anchorPoint": "CENTER",
"borderColor": [
1,
1,
1,
0.5
],
"url": "https:\/\/wago.io\/oIAUMlv3V\/6",
"actions": {
"start": [],
"init": [],
"finish": []
},
"triggers": {
"1": {
"trigger": {
"type": "aura",
"subeventSuffix": "_CAST_START",
"genericShowOn": "showOnActive",
"unit": "player",
"spellIds": [],
"subeventPrefix": "SPELL",
"names": [],
"event": "Health",
"debuffType": "HELPFUL"
},
"untrigger": []
},
"disjunctive": "all",
"activeTriggerMode": -10
},
"internalVersion": 52,
"animation": {
"start": {
"type": "none",
"easeStrength": 3,
"duration_type": "seconds",
"easeType": "none"
},
"main": {
"type": "none",
"easeStrength": 3,
"duration_type": "seconds",
"easeType": "none"
},
"finish": {
"type": "none",
"easeStrength": 3,
"duration_type": "seconds",
"easeType": "none"
}
},
"version": 6,
"load": {
"talent2": {
"multi": []
},
"talent": {
"multi": []
},
"class": {
"multi": []
},
"size": {
"multi": []
},
"role": {
"multi": []
},
"difficulty": {
"multi": []
},
"race": {
"multi": []
},
"spec": {
"multi": []
},
"pvptalent": {
"multi": []
},
"use_class": false,
"faction": {
"multi": []
},
"ingroup": {
"multi": []
},
"zoneIds": ""
},
"backdropColor": [
1,
1,
1,
0.5
],
"source": "import",
"scale": 1,
"border": false,
"borderEdge": "None",
"regionType": "group",
"borderSize": 16,
"borderOffset": 5,
"semver": "1.1.5",
"tocversion": 30300,
"id": "Target Nameplate Highlight",
"frameStrata": 1,
"anchorFrameType": "SCREEN",
"borderInset": 11,
"uid": "fPiJpH7Nifg",
"config": [],
"authorOptions": [],
"conditions": [],
"information": {
"ignoreOptionsEventErrors": true,
"groupOffset": true
},
"selfPoint": "BOTTOMLEFT"
},
"c": [
{
"outline": "OUTLINE",
"wagoID": "oIAUMlv3V",
"authorOptions": [],
"shadowYOffset": -1,
"anchorPoint": "CENTER",
"displayText_format_p_time_format": 0,
"customTextUpdate": "event",
"automaticWidth": "Auto",
"actions": {
"start": {
"custom": "",
"do_custom": false
},
"init": {
"custom": "function()\n C_Timer.NewTicker(3, function()\n WeakAuras.ScanEvents(\"CUSTOM_EVENT_NAME\")\n -- If you want to pass some arguments\n -- WeakAuras.ScanEvents(\"CUSTOM_EVENT_NAME\", argument1, argument2)\n print(123)\n end)\n return True\nend",
"do_custom": false
},
"finish": []
},
"triggers": {
"1": {
"trigger": {
"itemName": 0,
"matchesShowOn": "showAlways",
"genericShowOn": "showOnCooldown",
"use_unit": true,
"debuffType": "HELPFUL",
"type": "aura2",
"use_absorbHealMode": true,
"custom_type": "status",
"event": "Health",
"use_itemName": true,
"subeventPrefix": "SPELL",
"spellIds": [],
"subeventSuffix": "_CAST_START",
"use_genericShowOn": true,
"use_absorbMode": true,
"unit": "player",
"names": []
},
"untrigger": []
},
"activeTriggerMode": -10
},
"displayText_format_p_format": "timed",
"internalVersion": 52,
"wordWrap": "WordWrap",
"font": "Friz Quadrata TT",
"version": 6,
"subRegions": [
{
"type": "subbackground"
}
],
"load": {
"talent": {
"multi": []
},
"spec": {
"multi": []
},
"class": {
"multi": []
},
"size": {
"multi": []
}
},
"fontSize": 12,
"source": "import",
"shadowXOffset": 1,
"regionType": "text",
"selfPoint": "BOTTOM",
"url": "https:\/\/wago.io\/oIAUMlv3V\/6",
"fixedWidth": 200,
"justify": "LEFT",
"displayText_format_p_time_precision": 1,
"displayText": "",
"xOffset": 0,
"uid": "ekRv6MISKKN",
"semver": "1.1.5",
"tocversion": 30300,
"id": "custom_event",
"color": [
1,
1,
1,
1
],
"frameStrata": 1,
"anchorFrameType": "SCREEN",
"config": [],
"displayText_format_p_time_dynamic_threshold": 60,
"yOffset": 0,
"shadowColor": [
0,
0,
0,
1
],
"conditions": [
{
"check": {
"trigger": 1,
"variable": "show",
"value": 1
},
"changes": [
{
"value": {
"custom": "Timer.NewTicker(0.1, function()\n WeakAuras.ScanEvents(\"CUSTOM_EVENT_NAME\")\n -- If you want to pass some arguments\n -- WeakAuras.ScanEvents(\"CUSTOM_EVENT_NAME\", argument1, argument2)\nend)"
},
"property": "customcode"
}
]
}
],
"information": [],
"animation": {
"start": {
"type": "none",
"easeStrength": 3,
"duration_type": "seconds",
"easeType": "none"
},
"main": {
"type": "none",
"easeStrength": 3,
"duration_type": "seconds",
"easeType": "none"
},
"finish": {
"type": "none",
"easeStrength": 3,
"duration_type": "seconds",
"easeType": "none"
}
}
},
{
"glow": false,
"text1FontSize": 15,
"authorOptions": [
{
"type": "color",
"default": [
1,
1,
1,
1
],
"desc": "Set color of border highlight",
"key": "option4",
"useDesc": true,
"name": "Border Color",
"width": 1
},
{
"type": "range",
"useDesc": true,
"max": 20,
"step": 1,
"width": 2,
"min": 0,
"key": "option1",
"desc": "Set Width of the border.",
"name": "Border Width",
"default": 5
},
{
"type": "range",
"useDesc": true,
"max": 256,
"step": 1,
"width": 1,
"min": 0,
"key": "option2",
"desc": "Set the height for the highlight box.",
"name": "Box Height",
"default": 55
},
{
"type": "range",
"useDesc": true,
"max": 256,
"step": 1,
"width": 1,
"min": 0,
"key": "option3",
"desc": "Set the width for the highlight box.",
"name": "Box Width",
"default": 170
}
],
"yOffset": 0,
"anchorPoint": "CENTER",
"url": "https:\/\/wago.io\/oIAUMlv3V\/6",
"actions": {
"start": {
"do_glow": false,
"glow_frame_type": "FRAMESELECTOR",
"glow_action": "show"
},
"init": {
"custom": "aura_env.displayMinimalDistanceOnly = false\naura_env.nextDistance = {\n [0] = 1,\n [1] = 2,\n [2] = 3,\n [3] = 4,\n [4] = 5,\n [5] = 7,\n [7] = 8,\n [8] = 10,\n [10] = 15,\n [15] = 20,\n [20] = 25,\n [25] = 28,\n [28] = 30,\n [30] = 35,\n [35] = 38,\n [38] = 40,\n [40] = 45,\n [45] = 50,\n [50] = 55,\n [55] = 60,\n [60] = 70,\n [70] = 80,\n [80] = 90,\n [90] = 100,\n [100] = 150,\n [150] = \"more\",\n}\n\n\n\n",
"do_custom": false
},
"finish": []
},
"text1Enabled": true,
"keepAspectRatio": false,
"selfPoint": "CENTER",
"text1Containment": "OUTSIDE",
"rotation": 0,
"text1Point": "RIGHT",
"text2FontFlags": "OUTLINE",
"load": {
"talent2": {
"multi": []
},
"use_never": false,
"talent": {
"multi": []
},
"class": {
"multi": []
},
"size": {
"multi": []
},
"difficulty": {
"multi": []
},
"race": {
"multi": []
},
"ingroup": {
"multi": []
},
"pvptalent": {
"multi": []
},
"spec": {
"multi": []
},
"role": {
"multi": []
},
"faction": {
"multi": []
},
"zoneIds": ""
},
"textureWrapMode": "CLAMP",
"text1FontFlags": "OUTLINE",
"regionType": "texture",
"blendMode": "BLEND",
"text2FontSize": 24,
"texture": "Interface\\AddOns\\WeakAuras\\Media\\Textures\\Square_FullWhite",
"cooldownTextDisabled": false,
"auto": true,
"tocversion": 30300,
"text2Enabled": false,
"config": {
"option3": 220,
"option4": [
1,
0.87451,
0.22353,
1
],
"option2": 65,
"option1": 5
},
"fixedWidth": 200,
"outline": "OUTLINE",
"wagoID": "oIAUMlv3V",
"color": [
0.96863,
0.1098,
1,
0
],
"customText": "function()\n if not UnitExists(\"target\") then return \"\" end\n \n local minDistance, maxDistance = WeakAuras.GetRange(\"target\")\n if not minDistance then minDistance = 0 end\n if not maxDistance then maxDistance = 200 end\n \n local color = (minDistance >= 40) and \"ff6666\" or \"ffffff\"\n return string.format(\"|cff%s%d~%s|r\", color, minDistance, maxDistance)\nend",
"customTextUpdate": "update",
"automaticWidth": "Auto",
"triggers": {
"1": {
"trigger": {
"use_absorbMode": true,
"genericShowOn": "showOnActive",
"use_unit": true,
"debuffType": "HELPFUL",
"type": "custom",
"custom_type": "event",
"events": "PLAYER_TARGET_CHANGED,CUSTOM_EVENT_NAME",
"event": "Health",
"spellIds": [],
"unit": "player",
"subeventSuffix": "_CAST_START",
"custom": "function()\n local plate = C_NamePlate.GetNamePlateForUnit(\"target\")\n local threat = not UnitIsUnit(\"player\", \"target\")\n local region = aura_env.region\n \n if plate and threat then\n \n local _width = aura_env.config.option3\n local _height = aura_env.config.option2\n local _thickness = aura_env.config.option1\n \n region:ClearAllPoints()\n region:SetPoint(\"TOP\", plate, \"CENTER\", 0, _height\/2)\n \n --pull the border-width from the config\n region:SetHeight(_thickness)\n \n region:SetWidth(_width)\n \n local BC = aura_env.config.option4\n region:Color(BC[1],BC[2],BC[3],BC[4])\n \n \n region:Show()\n else\n region:ClearAllPoints()\n region:Hide()\n end\n return true\nend\n\n\n",
"unevent": "auto",
"check": "event",
"names": [],
"subeventPrefix": "SPELL",
"custom_hide": "timed"
},
"untrigger": []
},
"disjunctive": "all",
"activeTriggerMode": -10
},
"internalVersion": 52,
"animation": {
"start": {
"type": "none",
"easeStrength": 3,
"duration_type": "seconds",
"easeType": "none"
},
"main": {
"type": "none",
"easeStrength": 3,
"duration_type": "seconds",
"easeType": "none"
},
"finish": {
"type": "none",
"easeStrength": 3,
"duration_type": "seconds",
"easeType": "none"
}
},
"stickyDuration": false,
"discrete_rotation": 0,
"version": 6,
"subRegions": [
{
"type": "subbackground"
}
],
"height": 5,
"rotate": true,
"fontSize": 12,
"source": "import",
"zoom": 0,
"text1Color": [
1,
1,
1,
1
],
"text1Font": "Friz Quadrata TT",
"mirror": false,
"text2Color": [
1,
1,
1,
1
],
"text2Containment": "INSIDE",
"font": "Friz Quadrata TT",
"desaturate": false,
"icon": true,
"semver": "1.1.5",
"width": 170,
"text1": "%c",
"wordWrap": "WordWrap",
"xOffset": 0,
"text2Point": "CENTER",
"justify": "LEFT",
"uid": "RF3XxuQ2Sj2",
"id": "Target Nameplate UPPER",
"displayText": "%c",
"frameStrata": 2,
"anchorFrameType": "SCREEN",
"text2Font": "Friz Quadrata TT",
"displayIcon": 236188,
"inverse": false,
"text2": "%p",
"conditions": [],
"information": {
"ignoreOptionsEventErrors": true
},
"alpha": 1
},
{
"glow": false,
"text1FontSize": 15,
"authorOptions": [
{
"type": "color",
"default": [
1,
1,
1,
1
],
"desc": "Set color of border highlight",
"key": "option4",
"useDesc": true,
"name": "Border Color",
"width": 1
},
{
"type": "range",
"useDesc": true,
"max": 20,
"step": 1,
"width": 2,
"min": 0,
"key": "option1",
"desc": "Set Width of the border.",
"name": "Border Width",
"default": 5
},
{
"type": "range",
"useDesc": true,
"max": 256,
"step": 1,
"width": 1,
"min": 0,
"key": "option2",
"desc": "Set the height for the highlight box.",
"name": "Box Height",
"default": 55
},
{
"type": "range",
"useDesc": true,
"max": 256,
"step": 1,
"width": 1,
"min": 0,
"key": "option3",
"desc": "Set the width for the highlight box.",
"name": "Box Width",
"default": 170
}
],
"yOffset": 0,
"anchorPoint": "CENTER",
"url": "https:\/\/wago.io\/oIAUMlv3V\/6",
"actions": {
"start": [],
"init": {
"custom": "aura_env.displayMinimalDistanceOnly = false\naura_env.nextDistance = {\n [0] = 1,\n [1] = 2,\n [2] = 3,\n [3] = 4,\n [4] = 5,\n [5] = 7,\n [7] = 8,\n [8] = 10,\n [10] = 15,\n [15] = 20,\n [20] = 25,\n [25] = 28,\n [28] = 30,\n [30] = 35,\n [35] = 38,\n [38] = 40,\n [40] = 45,\n [45] = 50,\n [50] = 55,\n [55] = 60,\n [60] = 70,\n [70] = 80,\n [80] = 90,\n [90] = 100,\n [100] = 150,\n [150] = \"more\",\n}\n\n\n\n",
"do_custom": false
},
"finish": []
},
"text1Enabled": true,
"keepAspectRatio": false,
"selfPoint": "CENTER",
"text1Containment": "OUTSIDE",
"rotation": 0,
"text1Point": "RIGHT",
"text2FontFlags": "OUTLINE",
"load": {
"talent2": {
"multi": []
},
"use_never": false,
"talent": {
"multi": []
},
"class": {
"multi": []
},
"size": {
"multi": []
},
"difficulty": {
"multi": []
},
"race": {
"multi": []
},
"ingroup": {
"multi": []
},
"pvptalent": {
"multi": []
},
"spec": {
"multi": []
},
"role": {
"multi": []
},
"faction": {
"multi": []
},
"zoneIds": ""
},
"textureWrapMode": "CLAMP",
"text1FontFlags": "OUTLINE",
"regionType": "texture",
"blendMode": "BLEND",
"text2FontSize": 24,
"texture": "Interface\\AddOns\\WeakAuras\\Media\\Textures\\Square_FullWhite",
"cooldownTextDisabled": false,
"auto": true,
"tocversion": 30300,
"text2Enabled": false,
"config": {
"option3": 220,
"option4": [
1,
0.87451,
0.22353,
1
],
"option2": 65,
"option1": 5
},
"fixedWidth": 200,
"outline": "OUTLINE",
"wagoID": "oIAUMlv3V",
"color": [
0.96863,
0.1098,
1,
0
],
"customText": "function()\n if not UnitExists(\"target\") then return \"\" end\n \n local minDistance, maxDistance = WeakAuras.GetRange(\"target\")\n if not minDistance then minDistance = 0 end\n if not maxDistance then maxDistance = 200 end\n \n local color = (minDistance >= 40) and \"ff6666\" or \"ffffff\"\n return string.format(\"|cff%s%d~%s|r\", color, minDistance, maxDistance)\nend",
"customTextUpdate": "update",
"automaticWidth": "Auto",
"triggers": {
"1": {
"trigger": {
"use_absorbMode": true,
"genericShowOn": "showOnActive",
"use_unit": true,
"debuffType": "HELPFUL",
"type": "custom",
"custom_type": "event",
"events": "PLAYER_TARGET_CHANGED,CUSTOM_EVENT_NAME",
"event": "Health",
"spellIds": [],
"unit": "player",
"subeventSuffix": "_CAST_START",
"custom": "function()\n local plate = C_NamePlate.GetNamePlateForUnit(\"target\")\n local threat = not UnitIsUnit(\"player\", \"target\")\n local region = aura_env.region\n \n if plate and threat then\n \n local _width = aura_env.config.option3\n local _height = -aura_env.config.option2 \/ 2\n local _thickness = aura_env.config.option1\n \n region:ClearAllPoints()\n region:SetPoint(\"BOTTOM\", plate, \"CENTER\", 0, _height)\n \n --pull the border-width from the config\n region:SetHeight(_thickness)\n \n region:SetWidth(_width)\n \n local BC = aura_env.config.option4\n region:Color(BC[1],BC[2],BC[3],BC[4])\n \n \n region:Show()\n else\n region:ClearAllPoints()\n region:Hide()\n end\n return true\nend\n\n\n",
"unevent": "auto",
"check": "event",
"names": [],
"subeventPrefix": "SPELL",
"custom_hide": "timed"
},
"untrigger": []
},
"disjunctive": "all",
"activeTriggerMode": -10
},
"internalVersion": 52,
"animation": {
"start": {
"type": "none",
"easeStrength": 3,
"duration_type": "seconds",
"easeType": "none"
},
"main": {
"type": "none",
"easeStrength": 3,
"duration_type": "seconds",
"easeType": "none"
},
"finish": {
"type": "none",
"easeStrength": 3,
"duration_type": "seconds",
"easeType": "none"
}
},
"stickyDuration": false,
"discrete_rotation": 0,
"version": 6,
"subRegions": [
{
"type": "subbackground"
}
],
"height": 5,
"rotate": true,
"fontSize": 12,
"source": "import",
"zoom": 0,
"text1Color": [
1,
1,
1,
1
],
"text1Font": "Friz Quadrata TT",
"mirror": false,
"text2Color": [
1,
1,
1,
1
],
"text2Containment": "INSIDE",
"font": "Friz Quadrata TT",
"desaturate": false,
"icon": true,
"semver": "1.1.5",
"width": 170,
"text1": "%c",
"wordWrap": "WordWrap",
"xOffset": 0,
"text2Point": "CENTER",
"justify": "LEFT",
"uid": "cVyuSeLv2Ah",
"id": "Target Nameplate BOTTOM ",
"displayText": "%c",
"frameStrata": 2,
"anchorFrameType": "SCREEN",
"text2Font": "Friz Quadrata TT",
"displayIcon": 236188,
"inverse": false,
"text2": "%p",
"conditions": [],
"information": {
"ignoreOptionsEventErrors": true
},
"alpha": 1
},
{
"glow": false,
"text1FontSize": 15,
"authorOptions": [
{
"type": "color",
"default": [
1,
1,
1,
1
],
"desc": "Set color of border highlight",
"key": "option4",
"useDesc": true,
"name": "Border Color",
"width": 1
},
{
"type": "range",
"useDesc": true,
"max": 20,
"step": 1,
"width": 2,
"min": 0,
"key": "option1",
"desc": "Set Width of the border.",
"name": "Border Width",
"default": 5
},
{
"type": "range",
"useDesc": true,
"max": 256,
"step": 1,
"width": 1,
"min": 0,
"key": "option2",
"desc": "Set the height for the highlight box.",
"name": "Box Height",
"default": 55
},
{
"type": "range",
"useDesc": true,
"max": 256,
"step": 1,
"width": 1,
"min": 0,
"key": "option3",
"desc": "Set the width for the highlight box.",
"name": "Box Width",
"default": 170
}
],
"yOffset": 0,
"anchorPoint": "CENTER",
"url": "https:\/\/wago.io\/oIAUMlv3V\/6",
"actions": {
"start": [],
"init": {
"custom": "aura_env.displayMinimalDistanceOnly = false\naura_env.nextDistance = {\n [0] = 1,\n [1] = 2,\n [2] = 3,\n [3] = 4,\n [4] = 5,\n [5] = 7,\n [7] = 8,\n [8] = 10,\n [10] = 15,\n [15] = 20,\n [20] = 25,\n [25] = 28,\n [28] = 30,\n [30] = 35,\n [35] = 38,\n [38] = 40,\n [40] = 45,\n [45] = 50,\n [50] = 55,\n [55] = 60,\n [60] = 70,\n [70] = 80,\n [80] = 90,\n [90] = 100,\n [100] = 150,\n [150] = \"more\",\n}\n\n\n\n",
"do_custom": false
},
"finish": []
},
"text1Enabled": true,
"keepAspectRatio": false,
"selfPoint": "CENTER",
"text1Containment": "OUTSIDE",
"rotation": 0,
"text1Point": "RIGHT",
"text2FontFlags": "OUTLINE",
"load": {
"talent2": {
"multi": []
},
"use_never": false,
"talent": {
"multi": []
},
"class": {
"multi": []
},
"size": {
"multi": []
},
"difficulty": {
"multi": []
},
"race": {
"multi": []
},
"ingroup": {
"multi": []
},
"pvptalent": {
"multi": []
},
"spec": {
"multi": []
},
"role": {
"multi": []
},
"faction": {
"multi": []
},
"zoneIds": ""
},
"textureWrapMode": "CLAMP",
"text1FontFlags": "OUTLINE",
"regionType": "texture",
"blendMode": "BLEND",
"text2FontSize": 24,
"texture": "Interface\\AddOns\\WeakAuras\\Media\\Textures\\Square_FullWhite",
"cooldownTextDisabled": false,
"auto": true,
"tocversion": 30300,
"text2Enabled": false,
"config": {
"option3": 220,
"option4": [
1,
0.87451,
0.22353,
1
],
"option2": 65,
"option1": 5
},
"fixedWidth": 200,
"outline": "OUTLINE",
"wagoID": "oIAUMlv3V",
"color": [
0.96863,
0.1098,
1,
0
],
"customText": "function()\n if not UnitExists(\"target\") then return \"\" end\n \n local minDistance, maxDistance = WeakAuras.GetRange(\"target\")\n if not minDistance then minDistance = 0 end\n if not maxDistance then maxDistance = 200 end\n \n local color = (minDistance >= 40) and \"ff6666\" or \"ffffff\"\n return string.format(\"|cff%s%d~%s|r\", color, minDistance, maxDistance)\nend",
"customTextUpdate": "update",
"automaticWidth": "Auto",
"triggers": {
"1": {
"trigger": {
"use_absorbMode": true,
"genericShowOn": "showOnActive",
"use_unit": true,
"debuffType": "HELPFUL",
"type": "custom",
"custom_type": "event",
"events": "PLAYER_TARGET_CHANGED,CUSTOM_EVENT_NAME",
"event": "Health",
"spellIds": [],
"unit": "player",
"subeventSuffix": "_CAST_START",
"custom": "function()\n local plate = C_NamePlate.GetNamePlateForUnit(\"target\")\n local threat = not UnitIsUnit(\"player\", \"target\")\n local region = aura_env.region\n \n if plate and threat then\n \n local _width = -aura_env.config.option3\/2\n local _height = aura_env.config.option2\n local _thickness = aura_env.config.option1\n \n region:ClearAllPoints()\n \n region:SetPoint(\"LEFT\", plate, \"CENTER\", _width, 0)\n \n --pull the border-width from the config\n region:SetWidth(_thickness)\n \n region:SetHeight(_height)\n \n local BC = aura_env.config.option4\n region:Color(BC[1],BC[2],BC[3],BC[4])\n \n \n region:Show()\n else\n region:ClearAllPoints()\n region:Hide()\n end\n return true\nend",
"unevent": "auto",
"check": "event",
"names": [],
"subeventPrefix": "SPELL",
"custom_hide": "timed"
},
"untrigger": []
},
"disjunctive": "all",
"activeTriggerMode": -10
},
"internalVersion": 52,
"animation": {
"start": {
"type": "none",
"easeStrength": 3,
"duration_type": "seconds",
"easeType": "none"
},
"main": {
"type": "none",
"easeStrength": 3,
"duration_type": "seconds",
"easeType": "none"
},
"finish": {
"type": "none",
"easeStrength": 3,
"duration_type": "seconds",
"easeType": "none"
}
},
"stickyDuration": false,
"discrete_rotation": 0,
"version": 6,
"subRegions": [
{
"type": "subbackground"
}
],
"height": 55,
"rotate": true,
"fontSize": 12,
"source": "import",
"zoom": 0,
"text1Color": [
1,
1,
1,
1
],
"text1Font": "Friz Quadrata TT",
"mirror": false,
"text2Color": [
1,
1,
1,
1
],
"text2Containment": "INSIDE",
"font": "Friz Quadrata TT",
"desaturate": false,
"icon": true,
"semver": "1.1.5",
"width": 5,
"text1": "%c",
"wordWrap": "WordWrap",
"xOffset": 0,
"text2Point": "CENTER",
"justify": "LEFT",
"uid": "ogM0GjRu9MT",
"id": "Target Nameplate Left",
"displayText": "%c",
"frameStrata": 2,
"anchorFrameType": "SCREEN",
"text2Font": "Friz Quadrata TT",
"displayIcon": 236188,
"inverse": false,
"text2": "%p",
"conditions": [],
"information": {
"ignoreOptionsEventErrors": true
},
"alpha": 1
},
{
"glow": false,
"text1FontSize": 15,
"authorOptions": [
{
"type": "color",
"default": [
1,
1,
1,
1
],
"desc": "Set color of border highlight",
"key": "option4",
"useDesc": true,
"name": "Border Color",
"width": 1
},
{
"type": "range",
"useDesc": true,
"max": 20,
"step": 1,
"width": 2,
"min": 0,
"key": "option1",
"desc": "Set Width of the border.",
"name": "Border Width",
"default": 5
},
{
"type": "range",
"useDesc": true,
"max": 256,
"step": 1,
"width": 1,
"min": 0,
"key": "option2",
"desc": "Set the height for the highlight box.",
"name": "Box Height",
"default": 55
},
{
"type": "range",
"useDesc": true,
"max": 256,
"step": 1,
"width": 1,
"min": 0,
"key": "option3",
"desc": "Set the width for the highlight box.",
"name": "Box Width",
"default": 170
}
],
"yOffset": 0,
"anchorPoint": "CENTER",
"url": "https:\/\/wago.io\/oIAUMlv3V\/6",
"actions": {
"start": [],
"init": {
"custom": "aura_env.displayMinimalDistanceOnly = false\naura_env.nextDistance = {\n [0] = 1,\n [1] = 2,\n [2] = 3,\n [3] = 4,\n [4] = 5,\n [5] = 7,\n [7] = 8,\n [8] = 10,\n [10] = 15,\n [15] = 20,\n [20] = 25,\n [25] = 28,\n [28] = 30,\n [30] = 35,\n [35] = 38,\n [38] = 40,\n [40] = 45,\n [45] = 50,\n [50] = 55,\n [55] = 60,\n [60] = 70,\n [70] = 80,\n [80] = 90,\n [90] = 100,\n [100] = 150,\n [150] = \"more\",\n}\n\n\n\n",
"do_custom": false
},
"finish": []
},
"text1Enabled": true,
"keepAspectRatio": false,
"selfPoint": "CENTER",
"text1Containment": "OUTSIDE",
"rotation": 0,
"text1Point": "RIGHT",
"text2FontFlags": "OUTLINE",
"load": {
"talent2": {
"multi": []
},
"use_never": false,
"talent": {
"multi": []
},
"class": {
"multi": []
},
"size": {
"multi": []
},
"difficulty": {
"multi": []
},
"race": {
"multi": []
},
"ingroup": {
"multi": []
},
"pvptalent": {
"multi": []
},
"spec": {
"multi": []
},
"role": {
"multi": []
},
"faction": {
"multi": []
},
"zoneIds": ""
},
"textureWrapMode": "CLAMP",
"text1FontFlags": "OUTLINE",
"regionType": "texture",
"blendMode": "BLEND",
"text2FontSize": 24,
"texture": "Interface\\AddOns\\WeakAuras\\Media\\Textures\\Square_FullWhite",
"cooldownTextDisabled": false,
"auto": true,
"tocversion": 30300,
"text2Enabled": false,
"config": {
"option3": 220,
"option4": [
1,
0.87451,
0.22353,
1
],
"option2": 65,
"option1": 5
},
"fixedWidth": 200,
"outline": "OUTLINE",
"wagoID": "oIAUMlv3V",
"color": [
0.96863,
0.1098,
1,
0
],
"customText": "function()\n if not UnitExists(\"target\") then return \"\" end\n \n local minDistance, maxDistance = WeakAuras.GetRange(\"target\")\n if not minDistance then minDistance = 0 end\n if not maxDistance then maxDistance = 200 end\n \n local color = (minDistance >= 40) and \"ff6666\" or \"ffffff\"\n return string.format(\"|cff%s%d~%s|r\", color, minDistance, maxDistance)\nend",
"customTextUpdate": "update",
"automaticWidth": "Auto",
"triggers": {
"1": {
"trigger": {
"use_absorbMode": true,
"genericShowOn": "showOnActive",
"use_unit": true,
"debuffType": "HELPFUL",
"type": "custom",
"custom_type": "event",
"events": "PLAYER_TARGET_CHANGED,CUSTOM_EVENT_NAME",
"event": "Health",
"spellIds": [],
"unit": "player",
"subeventSuffix": "_CAST_START",
"custom": "function()\n local plate = C_NamePlate.GetNamePlateForUnit(\"target\")\n local threat = not UnitIsUnit(\"player\", \"target\")\n local region = aura_env.region\n \n if plate and threat then\n \n local _width = aura_env.config.option3\n local _height = aura_env.config.option2\n local _thickness = aura_env.config.option1\n \n region:ClearAllPoints()\n \n region:SetPoint(\"RIGHT\", plate, \"CENTER\", _width\/2, 0)\n \n --pull the border-width from the config\n region:SetWidth(_thickness)\n \n region:SetHeight(_height)\n \n local BC = aura_env.config.option4\n region:Color(BC[1],BC[2],BC[3],BC[4])\n \n \n region:Show()\n else\n region:ClearAllPoints()\n region:Hide()\n end\n return true\nend",
"unevent": "auto",
"check": "update",
"names": [],
"subeventPrefix": "SPELL",
"custom_hide": "timed"
},
"untrigger": []
},
"disjunctive": "all",
"activeTriggerMode": -10
},
"internalVersion": 52,
"animation": {
"start": {
"type": "none",
"easeStrength": 3,
"duration_type": "seconds",
"easeType": "none"
},
"main": {
"type": "none",
"easeStrength": 3,
"duration_type": "seconds",
"easeType": "none"
},
"finish": {
"type": "none",
"easeStrength": 3,
"duration_type": "seconds",
"easeType": "none"
}
},
"stickyDuration": false,
"discrete_rotation": 0,
"version": 6,
"subRegions": [
{
"type": "subbackground"
}
],
"height": 55,
"rotate": true,
"fontSize": 12,
"source": "import",
"zoom": 0,
"text1Color": [
1,
1,
1,
1
],
"text1Font": "Friz Quadrata TT",
"mirror": false,
"text2Color": [
1,
1,
1,
1
],
"text2Containment": "INSIDE",
"font": "Friz Quadrata TT",
"desaturate": false,
"icon": true,
"semver": "1.1.5",
"width": 5,
"text1": "%c",
"wordWrap": "WordWrap",
"xOffset": 0,
"text2Point": "CENTER",
"justify": "LEFT",
"uid": "pYjMhySBxeW",
"id": "Target Nameplate Right",
"displayText": "%c",
"frameStrata": 2,
"anchorFrameType": "SCREEN",
"text2Font": "Friz Quadrata TT",
"displayIcon": 236188,
"inverse": false,
"text2": "%p",
"conditions": [],
"information": {
"ignoreOptionsEventErrors": true
},
"alpha": 1
},
{
"outline": "OUTLINE",
"wagoID": "oIAUMlv3V",
"authorOptions": [
{
"type": "toggle",
"default": false,
"key": "show_hp",
"useDesc": false,
"name": "Show HP",
"width": 1
}
],
"customText": "function() \n if aura_env.states[1].percenthealth then\n return Round(aura_env.states[1].percenthealth)..\"%\"\n end\nend\n\n\n\n\n",
"yOffset": 0,
"anchorPoint": "CENTER",
"customTextUpdate": "event",
"automaticWidth": "Auto",
"actions": {
"start": [],
"init": [],
"finish": []
},
"triggers": {
"1": {
"trigger": {
"use_absorbMode": true,
"unit": "target",
"debuffType": "HELPFUL",
"use_unit": true,
"type": "unit",
"use_absorbHealMode": true,
"nameplateType": "hostile",
"subeventSuffix": "_CAST_START",
"percenthealth": "",
"event": "Health",
"names": [],
"use_health": false,
"unevent": "auto",
"spellIds": [],
"duration": "1",
"use_nameplateType": true,
"use_percenthealth": false,
"percenthealth_operator": "<",
"subeventPrefix": "SPELL"
},
"untrigger": {
"unit": "nameplate"
}
},
"2": {
"trigger": {
"type": "custom",
"custom": "function()\n local plate = C_NamePlate.GetNamePlateForUnit(\"target\")\n local threat = not UnitIsUnit(\"player\", \"target\")\n local region = aura_env.region\n \n if plate and threat then\n \n local _width = aura_env.config.option3\n local _height = aura_env.config.option2\n local _thickness = aura_env.config.option1\n \n region:ClearAllPoints()\n region:SetPoint(\"CENTER\", plate, \"CENTER\", 0, -11)\n \n --pull the border-width from the config\n -- region:SetHeight(_thickness)\n \n -- region:SetWidth(_width)\n \n -- local BC = aura_env.config.option4\n -- region:Color(BC[1],BC[2],BC[3],BC[4])\n \n \n region:Show()\n else\n region:ClearAllPoints()\n region:Hide()\n end\n return true\nend",
"custom_type": "event",
"unit": "player",
"debuffType": "HELPFUL",
"events": "PLAYER_TARGET_CHANGED,CUSTOM_EVENT_NAME",
"custom_hide": "timed"
},
"untrigger": []
},
"disjunctive": "any",
"activeTriggerMode": -10
},
"internalVersion": 52,
"animation": {
"start": {
"type": "none",
"easeStrength": 3,
"duration_type": "seconds",
"easeType": "none"
},
"main": {
"type": "none",
"easeStrength": 3,
"duration_type": "seconds",
"easeType": "none"
},
"finish": {
"type": "none",
"easeStrength": 3,
"duration_type": "seconds",
"easeType": "none"
}
},
"desc": "Displays the current HP percentage on enemy nameplates",
"font": "Roboto-Regular",
"version": 6,
"displayText_format_c_format": "none",
"load": {
"talent": {
"multi": []
},
"zoneIds": "",
"spec": {
"multi": []
},
"class": {
"multi": []
},
"size": {
"multi": []
}
},
"displayText_format_1.deficit_format": "none",
"fontSize": 12,
"source": "import",
"shadowXOffset": 1,
"displayText_format_1.percenthealth_format": "none",
"subRegions": [
{
"type": "subbackground"
}
],
"url": "https:\/\/wago.io\/oIAUMlv3V\/6",
"fixedWidth": 200,
"selfPoint": "CENTER",
"xOffset": 0,
"semver": "1.1.5",
"uid": "xkkxcYwmH4g",
"color": [
0.54118,
0.54118,
0.54118,
1
],
"justify": "CENTER",
"tocversion": 30300,
"id": "Nameplate HP%",
"wordWrap": "WordWrap",
"frameStrata": 5,
"anchorFrameType": "SCREEN",
"config": {
"show_hp": true
},
"displayText": "%c",
"shadowYOffset": -1,
"shadowColor": [
0,
0,
0,
1
],
"conditions": [
{
"check": {
"trigger": 1,
"op": "<=",
"variable": "percenthealth",
"value": "30"
},
"changes": [
{
"value": [
1,
0,
0.062745,
1
],
"property": "color"
}
]
},
{
"check": {
"trigger": -1,
"variable": "incombat",
"value": 0
},
"changes": [
{
"value": [
0.2902,
0.29412,
0.31373,
1
],
"property": "color"
}
]
}
],
"information": {
"ignoreOptionsEventErrors": true
},
"regionType": "text"
}
],
"v": 1421
}