wow-addons/WA-RaidHealerMana/RaidHealerMana.table

490 lines
15 KiB
Plaintext
Raw Permalink Normal View History

{
2021-05-26 22:29:26 +02:00
"m": "d",
"s": "3.3.0",
"d": {
"yOffset": 538.00085449219,
"information": {
"ignoreOptionsEventErrors": true
},
"regionType": "dynamicgroup",
"animation": {
"main": {
"type": "none",
"duration_type": "seconds",
"easeType": "none",
"easeStrength": 3
},
"start": {
"type": "none",
"duration_type": "seconds",
"easeType": "none",
"easeStrength": 3
},
"finish": {
"type": "none",
"duration_type": "seconds",
"easeType": "none",
"easeStrength": 3
}
},
"limit": 5,
"uid": "m8artOu3UVD",
"arcLength": 360,
"useLimit": false,
"xOffset": -582,
"borderEdge": "Square Full White",
"animate": true,
"subRegions": [],
"radius": 200,
"actions": {
"init": [],
"start": [],
"finish": []
},
"config": [],
"tocversion": 11307,
"scale": 1,
"authorOptions": [],
"groupIcon": "136041",
"gridType": "RD",
"selfPoint": "TOP",
"grow": "DOWN",
"internalVersion": 45,
"border": false,
"borderInset": 1,
"rowSpace": 1,
"borderBackdrop": "Blizzard Tooltip",
"anchorFrameType": "SCREEN",
"borderOffset": 4,
"constantFactor": "RADIUS",
"frameStrata": 1,
"sort": "none",
"stagger": 0,
"gridWidth": 5,
"id": "Raid Healer Mana",
"conditions": [],
"anchorPoint": "CENTER",
"columnSpace": 1,
"borderColor": [
0,
0,
0,
1
],
"backdropColor": [
1,
1,
1,
0.5
],
"load": {
"zoneIds": "",
"spec": {
"multi": []
},
"size": {
"multi": []
},
"class": {
"multi": []
},
"talent": {
"multi": []
},
"use_class": false
},
"align": "CENTER",
"triggers": [
{
"untrigger": [],
"trigger": {
"spellIds": [],
"subeventPrefix": "SPELL",
"unit": "player",
"event": "Health",
"debuffType": "HELPFUL",
"subeventSuffix": "_CAST_START",
"names": [],
"type": "aura2"
}
}
],
"borderSize": 2,
"space": 0,
"rotation": 0,
"fullCircle": true
},
"v": 1421,
"c": [
{
2021-05-26 22:29:26 +02:00
"yOffset": 0,
"desaturate": false,
"information": {
"ignoreOptionsEventErrors": true
2020-11-21 11:55:51 +01:00
},
2021-05-26 22:29:26 +02:00
"sparkTexture": "Interface\\CastingBar\\UI-CastingBar-Spark",
2020-11-21 11:55:51 +01:00
"anchorFrameType": "SCREEN",
"animation": {
"main": {
2020-11-21 11:55:51 +01:00
"colorA": 1,
2021-05-26 22:29:26 +02:00
"x": 0,
"y": 0,
"colorType": "custom",
"alpha": 0,
"colorG": 1,
"colorR": 1,
2021-05-26 22:29:26 +02:00
"colorB": 1,
2020-11-21 11:55:51 +01:00
"scalex": 1,
2021-05-26 22:29:26 +02:00
"easeStrength": 3,
"scaley": 1,
"type": "custom",
"use_color": true,
2021-05-26 22:29:26 +02:00
"rotate": 0,
"duration_type": "seconds",
"easeType": "none",
"colorFunc": "function(progress, r1, g1, b1, a1, r2, g2, b2, a2)\n return unpack(aura_env.state.barColor)\nend"
},
"start": {
2020-11-21 11:55:51 +01:00
"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 ",
2021-05-26 22:29:26 +02:00
"x": 0,
"y": 0,
"colorType": "straightHSV",
"alpha": 0,
"colorG": 0,
"colorR": 1,
2021-05-26 22:29:26 +02:00
"colorB": 0.15294117647059,
"scalex": 1,
"duration": "",
2020-11-21 11:55:51 +01:00
"easeStrength": 3,
"scaley": 1,
2021-05-26 22:29:26 +02:00
"colorA": 1,
2020-11-21 11:55:51 +01:00
"use_color": false,
2021-05-26 22:29:26 +02:00
"rotate": 0,
"duration_type": "seconds",
"easeType": "none",
"type": "none"
},
"finish": {
"type": "none",
"duration_type": "seconds",
"easeType": "none",
"easeStrength": 3
}
},
2021-05-26 22:29:26 +02:00
"selfPoint": "CENTER",
"texture": "Details Flat",
"iconSource": -1,
"xOffset": 0,
"regionType": "aurabar",
"orientation": "HORIZONTAL",
"authorOptions": [
{
2021-05-26 22:29:26 +02:00
"width": 2,
"useLength": false,
"length": 10,
"desc": "One per line",
2021-05-26 22:29:26 +02:00
"useDesc": true,
"key": "blacklist",
2021-05-26 22:29:26 +02:00
"type": "input",
"multiline": true,
"name": "Blacklist",
2021-05-26 22:29:26 +02:00
"default": ""
},
{
2021-05-26 22:29:26 +02:00
"width": 2,
"useLength": false,
2020-11-21 11:55:51 +01:00
"length": 10,
2021-05-26 22:29:26 +02:00
"desc": "One per line",
"name": "Regeneration Buffs",
2020-11-21 11:55:51 +01:00
"useDesc": true,
2021-05-26 22:29:26 +02:00
"type": "input",
"multiline": true,
"key": "regenBuffs",
"default": ""
}
],
2021-05-26 22:29:26 +02:00
"sparkOffsetX": 0,
"inverse": false,
"sparkColor": [
1,
1,
1,
1
],
2021-05-26 22:29:26 +02:00
"spark": false,
"actions": {
"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\n\n\naura_env.eventHandlers.OPTIONS = function(allStates)\n return false\nend",
"do_custom": true
},
2021-05-26 22:29:26 +02:00
"start": {
"do_custom": false
},
2021-05-26 22:29:26 +02:00
"finish": []
},
2020-11-21 11:55:51 +01:00
"config": {
2021-05-26 22:29:26 +02:00
"blacklist": "Borahk\nEzeriel\nKrigerkyling\nLoodt\nMagad\nRalfe\nZyaler\nSaxec\nAshrat\nFlashlight\nDraenyx\nMoonsis",
2020-11-21 11:55:51 +01:00
"regenBuffs": "Innervate+\nAura of the Blue Dragon\nDrink\nDim Sum\nFood"
},
2021-05-26 22:29:26 +02:00
"sparkOffsetY": 0,
"width": 150,
"sparkRotation": 0,
2020-11-21 11:55:51 +01:00
"id": "Raid Healer Manabar",
"sparkBlendMode": "ADD",
2021-05-26 22:29:26 +02:00
"alpha": 1,
"customTextUpdate": "update",
"internalVersion": 45,
"backgroundColor": [
0,
0,
0,
0.5
],
"barColor": [
2020-11-21 11:55:51 +01:00
1,
1,
1,
1
],
"sparkHidden": "NEVER",
2021-05-26 22:29:26 +02:00
"anchorPoint": "CENTER",
"tocversion": 11307,
"auto": true,
"subRegions": [
{
"type": "aurabar_bar"
},
{
2021-05-26 22:29:26 +02:00
"text_visible": true,
2020-11-21 11:55:51 +01:00
"text_automaticWidth": "Auto",
2021-05-26 22:29:26 +02:00
"rotateText": "NONE",
"anchorXOffset": 0,
"text_fontType": "OUTLINE",
"text_shadowYOffset": -1,
"text_fixedWidth": 64,
"text_font": "Friz Quadrata TT",
"text_justify": "CENTER",
2021-05-26 22:29:26 +02:00
"text_wordWrap": "WordWrap",
2020-11-21 11:55:51 +01:00
"text_selfPoint": "CENTER",
2021-05-26 22:29:26 +02:00
"text_text": "%c",
"anchorYOffset": 0,
"text_shadowColor": [
0,
0,
0,
1
],
2021-05-26 22:29:26 +02:00
"text_anchorPoint": "ICON_CENTER",
"text_color": [
1,
1,
1,
1
],
2021-05-26 22:29:26 +02:00
"type": "subtext",
"text_fontSize": 12,
"text_shadowXOffset": 1
},
{
"text_text_format_n_format": "none",
"text_automaticWidth": "Auto",
"rotateText": "NONE",
"anchorXOffset": 0,
"text_fontType": "None",
"text_shadowYOffset": -1,
"text_fixedWidth": 64,
"text_font": "Friz Quadrata TT",
"text_justify": "CENTER",
2021-05-26 22:29:26 +02:00
"text_wordWrap": "WordWrap",
"text_selfPoint": "AUTO",
2021-05-26 22:29:26 +02:00
"text_text": "%n",
"anchorYOffset": 0,
"text_shadowColor": [
0,
0,
0,
1
],
2021-05-26 22:29:26 +02:00
"text_anchorPoint": "INNER_LEFT",
"text_color": [
1,
1,
1,
1
],
2021-05-26 22:29:26 +02:00
"type": "subtext",
"text_visible": true,
"text_fontSize": 12,
2021-05-26 22:29:26 +02:00
"text_shadowXOffset": 1
},
{
"text_visible": true,
"text_automaticWidth": "Auto",
"rotateText": "NONE",
"anchorXOffset": 0,
2020-11-21 11:55:51 +01:00
"text_fontType": "None",
2021-05-26 22:29:26 +02:00
"text_shadowYOffset": -1,
"text_fixedWidth": 64,
"text_font": "Friz Quadrata TT",
2020-11-21 11:55:51 +01:00
"text_justify": "CENTER",
2021-05-26 22:29:26 +02:00
"text_wordWrap": "WordWrap",
2020-11-21 11:55:51 +01:00
"text_selfPoint": "AUTO",
2021-05-26 22:29:26 +02:00
"text_text": "%manaPercent%%",
"anchorYOffset": 0,
2020-11-21 11:55:51 +01:00
"text_shadowColor": [
0,
0,
0,
1
],
2021-05-26 22:29:26 +02:00
"text_anchorPoint": "INNER_RIGHT",
"text_color": [
1,
1,
1,
1
],
"type": "subtext",
"text_fontSize": 12,
"text_text_format_manaPercent_format": "none",
2021-05-26 22:29:26 +02:00
"text_shadowXOffset": 1
},
{
"glowColor": [
1,
1,
1,
1
],
2020-11-21 11:55:51 +01:00
"glowScale": 1,
2021-05-26 22:29:26 +02:00
"glowLines": 15,
"glow": false,
"glowXOffset": 0,
"glowYOffset": 0,
2021-05-26 22:29:26 +02:00
"glowThickness": 1,
"glow_anchor": "bg",
2021-05-26 22:29:26 +02:00
"glowLength": 10,
"glowBorder": false,
"type": "subglow",
2021-05-26 22:29:26 +02:00
"glowType": "Pixel",
"glowFrequency": 0.25,
"useGlowColor": false
}
],
2021-05-26 22:29:26 +02:00
"zoom": 0.3,
"height": 20,
"frameStrata": 1,
"icon": true,
"displayIcon": "",
"conditions": [
{
"changes": [
{
"property": "alpha",
"value": 0.6
}
],
"check": {
"op": ">=",
"trigger": 1,
"variable": "manaPercent",
"value": "100"
}
},
{
"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"
}
}
],
"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",
"icon_color": [
1,
1,
1,
1
],
"useAdjustededMax": false,
"sparkHeight": 30,
"load": {
"zoneIds": "",
"use_never": false,
"size": {
"multi": []
},
"use_ingroup": false,
"spec": {
"multi": []
},
"class": {
"multi": []
},
"talent": {
"multi": []
},
"ingroup": {
"single": "group",
"multi": {
"raid": true,
"group": true
}
}
},
"sparkRotationMode": "AUTO",
"triggers": {
"1": {
2021-05-26 22:29:26 +02:00
"untrigger": [],
"trigger": {
2020-11-21 11:55:51 +01:00
"custom_hide": "timed",
2021-05-26 22:29:26 +02:00
"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
"debuffType": "HELPFUL",
2021-05-26 22:29:26 +02:00
"custom_type": "stateupdate",
"names": [],
"subeventPrefix": "SPELL",
2021-05-26 22:29:26 +02:00
"custom": "function(allStates, event, ...)\n return aura_env.eventHandlers[event](allStates, ...)\nend",
"unit": "player",
"events": "GROUP_ROSTER_UPDATE UNIT_POWER_UPDATE UNIT_AURA",
"event": "Health",
2020-11-21 11:55:51 +01:00
"type": "custom",
2021-05-26 22:29:26 +02:00
"subeventSuffix": "_CAST_START",
"spellIds": [],
"check": "event"
}
},
2021-05-26 22:29:26 +02:00
"disjunctive": "any",
"activeTriggerMode": -10
},
"useAdjustededMin": false,
2021-05-26 22:29:26 +02:00
"sparkWidth": 10,
"uid": "ESDF3HQnfL9",
"icon_side": "LEFT"
}
2021-05-26 22:29:26 +02:00
]
}