GithubHelp home page GithubHelp logo

kyroskrane / annoyingpopupremover Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 504 KB

World of Warcraft addon to remove some annoying popups in the game

License: MIT License

Lua 100.00%
addon annoying-popups game popup-confirmation-dialog world-of-warcraft worldofwarcraft wow-addon

annoyingpopupremover's People

Contributors

kyroskrane avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

martgon

annoyingpopupremover's Issues

Lua Error on Load in Wrath

1x ...faceAnnoyingPopupRemover\module_undercut.lua:109: attempt to index field 'AuctionHouseFrame' (a nil value)
[string "@AnnoyingPopupRemover\module_undercut.lua"]:109: in function PreloadFunc' [string "@AnnoyingPopupRemover\AnnoyingPopupRemover-v14.0.0-release.lua"]:377: in function ?'
[string "@AnnoyingPopupRemover\AnnoyingPopupRemover-v14.0.0-release.lua"]:410: in function <AnnoyingPopupRemover\AnnoyingPopupRemover.lua:409>

Locals:
(*temporary) =

{
DELETE_GOOD_QUEST_ITEM =
{
}
CONFIRM_BINDER =
{
}
DELETE_GOOD_ITEM =
{
}
}
(*temporary) = nil
(*temporary) = false
(*temporary) = "MISSING"
(*temporary) = "attempt to index field 'AuctionHouseFrame' (a nil value)"
APR =
{
HIDE_STARTUP = false
ToggleStartupMessage = defined @AnnoyingPopupRemover\AnnoyingPopupRemover.lua:312
PrintStatusSingle = defined @AnnoyingPopupRemover\AnnoyingPopupRemover.lua:188
DB =
{
}
OptionsTable =
{
}
NextOrdering = 240
TogglePopup = defined @AnnoyingPopupRemover\AnnoyingPopupRemover.lua:242
Modules =
{
}
HandleAceSettingsChange = defined @AnnoyingPopupRemover\AnnoyingPopupRemover.lua:145
L =
{
}
IsClassic = false
AceConfigCmd =
{
}
PRINT_STARTUP = true
PRINT_CONFIRMATION = true
ConfigFrame = {
}
HIDE_DIALOG = true
AceConfigReg =
{
}
USER_ADDON_SHORT_NAME = "APR"
SetDebug = defined @AnnoyingPopupRemover\AnnoyingPopupRemover.lua:301
Version = "v14.0.0-release"
Utilities =
{
}
FORCE_HIDE_DIALOG = true
PrintStatus = defined @AnnoyingPopupRemover\AnnoyingPopupRemover.lua:202
locale = "enUS"
SHOW_DIALOG = false
Events =
{
}
USER_ADDON_NAME = "Annoying Pop-up Remover"
StoredDialogs =
{
}
Frame = {
}
NO_CONFIRMATION = false
DebugMode = false
}
DebugPrint = defined @AnnoyingPopupRemover\Libs\AddonUtilities\Utilities.lua:106
ThisModule = "undercut"
ControlAHUndercutPopup = defined @AnnoyingPopupRemover\module_undercut.lua:57

Remove popup when enchanting gear with an existing enchant

Requests:

In Discord:

Auras — Today at 1:16 PM
im looking at annoying popup removed for tbc-classic, is the addon capable of removing the enchant override confirmation? for leveling enchanting when youre re-enchanting the same item over and over

In CurseForge:

XboxControllerTV
#89
does this addon also work with overriding enchants on an item for when youre leveling enchanting?

Check if Innkeeper popup can be hidden

Reported on Curse:
I would like to see this with the Innkeepers as well, no “Do you want to make _____ your home?” popup that you have to click ok.

Hearthstones

While this addon is active on the new HC server it wont allow you to set your hearthstone at a new inn. once this addon is removed everything works properly

Classic: Cannot equip group looted items

Reported on CurseForge:

XboxControllerTV
April 30, 2023
Comment # 5986491

this addon does great but ive found an issue in classic were it blocks a popup that should noit be blocked. when going to equip a BoP item that is still tradeable, the addon blocks that popup making it impossible to equip the item. below is a screenshot of the popup it blocks erroneously.
image

Autoloot not working in Classic

Reported by ardox14 in Curseforge comments:

There is some question. In Classic version, with autoloot enabled, when rightclicking on the mob corpse, and some item dropped, pop-up "Pick up this item will bind it to you" doesn't appear. But this item doest't picks up into my inventory (all others picks up). It requires to mouse click on item in loot window to pick up it.

