Auto Hide Errors in Combat
Automatically hides errors in combat.
Re-appears when out of combat.
- Added short delay
|
|
| Quick Facts |
|---|
Automatically hides errors in combat.
Re-appears when out of combat.
Contains custom functions.
Code has been reviewed and is safe to use, custom functions might affect in-game performance.
{
"m": "d",
"d": {
"outline": "OUTLINE",
"xOffset": -1380,
"displayText": "ERR",
"yOffset": -780,
"anchorPoint": "CENTER",
"displayText_format_p_time_format": 0,
"customTextUpdate": "event",
"automaticWidth": "Auto",
"actions": {
"start": {
"do_custom": true,
"custom": "-- Cancel any existing timer\nif localTimer and type(localTimer.Cancel) == \"function\" then\n localTimer:Cancel()\nend\n\n-- Hide UIErrorsFrame immediately\nUIErrorsFrame:Hide()"
},
"finish": {
"do_custom": true,
"custom": "-- Start a new timer and store it\nlocalTimer = C_Timer.NewTimer(aura_env.config.displayErrorsAfter, function()\n if not UnitAffectingCombat(\"player\") then\n UIErrorsFrame:Show()\n end\nend)"
},
"init": {
"do_custom": false,
"custom": "UIErrorsFrame:Hide()"
}
},
"triggers": {
"1": {
"trigger": {
"debuffType": "HELPFUL",
"type": "aura2",
"spellIds": [],
"subeventSuffix": "_CAST_START",
"unit": "player",
"subeventPrefix": "SPELL",
"event": "Health",
"names": []
},
"untrigger": []
},
"activeTriggerMode": -10
},
"displayText_format_p_format": "timed",
"internalVersion": 53,
"wordWrap": "WordWrap",
"desaturate": false,
"discrete_rotation": 0,
"font": "Friz Quadrata TT",
"subRegions": [
{
"type": "subbackground"
}
],
"height": 200,
"rotate": true,
"load": {
"talent": {
"multi": []
},
"class": {
"multi": []
},
"use_combat": true,
"spec": {
"multi": []
},
"size": {
"multi": []
}
},
"fontSize": 12,
"source": "import",
"shadowXOffset": 1,
"color": [
1,
1,
1,
1
],
"mirror": false,
"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"
}
},
"regionType": "text",
"conditions": [],
"blendMode": "BLEND",
"displayText_format_p_time_dynamic_threshold": 60,
"rotation": 0,
"selfPoint": "CENTER",
"displayText_format_p_time_precision": 1,
"texture": "Interface\\Addons\\WeakAuras\\PowerAurasMedia\\Auras\\Aura3",
"uid": "QJYJPq5JDQv",
"frameStrata": 1,
"justify": "LEFT",
"tocversion": 30300,
"id": " Hide Errors in Combat",
"anchorFrameType": "SCREEN",
"alpha": 1,
"width": 200,
"shadowYOffset": -1,
"config": {
"displayErrorsAfter": 5
},
"authorOptions": [
{
"type": "range",
"useDesc": true,
"max": 10,
"step": 1,
"width": 2,
"min": 0,
"name": "Display Errors After",
"default": 5,
"key": "displayErrorsAfter",
"desc": "Slight delay after which the error box re-appears if you are no longer in combat."
}
],
"shadowColor": [
0,
0,
0,
1
],
"fixedWidth": 200,
"information": [],
"desc": "WeakAura by Gordu (Kandy).\n\nAutomatically hides Error frame while in combat.\nIncludes short delay before re-appearing (configurable via WA - Custom Options tab)"
},
"s": "4.2.5",
"v": 1421
}