wow-addons/WA-RaidHealerMana/RaidHealerMana.table

484 lines
14 KiB
Plaintext
Raw Normal View History

{
"c": [
{
2020-11-21 11:55:51 +01:00
"actions": {
"finish": [],
"init": {
"custom": "-- config\naura_env.blacklist = {}\nfor _, name in ipairs({strsplit(\"\\n\", aura_env.config[\"blacklist\"])}) do\n aura_env.blacklist[name] = true\nend\naura_env.regenBuffs = {strsplit(\"\\n\", aura_env.config[\"regenBuffs\"])}\n\naura_env.healerClasses = { -- the classic API doesn't support role-identification\n [\"DRUID\"] = true,\n [\"PRIEST\"] = true,\n [\"PALADIN\"] = true\n}\n\n\n-- event handlers\n-- GROUP_ROSTER_UPDATE UNIT_POWER_UPDATE UNIT_AURA\naura_env.eventHandlers = {}\n\naura_env.eventHandlers.GROUP_ROSTER_UPDATE = function(allStates)\n -- clear out all current clones, in case a player left the group\n for _, state in pairs(allStates) do\n state.show = false;\n state.changed = true;\n end\n -- add players from group\n for unit in WA_IterateGroupMembers() do\n local unitName = UnitName(unit)\n local unitClass, unitClassId = UnitClassBase(unit)\n if aura_env.healerClasses[unitClass] and not aura_env.blacklist[unitName] then\n local subGroup = IsInRaid() and select(3, GetRaidRosterInfo(UnitInRaid(unit))) or \"\"\n allStates[unit] = {\n show = true,\n changed = true,\n name = \"|cffcccccc\" .. subGroup .. \"|r \" .. unitName .. (unitName == \"Grep\" and \" |cffff0000<3|r\" or \"\"),\n index = unitClass .. unitName,\n progressType = \"static\",\n value = 0,\n total = 1,\n icon = 0,\n barColor = {RAID_CLASS_COLORS[unitClass]:GetRGB()},\n }\n aura_env.eventHandlers.UNIT_POWER_UPDATE(allStates, unit)\n end\n end\n return true\nend\n\n\naura_env.eventHandlers.UNIT_POWER_UPDATE = function(allStates, unit, ...)\n local unitState = allStates[unit]\n if not unitState then\n return false -- not tracking unit\n end\n unitState.changed = true\n unitState.value = UnitPower(unit, Enum.PowerType.Mana, false)\n unitState.total = UnitPowerMax(unit, Enum.PowerType.Mana)\n unitState.manaPercent = Round((unitState.value / unitState.total) * 100)\n return true\nend\n\n\naura_env.eventHandlers.UNIT_AURA = function(allStates, unit)\n local unitState = allStates[unit]\n if not unitState then\n return false -- not tracking unit\n end\n unitState.changed = true\n for _, regenBuff in ipairs(aura_env.regenBuffs) do\n local buffName, shouldGlow = strsplit(\"+\", regenBuff)\n local buff = {WA_GetUnitBuff(unit, buffName)}\n if #buff ~= 0 then\n unitState.icon = GetSpellTexture(buff[10])\n unitState.glow = shouldGlow ~= nil\n unitState.buffExpirationTime = buff[6]\n return true\n end\n end\n unitState.icon = 0\n unitState.glow = false\n unitState.buffExpirationTime = nil\n return true\nend",
"do_custom": true
},
"start": {
"do_custom": false
}
},
"alpha": 1,
"anchorFrameType": "SCREEN",
"anchorPoint": "CENTER",
"animation": {
2020-11-21 11:55:51 +01:00
"finish": {
"duration_type": "seconds",
"easeStrength": 3,
"easeType": "none",
"type": "none"
},
"main": {
"alpha": 0,
2020-11-21 11:55:51 +01:00
"colorA": 1,
"colorB": 1,
"colorFunc": "function(progress, r1, g1, b1, a1, r2, g2, b2, a2)\n return unpack(aura_env.state.barColor)\nend",
"colorG": 1,
"colorR": 1,
2020-11-21 11:55:51 +01:00
"colorType": "custom",
"duration_type": "seconds",
"easeStrength": 3,
2020-11-21 11:55:51 +01:00
"easeType": "none",
"rotate": 0,
"scalex": 1,
"scaley": 1,
"type": "custom",
"use_color": true,
2020-11-21 11:55:51 +01:00
"x": 0,
"y": 0
},
"start": {
"alpha": 0,
2020-11-21 11:55:51 +01:00
"colorA": 1,
"colorB": 0.15294117647059,
"colorFunc": " function(progress, r1, g1, b1, a1, r2, g2, b2, a2)\n return WeakAuras.GetHSVTransition(progress, r1, g1, b1, a1, r2, g2, b2, a2)\n end\n ",
"colorG": 0,
"colorR": 1,
2020-11-21 11:55:51 +01:00
"colorType": "straightHSV",
"duration": "",
"duration_type": "seconds",
2020-11-21 11:55:51 +01:00
"easeStrength": 3,
"easeType": "none",
2020-11-21 11:55:51 +01:00
"rotate": 0,
"scalex": 1,
"scaley": 1,
"type": "none",
2020-11-21 11:55:51 +01:00
"use_color": false,
"x": 0,
"y": 0
}
},
"authorOptions": [
{
2020-11-21 11:55:51 +01:00
"default": "",
"desc": "One per line",
"key": "blacklist",
2020-11-21 11:55:51 +01:00
"length": 10,
"multiline": true,
"name": "Blacklist",
2020-11-21 11:55:51 +01:00
"type": "input",
"useDesc": true,
"useLength": false,
"width": 2
},
{
2020-11-21 11:55:51 +01:00
"default": "",
"desc": "One per line",
2020-11-21 11:55:51 +01:00
"key": "regenBuffs",
"length": 10,
"multiline": true,
"name": "Regeneration Buffs",
"type": "input",
2020-11-21 11:55:51 +01:00
"useDesc": true,
"useLength": false,
"width": 2
}
],
2020-11-21 11:55:51 +01:00
"auto": true,
"backgroundColor": [
0,
0,
0,
0.5
],
"barColor": [
1,
1,
1,
1
],
"conditions": [
{
"changes": [
{
"property": "alpha",
"value": 0.6
}
],
"check": {
"op": ">=",
"trigger": 1,
2020-11-21 11:55:51 +01:00
"value": "100",
"variable": "manaPercent"
}
},
{
"changes": [
{
"property": "backgroundColor",
"value": [
0.7843137254902,
0,
0,
1
]
}
],
"check": {
"op": "<=",
"trigger": 1,
"value": "0",
"variable": "value"
}
},
{
"changes": [
{
"property": "sub.5.glow",
"value": true
}
],
"check": {
"trigger": 1,
"value": 1,
"variable": "glow"
}
}
],
2020-11-21 11:55:51 +01:00
"config": {
"blacklist": "Borahk\nEzeriel\nKrigerkyling\nLoodt\nMagad\nRalfe\nZyaler\nSaxec",
"regenBuffs": "Innervate+\nAura of the Blue Dragon\nDrink\nDim Sum\nFood"
},
"customText": "function()\n local expirationTime = aura_env.state.buffExpirationTime\n if expirationTime ~= 0 and expirationTime ~= nil then\n return Round(expirationTime - GetTime())\n end\n return nil\nend",
"customTextUpdate": "update",
"desaturate": false,
"displayIcon": "",
"frameStrata": 1,
"height": 20,
"icon": true,
"icon_color": [
1,
1,
1,
1
],
2020-11-21 11:55:51 +01:00
"icon_side": "LEFT",
"id": "Raid Healer Manabar",
"ignoreOptionsEventErrors": true,
"internalVersion": 38,
"inverse": false,
"load": {
"class": {
"multi": []
},
"ingroup": {
"multi": {
2020-11-21 11:55:51 +01:00
"group": true,
"raid": true
},
"single": "group"
},
"size": {
"multi": []
},
"spec": {
"multi": []
2020-11-21 11:55:51 +01:00
},
"use_ingroup": false,
"use_never": false
},
2020-11-21 11:55:51 +01:00
"orientation": "HORIZONTAL",
"regionType": "aurabar",
"selfPoint": "CENTER",
"semver": "1.0.0",
"spark": false,
"sparkBlendMode": "ADD",
"sparkColor": [
1,
1,
1,
1
],
"sparkHeight": 30,
"sparkHidden": "NEVER",
"sparkOffsetX": 0,
"sparkOffsetY": 0,
"sparkRotation": 0,
"sparkRotationMode": "AUTO",
"sparkTexture": "Interface\\CastingBar\\UI-CastingBar-Spark",
"sparkWidth": 10,
"subRegions": [
{
"type": "aurabar_bar"
},
{
"anchorXOffset": 0,
"anchorYOffset": 0,
2020-11-21 11:55:51 +01:00
"rotateText": "NONE",
"text_anchorPoint": "ICON_CENTER",
2020-11-21 11:55:51 +01:00
"text_automaticWidth": "Auto",
"text_color": [
1,
1,
1,
1
],
"text_fixedWidth": 64,
"text_font": "Friz Quadrata TT",
2020-11-21 11:55:51 +01:00
"text_fontSize": 12,
"text_fontType": "OUTLINE",
"text_justify": "CENTER",
2020-11-21 11:55:51 +01:00
"text_selfPoint": "CENTER",
"text_shadowColor": [
0,
0,
0,
1
],
2020-11-21 11:55:51 +01:00
"text_shadowXOffset": 1,
"text_shadowYOffset": -1,
"text_text": "%c",
"text_visible": true,
"text_wordWrap": "WordWrap",
"type": "subtext"
},
{
"anchorXOffset": 0,
"anchorYOffset": 0,
"rotateText": "NONE",
"text_anchorPoint": "INNER_LEFT",
2020-11-21 11:55:51 +01:00
"text_automaticWidth": "Auto",
"text_color": [
1,
1,
1,
1
],
"text_fixedWidth": 64,
"text_font": "Friz Quadrata TT",
2020-11-21 11:55:51 +01:00
"text_fontSize": 12,
"text_fontType": "None",
"text_justify": "CENTER",
"text_selfPoint": "AUTO",
"text_shadowColor": [
0,
0,
0,
1
],
2020-11-21 11:55:51 +01:00
"text_shadowXOffset": 1,
"text_shadowYOffset": -1,
"text_text": "%n",
"text_text_format_n_format": "none",
"text_visible": true,
"text_wordWrap": "WordWrap",
"type": "subtext"
},
{
"anchorXOffset": 0,
"anchorYOffset": 0,
"rotateText": "NONE",
"text_anchorPoint": "INNER_RIGHT",
2020-11-21 11:55:51 +01:00
"text_automaticWidth": "Auto",
"text_color": [
1,
1,
1,
1
],
2020-11-21 11:55:51 +01:00
"text_fixedWidth": 64,
"text_font": "Friz Quadrata TT",
"text_fontSize": 12,
2020-11-21 11:55:51 +01:00
"text_fontType": "None",
"text_justify": "CENTER",
"text_selfPoint": "AUTO",
"text_shadowColor": [
0,
0,
0,
1
],
"text_shadowXOffset": 1,
"text_shadowYOffset": -1,
"text_text": "%manaPercent%%",
"text_text_format_manaPercent_format": "none",
2020-11-21 11:55:51 +01:00
"text_visible": true,
"text_wordWrap": "WordWrap",
"type": "subtext"
},
{
2020-11-21 11:55:51 +01:00
"glow": false,
"glowBorder": false,
"glowColor": [
1,
1,
1,
1
],
2020-11-21 11:55:51 +01:00
"glowFrequency": 0.25,
"glowLength": 10,
"glowLines": 15,
2020-11-21 11:55:51 +01:00
"glowScale": 1,
"glowThickness": 1,
"glowType": "Pixel",
"glowXOffset": 0,
"glowYOffset": 0,
"glow_anchor": "bg",
"type": "subglow",
"useGlowColor": false
}
],
2020-11-21 11:55:51 +01:00
"texture": "Details Flat",
"tocversion": 11305,
"triggers": {
"1": {
"trigger": {
2020-11-21 11:55:51 +01:00
"check": "event",
"custom": "function(allStates, event, ...)\n return aura_env.eventHandlers[event](allStates, ...)\nend",
"customVariables": "{\n value = true,\n total = true,\n \n glow = \"bool\",\n manaPercent = \"number\"\n}\n\n\n",
2020-11-21 11:55:51 +01:00
"custom_hide": "timed",
"custom_type": "stateupdate",
2020-11-21 11:55:51 +01:00
"debuffType": "HELPFUL",
"event": "Health",
"events": "GROUP_ROSTER_UPDATE UNIT_POWER_UPDATE UNIT_AURA",
"names": [],
2020-11-21 11:55:51 +01:00
"spellIds": [],
"subeventPrefix": "SPELL",
"subeventSuffix": "_CAST_START",
2020-11-21 11:55:51 +01:00
"type": "custom",
"unit": "player"
},
"untrigger": []
},
2020-11-21 11:55:51 +01:00
"activeTriggerMode": -10,
"disjunctive": "any"
},
2020-11-21 11:55:51 +01:00
"uid": "ESDF3HQnfL9",
"url": "https://wago.io/7Z_gHsD75/1",
"useAdjustededMax": false,
"useAdjustededMin": false,
"version": 1,
2020-11-21 11:55:51 +01:00
"width": 150,
"xOffset": 0,
"yOffset": 0,
"zoom": 0.3
}
],
2020-11-21 11:55:51 +01:00
"d": {
"actions": {
"finish": [],
"init": [],
"start": []
},
"align": "CENTER",
"anchorFrameType": "SCREEN",
"anchorPoint": "CENTER",
"animate": true,
"animation": {
"finish": {
"duration_type": "seconds",
"easeStrength": 3,
"easeType": "none",
"type": "none"
},
"main": {
"duration_type": "seconds",
"easeStrength": 3,
"easeType": "none",
"type": "none"
},
"start": {
"duration_type": "seconds",
"easeStrength": 3,
"easeType": "none",
"type": "none"
}
},
"arcLength": 360,
"authorOptions": [],
"backdropColor": [
1,
1,
1,
0.5
],
"border": false,
"borderBackdrop": "Blizzard Tooltip",
"borderColor": [
0,
0,
0,
1
],
"borderEdge": "Square Full White",
"borderInset": 1,
"borderOffset": 4,
"borderSize": 2,
"columnSpace": 1,
"conditions": [],
"config": [],
"constantFactor": "RADIUS",
"frameStrata": 1,
"fullCircle": true,
"gridType": "RD",
"gridWidth": 5,
"groupIcon": "136041",
"grow": "DOWN",
"id": "Raid Healer Mana",
"ignoreOptionsEventErrors": true,
"internalVersion": 38,
"limit": 5,
"load": {
"class": {
"multi": []
},
"size": {
"multi": []
},
"spec": {
"multi": []
},
"use_class": false
},
"radius": 200,
"regionType": "dynamicgroup",
"rotation": 0,
"rowSpace": 1,
"scale": 1,
"selfPoint": "TOP",
"semver": "1.0.0",
"sort": "none",
"space": 2,
"stagger": 0,
"subRegions": [],
"tocversion": 11305,
"triggers": [
{
"trigger": {
"debuffType": "HELPFUL",
"event": "Health",
"names": [],
"spellIds": [],
"subeventPrefix": "SPELL",
"subeventSuffix": "_CAST_START",
"type": "aura2",
"unit": "player"
},
"untrigger": []
}
],
"uid": "m8artOu3UVD",
"url": "https://wago.io/7Z_gHsD75/1",
"useLimit": false,
"version": 1,
"xOffset": -740,
"yOffset": 538.00085449219
},
"m": "d",
"s": "3.0.5",
"v": 1421,
"wagoID": "7Z_gHsD75"
}