Is it a bug? Or that's an API restriction? Can it be fixed?

Remove popup when buying gear with honor

Posted by Auddax on Curseforge:

Great addon, thank you. Is it possible to remove the warning when buying or selling pvp gear to the vendor? I'm always honor capped and need to buy multiple shields to DE, but there's a warning "Are you sure you wish to exchanged 425 Honor for the follow item?"

It's annoying because anyways I can just resell the item back if I make a mistake.

Thanks!

Translate APR

Hello,

I'd like translate APR in fr_FR. Could you adapt the local file so that I can do the translation?

Regards

Module for Crafting Order PopUp

hi there,

i made a Module (based on your Dragonriding Module) for you AddOn to skip the Crafting Order PopUp when...
You are about to fill a Crafting Order that includes some of your own reagents. Are you sure?

Module:

-- module_craftingorder.lua
-- Written by fuba (fuba82 on CurseForge) and KyrosKrane Sylvanblade ([email protected])
-- Copyright (c) 2023 fuba and KyrosKrane Sylvanblade
-- Licensed under the MIT License, as per the included file.
-- Addon version: v16.0.5-release

-- This file defines a module that APR can handle. Each module is one setting or popup.
-- This module removes the confirmation popup when you are about to fill a Crafting Order that includes some of your own reagents.


-- Grab the WoW-defined addon folder name and storage table for our addon
local addonName, APR = ...

-- Upvalues for readability
local DebugPrint = APR.Utilities.DebugPrint
local ChatPrint = APR.Utilities.ChatPrint
local MakeString = APR.Utilities.MakeString
local L = APR.L


--#########################################
--# Module settings
--#########################################

-- Note the lowercase naming of modules. Makes it easier to pass status and settings around
local ThisModule = "craftingorder"

-- Set up the module
APR.Modules[ThisModule] = {}

-- the name of the variable in APR.DB and its default value
APR.Modules[ThisModule].DBName = "HideCraftingOrder"
APR.Modules[ThisModule].DBDefaultValue = APR.HIDE_DIALOG

-- This is the config setup for AceConfig
APR.Modules[ThisModule].config = {
	name = L["Hide the confirmation pop-up when Craft a Crafting Order that includes some of your own reagents."],
	type = "toggle",
	set = function(info, val) APR:HandleAceSettingsChange(val, info) end,
	get = function(info) return APR.DB.HideCraftingOrder end,
	descStyle = "inline",
	width = "full",
} -- config

-- Set the order based on the file inclusion order in the TOC
APR.Modules[ThisModule].config.order = APR.NextOrdering
APR.NextOrdering = APR.NextOrdering + 10

-- These are the status strings that are printed to indicate whether it's off or on
APR.Modules[ThisModule].hidden_msg = L[ThisModule .. "_hidden"]
APR.Modules[ThisModule].shown_msg = L[ThisModule .. "_shown"]

-- This Boolean tells us whether this module works in Classic.
APR.Modules[ThisModule].WorksInClassic = false

-- This Boolean tells us whether to disable this module during combat.
-- Weirdly, this works fine in combat! No errors.
APR.Modules[ThisModule].DisableInCombat = false


-- This function causes the popup to show when triggered.
APR.Modules[ThisModule].ShowPopup = function(printconfirm)
	DebugPrint("in APR.Modules['" .. ThisModule .. "'].ShowPopup, printconfirm is " .. MakeString(printconfirm))

	APR.DB.HideCraftingOrder = APR.SHOW_DIALOG

	if printconfirm then APR:PrintStatus(ThisModule) end
end -- ShowPopup()


-- This function causes the popup to be hidden when triggered.
APR.Modules[ThisModule].HidePopup = function(printconfirm, ForceHide)
	DebugPrint("in APR.Modules['" .. ThisModule .. "'].HidePopup, printconfirm is " .. MakeString(printconfirm ) .. ", ForceHide is " .. MakeString(ForceHide))

	APR.DB.HideCraftingOrder = APR.HIDE_DIALOG

	if printconfirm then APR:PrintStatus(ThisModule) end
end -- HidePopup()


