PlantCare

21 - Not passing alt-click to other addons

What steps will reproduce the problem?

1. Install Streamline addon

2. Configure to allow alt-click to auto-auction (on the 'Bags' button)

3. Attempt to alt-click with the auction window open at the tab where you start your own auctions.

What is the expected output? What do you see instead?

Expected outcome is for Streamline to drop the item in the auction slot and attempt to confirm the auction. This doesn't always work due to timing for me, but the item always ends up in the auction slot.

Currently when I attempt this nothing happens at all.

What version of the product are you using?

2.07

Please provide any additional information below.

This may or may not occur prior to opening a plant frame for the first time, I haven't confirmed this.

Possible workarounds might include ignoring the alt-click when a plant frame isn't open, an option to ignore alt-click entirely, or passing the event on to other addons (though I'm not sure how this is handled).

User When Change
oeginc May 02, 2010 at 01:10 UTC Changed status from Replied to Invalid
delve202 May 01, 2010 at 15:43 UTC Changed status from Waiting to Replied
oeginc Apr 30, 2010 at 13:17 UTC Changed status from New to Waiting
oeginc Apr 30, 2010 at 11:51 UTC Changed assigned to from lusiux to oeginc
delve202 Apr 30, 2010 at 10:26 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • 2 comments
  • Avatar of delve202 delve202 May 01, 2010 at 15:43 UTC - 0 likes

    Disregard this, I believe it was an error on my part. Sorry :)

    Just another world addict with a relapse problem.

  • Avatar of oeginc oeginc Apr 30, 2010 at 13:17 UTC - 0 likes

    PlantCare was written to ignore ALT and CTRL clicks when the Planting frame is not visible. It should be passing the CTRL or ALT on to the next function if the Planting frame is not visible.

    The corresponding lines of code are around lines 954 that read:

    if IsCtrlKeyDown() and PlantFrame:IsVisible() then ... AutoPlant clicked seed elseif IsAltKeyDown() and PlantFrame:IsVisible() then ... Select clicked seed to autoplant else Sol.hooks.GetOriginalFn(PlantCare.name, "BagItemButton_OnClick")(bagButton, ...)

    Also, if it's PlantCare that is intercepting the click, you should get a message saying "Auto-Planting seed selected, now click the pots you wish to plant this seed in".

    Please let me know.

  • 2 comments

Facts

Last updated
May 02, 2010
Reported
Apr 30, 2010
Status
Invalid - This was not a valid report.
Type
Defect - A shortcoming, fault, or imperfection
Priority
Medium - Normal priority.
Votes
0

Reported by

Possible assignees