An old post I know, but here is a solution for those who come across this
(Solution Valid for MapTool 1.4.0.5): Cannot say for certain that code won't move around
For those who don't want to do all the steps:
https://drive.google.com/open?id=0B_jl1 ... 2Z0eHNtX1k
- The drive above contains the modified maptool, fully compiled for Window
Step 1.
- You'll want to download Maptools from their Github page
https://github.com/RPTools/maptool
- Clone/Download the Zip to your desktop
Step 2.
- Unzip the zip folder, and open the folder maptool. You'll see many folders inside it. Navigate to the following file
- ./maptool/maptool/src/main/java/net/rptools/maptool/client/tool/PointerTool.java
- PointerTool.java handles the click events
Step 3.
- Open the file "PointerTool.java" in any IDE you want, like Atom, Sublime, even notepad works
Step 4.
- Look for the line (Using Control-F would be easier):
- "if (e.getClickCount() == 2 && SwingUtilities.isLeftMouseButton(e)) {"
- I found this on line 431 for the version I modified
Step 5.
- You see the number "2", change that to -1 if you want to disable it completely. So that line will look like:
- if (e.getClickCount() == -1 && SwingUtilities.isLeftMouseButton(e)) {
- Basically, that number dictates how many time you need to click it before that token menu opens (Within a X amount of time)
Step 6.
- Save the changes, and now you want to build the project (Look at the README.md at the root directory for instructions)