TheKrowi / Krowi_ExtendedVendorUI

Merchant Frame Extended is a small addon that lets you extend the default 5 rows, 2 columns merchant frame up to 10 rows and 6 columns. The direction in which the items fill the window is also adjustable.
Other
5 stars 2 forks source link

Problem with shift-clicking on items to by multiple #15

Closed GurliGebis closed 1 year ago

GurliGebis commented 1 year ago

When shift-clicking an item with the beta6 build, nothing happens, and the following stacktrace is printed in the log: This is in reference to issue #1 - link to video will be sent in private over discord.

2x FrameXML/MerchantFrame.lua:625: attempt to compare number with nil
[string "@FrameXML/MerchantFrame.lua"]:625: in function <FrameXML/MerchantFrame.lua:597>
[string "=[C]"]: in function `MerchantItemButton_OnModifiedClick'
[string "*MerchantFrame.xml:34_OnClick"]:2: in function <[string "*MerchantFrame.xml:34_OnClick"]:1>

Locals:
self = MerchantItem2ItemButton {
 0 = <userdata>
 SetItemButtonTexture = <function> defined @FrameXML/ItemButtonTemplate.lua:674
 SetItem = <function> defined @FrameXML/ItemButtonTemplate.lua:544
 IconOverlay = Texture {
 }
 SetAlpha = <function> defined @FrameXML/ItemButtonTemplate.lua:631
 showMatchHighlight = true
 icon = MerchantItem2ItemButtonIconTexture {
 }
 UpdateTooltip = <function> defined @Krowi_ExtendedVendorUI/Gui/MerchantItemsContainer.lua:18
 GetBagID = <function> defined @FrameXML/ItemButtonTemplate.lua:643
 count = 5
 PostOnHide = <function> defined @FrameXML/ItemButtonTemplate.lua:423
 showNonrefundablePrompt = true
 SetItemButtonCount = <function> defined @FrameXML/ItemButtonTemplate.lua:614
 SplitStack = <function> defined @BulkBuy/core.lua:56
 UpdateCraftedProfessionsQualityShown = <function> defined @FrameXML/ItemButtonTemplate.lua:461
 HighlightTexture = Texture {
 }
 PostOnEvent = <function> defined @FrameXML/ItemButtonTemplate.lua:427
 UpdateItemContextOverlayTextures = <function> defined @FrameXML/ItemButtonTemplate.lua:499
 SetItemSource = <function> defined @FrameXML/ItemButtonTemplate.lua:528
 hasItem = true
 SetBagID = <function> defined @FrameXML/ItemButtonTemplate.lua:639
 UpdateItemContextOverlay = <function> defined @FrameXML/ItemButtonTemplate.lua:488
 numInStock = -1
 PushedTexture = Texture {
 }
 Count = MerchantItem2ItemButtonCount {
 }
 SetItemButtonAnchorPoint = <function> defined @FrameXML/ItemButtonTemplate.lua:618
 searchOverlay = MerchantItem2ItemButtonSearchOverlay {
 }
 NormalTexture = MerchantItem2ItemButtonNormalTexture {
 }
 IconOverlay2 = Texture {
 }
 OnUpdateItemContextMatching = <function> defined @FrameXML/ItemButtonTemplate.lua:651
 price = 25000
 OnItemContextChanged = <function> defined @FrameXML/ItemButtonTemplate.lua:410
 SetItemButtonScale = <function> defined @FrameXML/ItemButtonTemplate.lua:623
 isCraftedItem = false
 isProfessionItem = false
 CanIMogItOverlay = CIMIOverlayFrame_MerchantItem2ItemButton {
 }
 GetItemButtonBackgroundTexture = <function> defined @FrameXML/ItemButtonTemplate.lua:682
 ItemContextOverlay = Texture {
 }
 GetItemLocation = <function> defined @FrameXML/ItemButtonTemplate.lua:610
 link = "|cffffffff|Hitem:194684::::::::70:66:::::::::|h[Azure Leywine]|h|r"
 GetItemID = <function> defined @FrameXML/ItemButtonTemplate.lua:591
 GetItemButtonCount = <function> defined @FrameXML/ItemButtonTemplate.lua:627
 name = "Azure Leywine"
 RegisterBagButtonUpdateItemContextMatching = <function> defined @FrameXML/ItemButtonTemplate.lua:657
 SetItemButtonQuality = <function> defined @FrameXML/ItemButtonTemplate.lua:662
 IconBorder = Texture {
 }
 itemContextMatchResult = 3
 texture = 236213
 UpdateItemContextMatching = <function> defined @FrameXML/ItemButtonTemplate.lua:450
 SetMatchesSearch = <function> defined @FrameXML/ItemButtonTemplate.lua:441
 Stock = MerchantItem2ItemButtonStock {
 }
 SetItemInternal = <function> defined @FrameXML/ItemButtonTemplate.lua:549
 SetItemLocation = <function> defined @FrameXML/ItemButtonTemplate.lua:532
 GetItemLink = <function> defined @FrameXML/ItemButtonTemplate.lua:606
 GetItem = <function> defined @FrameXML/ItemButtonTemplate.lua:602
 GetItemInfo = <function> defined @FrameXML/ItemButtonTemplate.lua:575
 GetSlotAndBagID = <function> defined @FrameXML/ItemButtonTemplate.lua:647
 PostOnShow = <function> defined @FrameXML/ItemButtonTemplate.lua:414
 GetItemContextOverlayMode = <function> defined @FrameXML/ItemButtonTemplate.lua:471
 SetItemButtonTextureVertexColor = <function> defined @FrameXML/ItemButtonTemplate.lua:670
 GetItemButtonIconTexture = <function> defined @FrameXML/ItemButtonTemplate.lua:678
 GetMatchesSearch = <function> defined @Interfa
GurliGebis commented 1 year ago

Nevermind, it seems like it only updated to beta5 - now beta6 showed up, and it is working as expected.