Delete Button
add a fast delete button
need relog in game
|
|
| Quick Facts |
|---|
Contains custom functions.
Code has been reviewed and is safe to use, custom functions might affect in-game performance.
{
"m": "d",
"d": {
"outline": "OUTLINE",
"wagoID": "GjOahYkri",
"xOffset": 0,
"yOffset": 0,
"anchorPoint": "TOP",
"displayText_format_p_time_format": 0,
"customTextUpdate": "event",
"url": "Ayro",
"actions": {
"start": [],
"init": {
"custom": "aura_env.Main = function()\n aura_env.isHooked = true\n local editBox = StaticPopup1 and StaticPopup1.editBox\n if not editBox then return end\n \n -- Create Button\n local deleteButton = CreateFrame(\"Button\", \"WA_PopupDeleteButton\", editBox, \"UIPanelButtonTemplate\")\n deleteButton:SetPoint(\"LEFT\", editBox, \"RIGHT\", 15, 0)\n deleteButton:SetSize(65, 20)\n deleteButton.buttonLabel = _G.DELETE_ITEM_CONFIRM_STRING\n deleteButton:SetText(deleteButton.buttonLabel)\n deleteButton:SetBackdrop({\n bgFile = \"Interface\\\\Tooltips\\\\UI-Tooltip-Background\",\n edgeFile = \"Interface\\\\BUTTONS\\\\WHITE8X8\",\n tileSize = 0,\n edgeSize = 1,\n insets = { left = 0, right = 0, top = 0, bottom = 0 }\n })\n deleteButton:SetNormalTexture(nil)\n deleteButton:SetHighlightTexture(nil)\n deleteButton:SetPushedTexture(nil)\n deleteButton:SetBackdropColor(26 \/ 255, 26 \/ 255, 26 \/ 255, 1)\n deleteButton:SetBackdropBorderColor(0, 0, 0, 1)\n \n deleteButton:SetScript(\"OnEnter\", function(self)\n self:SetBackdropBorderColor(1, 0.42, 0, 1)\n end)\n \n deleteButton:SetScript(\"OnLeave\", function(self)\n self:SetBackdropBorderColor(0, 0, 0, 1)\n end)\n \n deleteButton:SetScript(\"OnClick\", function(self)\n local editBox = StaticPopup1 and StaticPopup1.editBox\n if editBox then\n editBox:SetText(self.buttonLabel)\n end\n end)\n \n -- Set Hook to show delete Button\n hooksecurefunc(\"StaticPopup_Show\", function(which)\n if which == \"DELETE_GOOD_ITEM\" then\n local deleteButton = _G.WA_PopupDeleteButton\n if deleteButton then\n deleteButton:Show()\n end\n end\n end)\n \n -- Set Hook to hide delete Button\n hooksecurefunc(\"StaticPopup_Hide\", function(which)\n if which == \"DELETE_GOOD_ITEM\" then\n local deleteButton = _G.WA_PopupDeleteButton\n if deleteButton then\n deleteButton:Hide()\n end\n end\n end)\nend",
"do_custom": true
},
"finish": []
},
"triggers": {
"1": {
"trigger": {
"type": "custom",
"subeventSuffix": "_CAST_START",
"event": "Health",
"unit": "player",
"custom_hide": "timed",
"events": "PLAYER_ENTERING_WORLD",
"custom": "function(event, ...)\n return event == \"PLAYER_ENTERING_WORLD\" and not aura_env.isHooked and aura_env.Main()\nend",
"subeventPrefix": "SPELL",
"names": [],
"custom_type": "event",
"spellIds": [],
"debuffType": "HELPFUL"
},
"untrigger": []
},
"activeTriggerMode": -10
},
"displayText_format_p_format": "timed",
"internalVersion": 53,
"selfPoint": "BOTTOM",
"desc": "Adds a Fast Delete Button",
"font": "Friz Quadrata TT",
"version": 3,
"subRegions": [
{
"type": "subbackground"
}
],
"load": {
"talent": {
"multi": []
},
"spec": {
"multi": []
},
"class": {
"multi": []
},
"size": {
"multi": []
}
},
"fontSize": 12,
"source": "import",
"shadowXOffset": 1,
"regionType": "text",
"automaticWidth": "Auto",
"wordWrap": "WordWrap",
"conditions": [],
"displayText_format_p_time_precision": 1,
"color": [
1,
1,
1,
1
],
"justify": "LEFT",
"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"
}
},
"semver": "1.0.2",
"tocversion": 30300,
"id": "Fast Delete Button",
"uid": "vCGVX62fudl",
"frameStrata": 2,
"anchorFrameType": "SCREEN",
"shadowYOffset": -1,
"config": [],
"authorOptions": [
{
"type": "description",
"fontSize": "medium",
"text": "--AYRO\n",
"width": 1
}
],
"displayText_format_p_time_dynamic_threshold": 60,
"shadowColor": [
0,
0,
0,
1
],
"fixedWidth": 200,
"information": [],
"displayText": ""
},
"s": "4.2.5",
"v": 1421
}