if not APR.IsClassic or APR.Modules[ThisModule].WorksInClassic then

	-- When the user clicks the "Craft" Button, the confirmation dialog is shown. The parameters to the ShowPopup function have the callback to actually Craft the Crafting Order.

	-- This function attempts to actually Craft the Crafting Order
	local function ConfirmCraftOrderWithOwnReagents(customData, insertedFrame)
		DebugPrint("In ConfirmCraftOrderWithOwnMaterial")
		-- for debugging only
		if false then
			APR.Utilities.DumpTable(customData)
		end

		if not APR.DB.HideCraftingOrder then
			DebugPrint("HideCraftingOrder off")
			return
		end

		if ProfessionsFrame and ProfessionsFrame.OrdersPage and ProfessionsFrame.OrdersPage:IsShown() and type(customData) == "table" and (customData.text and type(customData.text) == "string" and #customData.text > 0) then
			if customData.text == CRAFTING_ORDERS_OWN_REAGENTS_CONFIRMATION then -- CRAFTING_ORDERS_OWN_REAGENTS_CONFIRMATION = "You are about to fill a Crafting Order that includes some of your own reagents. Are you sure?"
				DebugPrint("Start Crafting Order")

				-- Execute the callback that actually starts Crafting the Crafting Order
				customData.callback()

				-- hide the now-redundant confirmation popup.
				StaticPopup_Hide("GENERIC_CONFIRMATION")
			else
				DebugPrint("Popup for Crafting Order that includes some of your own reagents not found")
			end
		end

	end -- function ConfirmCraftOrderWithOwnReagents()

	-- Start Crafting the Crafting Order when the confirmation dialog is displayed.
	hooksecurefunc("StaticPopup_ShowCustomGenericConfirmation", ConfirmCraftOrderWithOwnReagents)

end -- WoW Classic check

maybe you can add it sometimes and also take a look into it if i did everything correct 😉
greetings, fuba

Taint Issue in Wrath

Could be something else, but the error is attributed to APR.

9/18 19:43:10.473 An action was blocked because of taint from AnnoyingPopupRemover - Search()
9/18 19:43:10.473 Interface\AddOns\Blizzard_LookingForGroupUI\Blizzard_LFGBrowse.lua:225 LFGBrowse_DoSearch()
9/18 19:43:10.473 Interface\AddOns\Blizzard_LookingForGroupUI\Blizzard_LFGBrowse.lua:178 LFGBrowseFrame:SearchActiveEntry()
9/18 19:43:10.473 Interface\AddOns\Blizzard_LookingForGroupUI\Blizzard_LFGParentFrame.lua:92 LFGParentFrame_SearchActiveEntry()
9/18 19:43:10.473 Interface\AddOns\Blizzard_LookingForGroupUI\Blizzard_LFGListing.lua:67

Skip confirmation popup for using XP item on follower

This is the code I quickly whipped up that accomplishes it, though I'm sure you have a more secure method:

hooksecurefunc("StaticPopup_Show", function(upgradeType) if upgradeType == "CONFIRM_FOLLOWER_UPGRADE" then StaticPopupDialogs["CONFIRM_FOLLOWER_UPGRADE"].OnAccept(StaticPopup1) StaticPopup_Hide("CONFIRM_FOLLOWER_UPGRADE") end end)

Lua error in WoW Classic

Reported on Curse:

Message: ...AddOns\AnnoyingPopupRemover\AnnoyingPopupRemover.lua:1054: Attempt to register unknown event "VOID_DEPOSIT_WARNING"
Time: Fri Aug 30 18:00:58 2019
Count: 1
Stack: ...AddOns\AnnoyingPopupRemover\AnnoyingPopupRemover.lua:1054: Attempt to register unknown event "VOID_DEPOSIT_WARNING"
[C]: in function `RegisterEvent'
...AddOns\AnnoyingPopupRemover\AnnoyingPopupRemover.lua:1054: in main chunk

Locals: (*temporary) = <unnamed> {
 0 = <userdata>
}
(*temporary) = "VOID_DEPOSIT_WARNING"

UI Error when trying to equip tradable item in combat

Issue was 100% repeatable, not a big deal but still wanted to report.
When trying to equip tradable weapon, with the blue info text from party drops, while in combat, would get "action failed due to addon" error.
Issue occurred with this as the only addon. Issue did not occur when I unchecked "show warning for tradable item".

Thanks for the addon! It's a life saver when mass-buying BOE for transmog off AH.

Not working in Torghast

When I buy powers in Torghast (solo, haven't tested with group) this addon doesn't prevent the dialogue box, though it's working fine for other alternative currency purchases.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.