Resource Tracker
Clean and minimal power tracker for the Mana, Rage and Energy resources.
|
|
| Quick Facts |
|---|
Clean and minimal power tracker for the Mana, Rage and Energy resources.
Contains custom functions.
Code has been reviewed and is safe to use, custom functions might affect in-game performance.
{
"s": "4.1.3",
"m": "d",
"d": {
"grow": "HORIZONTAL",
"borderBackdrop": "Blizzard Tooltip",
"xOffset": 0,
"yOffset": -186,
"anchorPoint": "CENTER",
"fullCircle": true,
"space": 4,
"actions": {
"start": [],
"finish": [],
"init": []
},
"triggers": [
{
"trigger": {
"debuffType": "HELPFUL",
"type": "aura2",
"spellIds": [],
"subeventSuffix": "_CAST_START",
"unit": "player",
"names": [],
"event": "Health",
"subeventPrefix": "SPELL"
},
"untrigger": []
}
],
"columnSpace": 1,
"radius": 200,
"useLimit": false,
"align": "CENTER",
"rotation": 0,
"subRegions": [],
"load": {
"talent": {
"multi": []
},
"spec": {
"multi": []
},
"class": {
"multi": []
},
"size": {
"multi": []
}
},
"rowSpace": 1,
"backdropColor": [
1,
1,
1,
0.5
],
"animate": false,
"scale": 1,
"groupIcon": "Interface\\Icons\\INV_Gizmo_02",
"border": false,
"borderEdge": "Square Full White",
"regionType": "dynamicgroup",
"borderSize": 2,
"sort": "none",
"selfPoint": "CENTER",
"internalVersion": 52,
"arcLength": 360,
"authorOptions": [],
"constantFactor": "RADIUS",
"uid": "6Nbltw3mJgx",
"borderOffset": 4,
"config": [],
"tocversion": 30300,
"id": "Trackers - Power",
"frameStrata": 3,
"gridWidth": 5,
"anchorFrameType": "SCREEN",
"gridType": "RD",
"borderInset": 1,
"animation": {
"start": {
"easeStrength": 3,
"type": "none",
"duration_type": "seconds",
"easeType": "none"
},
"main": {
"easeStrength": 3,
"type": "none",
"duration_type": "seconds",
"easeType": "none"
},
"finish": {
"easeStrength": 3,
"type": "none",
"duration_type": "seconds",
"easeType": "none"
}
},
"limit": 5,
"borderColor": [
0,
0,
0,
1
],
"conditions": [],
"information": [],
"stagger": 0
},
"c": [
{
"sparkWidth": 10,
"iconSource": -1,
"xOffset": 0,
"customText": "function()\n local value, total = aura_env.state.value, aura_env.state.total\n local valueOutput = value\n \n if value >= 1000 and aura_env.config.roundToNearestThousand then\n valueOutput = (\"%.1fk\"):format(value \/ 1000)\n end\n \n if aura_env.state.powerType == 0 and aura_env.config.showManaPercentage then\n local percentage = (\"%.1f\"):format((value \/ total) * 100) .. \"%\"\n local seperatorsIdx = aura_env.config.percentageSeperators\n \n return valueOutput, attachPercentageSeperators(seperatorsIdx, percentage)\n end\n \n return valueOutput\nend",
"yOffset": 0,
"anchorPoint": "CENTER",
"sparkRotation": 0,
"sparkRotationMode": "AUTO",
"icon": false,
"triggers": {
"1": {
"trigger": {
"names": [],
"type": "custom",
"use_alwaystrue": true,
"subeventSuffix": "_CAST_START",
"subeventPrefix": "SPELL",
"custom": "function(allstates, ...)\n for _, state in pairs(allstates) do\n state.changed = true\n state.show = false\n end\n \n for powerType, table in pairs(aura_env.powerTypes) do\n local identifier, color = unpack(table)\n \n allstates[identifier] = {\n total = UnitPowerMax(\"player\", powerType),\n value = UnitPower(\"player\", powerType),\n powerType = powerType,\n name = identifier,\n color = color,\n \n progressType = \"static\",\n changed = true,\n show = true,\n }\n end\n \n return true\nend",
"event": "Conditions",
"unit": "player",
"customDuration": "function()\n return UnitPower(\"player\", getPowerType()),\n UnitPowerMax(\"player\", getPowerType()),\n true\nend",
"customName": "\n\n",
"spellIds": [],
"custom_type": "stateupdate",
"check": "update",
"events": "ASCENSION_RESOURCES_UPDATED",
"use_unit": true,
"debuffType": "HELPFUL"
},
"untrigger": []
},
"disjunctive": "any",
"customTriggerLogic": "function(trigger)\n return trigger[1]\nend",
"activeTriggerMode": 1
},
"icon_color": [
1,
0.98824,
0.97255,
1
],
"internalVersion": 52,
"animation": {
"start": {
"type": "none",
"easeType": "none",
"duration_type": "seconds",
"preset": "fade",
"easeStrength": 3
},
"main": {
"colorR": 1,
"duration_type": "relative",
"alphaType": "custom",
"colorB": 1,
"colorG": 1,
"alphaFunc": "function(progress, start, delta)\n return start + (progress * delta)\nend\n",
"use_alpha": false,
"type": "custom",
"easeType": "none",
"duration": "",
"scaley": 1,
"alpha": 0,
"colorA": 1,
"y": 0,
"x": 0,
"easeStrength": 3,
"use_color": true,
"colorFunc": "function(...)\n if not aura_env.state.color then\n return 0, 0, 0, 1\n end\n \n return unpack(aura_env.state.color)\nend",
"rotate": 0,
"colorType": "custom",
"scalex": 1
},
"finish": {
"type": "none",
"easeType": "none",
"duration_type": "seconds",
"preset": "fade",
"easeStrength": 3
}
},
"barColor": [
0.97255,
0.97255,
0.97255,
1
],
"desaturate": false,
"sparkOffsetY": 0,
"subRegions": [
{
"type": "subbackground"
},
{
"type": "subforeground"
},
{
"border_offset": 0,
"border_anchor": "bar",
"type": "subborder",
"border_color": [
0,
0,
0,
1
],
"border_visible": true,
"border_edge": "Square Full White",
"border_size": 2
},
{
"text_shadowXOffset": 1,
"text_text": "%c1 %c2",
"text_shadowColor": [
0,
0,
0,
1
],
"text_selfPoint": "AUTO",
"text_automaticWidth": "Auto",
"text_fixedWidth": 64,
"text_text_format_1.p_time_format": 0,
"anchorYOffset": 0,
"text_justify": "CENTER",
"text_text_format_1.p_time_precision": 1,
"text_text_format_c_format": "none",
"text_shadowYOffset": -1,
"text_text_format_c2_format": "none",
"type": "subtext",
"text_text_format_1.n_format": "none",
"text_color": [
1,
1,
1,
1
],
"text_font": "Accidental Presidency",
"text_anchorPoint": "INNER_CENTER",
"text_anchorYOffset": 8,
"text_text_format_1.p_time_dynamic_threshold": 60,
"text_wordWrap": "WordWrap",
"text_fontType": "OUTLINE",
"text_text_format_c1_format": "none",
"text_text_format_1.p_format": "timed",
"text_visible": true,
"text_fontSize": 16,
"anchorXOffset": 0,
"text_text_format_n_format": "none"
}
],
"height": 8,
"load": {
"use_vehicleUi": false,
"class": {
"multi": []
},
"use_never": false,
"talent": {
"multi": []
},
"use_vehicle": false,
"spec": {
"multi": []
},
"use_alive": true,
"size": {
"multi": []
}
},
"sparkBlendMode": "ADD",
"useAdjustededMax": false,
"zoom": 0,
"authorOptions": [
{
"type": "header",
"useName": true,
"text": "Formatting",
"noMerge": false,
"width": 1
},
{
"type": "toggle",
"default": true,
"key": "roundToNearestThousand",
"name": "Round To Nearest Thousand",
"width": 1
},
{
"type": "select",
"key": "percentageSeperators",
"values": [
"()",
"[]",
"{}",
"<>"
],
"default": 1,
"name": "Percentage Seperators",
"width": 1
},
{
"type": "toggle",
"name": "Show Mana Percentage",
"key": "showManaPercentage",
"default": true,
"width": 1
},
{
"useName": true,
"type": "header",
"text": "Colors",
"noMerge": false,
"width": 1
},
{
"type": "color",
"useDesc": false,
"key": "manaColor",
"default": [
0.29412,
0.52941,
1,
1
],
"name": "Mana Color",
"width": 1
},
{
"type": "color",
"key": "rageColor",
"useDesc": false,
"name": "Rage Color",
"default": [
1,
0.15294,
0.28627,
1
],
"width": 1
},
{
"type": "color",
"useDesc": false,
"key": "energyColor",
"default": [
1,
0.94118,
0.27451,
1
],
"name": "Energy Color",
"width": 1
}
],
"backgroundColor": [
0.10196,
0.10196,
0.10196,
1
],
"smoothProgress": true,
"useAdjustededMin": false,
"regionType": "aurabar",
"sparkOffsetX": 0,
"icon_side": "LEFT",
"selfPoint": "CENTER",
"sparkHidden": "NEVER",
"sparkHeight": 30,
"texture": "ElvUI Blank",
"sparkColor": [
1,
1,
1,
1
],
"sparkTexture": "Interface\\CastingBar\\UI-CastingBar-Spark",
"spark": false,
"tocversion": 30300,
"id": "Power Tracker - TSU",
"width": 136,
"frameStrata": 1,
"anchorFrameType": "SCREEN",
"alpha": 1,
"config": {
"energyColor": [
1,
0.94118,
0.27451,
1
],
"manaColor": [
0.29412,
0.52941,
1,
1
],
"roundToNearestThousand": true,
"showManaPercentage": true,
"percentageSeperators": 1,
"rageColor": [
1,
0.15294,
0.28627,
1
]
},
"inverse": false,
"uid": "q3uWTQ5Nz9(",
"orientation": "HORIZONTAL",
"conditions": [],
"information": [],
"actions": {
"start": [],
"init": {
"do_custom": true,
"custom": "aura_env.powerTypes = {\n [ 0 ] = { \"Mana\", aura_env.config.manaColor },\n [ 1 ] = { \"Rage\", aura_env.config.rageColor },\n [ 3 ] = { \"Energy\", aura_env.config.energyColor },\n}\n\naura_env.percentageSeperators = { \"()\", \"[]\", \"{}\", \"<>\" }\n\nfunction attachPercentageSeperators(seperatorIdx, value)\n local l = aura_env.percentageSeperators[seperatorIdx]:sub(1, 1)\n local r = aura_env.percentageSeperators[seperatorIdx]:sub(2, 2)\n \n return l .. value .. r\nend"
},
"finish": []
}
}
],
"v": 1421
}