Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternative fix for to the accidental tile purchases #216

Merged
merged 1 commit into from
Nov 13, 2017

Conversation

Azurency
Copy link
Owner

As discussed in #201 only buy a tile if there's no drag.
I just register the drag event with mouse down, mouse up and mouse move (like in minimappanel.lua for instance) and then check that in OnClickPurchasePlot

It needs to be tested.

Copy link
Collaborator

@sparrow8332 sparrow8332 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works like a charm dude well done :-)

@Azurency Azurency merged commit 04ff7d1 into master Nov 13, 2017
@Azurency Azurency deleted the drag-tile-purchase-fix branch November 13, 2017 20:09
@cpinter
Copy link
Contributor

cpinter commented Nov 13, 2017

Awesome, thanks a lot! I tried this exact implementation except for that change in the xml. I'm glad you know the ins and outs enough to figure these things out :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants