Describe the Bug
If you have overlapping tokens on different layers with notes, then on click in an area with overlapping tokens the notes of the token on the lowermost layer will be shown. The notes of the token on the uppermost layer should be shown.
To Reproduce
Add a token on the background layer with a DM note. Add overlapping tokens with notes on the object and hidden layers as well. Wherever you click, the note from the token on the lowest layer is shown. The note of the token from the highest layer should be shown. This worked in 1.16.x.
Expected Behaviour
The note of the token from the highest layer should be shown.
Screenshots
Red: token on background layer
Yellow: Token on object layer
Green: Token on hidden layer
Click on 1 shows nothing => ok.
Click on 2 shows hidden layer token notes => ok.
Click on 3 shows object layer token notes, expected: hidden layer token notes => BUG.
Click on 4 shows object layer token notes => ok.
Click on 5 shows background layer token notes => ok.
Click on 6 shows background layer token notes, expected: hidden layer token notes => BUG.
Click on 7 shows background layer token notes, expected: hidden layer token notes => BUG.
Click on 8 shows background layer token notes, expected: object layer token notes => BUG.
MapTool Info
1.18.6, Jar-Install
Desktop
Linux (Gentoo)
Additional Context
==== MapTool Information ====
MapTool Version: 1.18.6
MapTool Home...: /home/stephan/.maptool-rptools
MapTool Install: /home/stephan/Anwendungen/MapTool-1.18.6/lib/app
Max mem avail..: 23 GB
Max mem used...: 784 MB
Custom Property: -DMAPTOOL_LOGDIR=/home/stephan/.maptool-rptools/logs
Custom Property: -DMAPTOOL_DATADIR=.maptool-rptools
==== Java Information ====
Java Home......: /home/stephan/Anwendungen/MapTool-1.18.6/lib/runtime
Java Vendor....: Eclipse Adoptium
Java Version...: 21.0.1
Java Parameters:
-Djpackage.app-version=1.0
-Xss8M
-Dsun.java2d.d3d=true
-Dsentry.environment=Production
-Dfile.encoding=UTF-8
-Dpolyglot.engine.WarnInterpreterOnly=false
-Djava.util.Arrays.useLegacyMergeSort=true
-XX:+ShowCodeDetailsInExceptionMessages
--add-opens=java.desktop/java.awt=ALL-UNNAMED
--add-opens=java.desktop/java.awt.geom=ALL-UNNAMED
--add-opens=java.desktop/sun.awt.geom=ALL-UNNAMED
--add-opens=java.base/java.util=ALL-UNNAMED
--add-opens=javafx.web/javafx.scene.web=ALL-UNNAMED
--add-opens=javafx.web/com.sun.webkit=ALL-UNNAMED
--add-opens=javafx.web/com.sun.webkit.dom=ALL-UNNAMED
--add-opens=java.base/java.lang=ALL-UNNAMED
--add-opens=java.desktop/sun.awt=ALL-UNNAMED
--add-opens=java.desktop/sun.java2d=ALL-UNNAMED
--add-opens=java.desktop/javax.swing=ALL-UNNAMED
--add-opens=java.desktop/sun.awt.shell=ALL-UNNAMED
--add-opens=java.desktop/com.sun.java.swing.plaf.windows=ALL-UNNAMED
-Duser.country=DE
-Duser.language=de
-Djava.io.tmpdir=/home/stephan/tmp
-Djpackage.app-path=/home/stephan/Anwendungen/MapTool-1.18.6/bin/MapTool
==== OS Information ====
OS Name........: Linux
OS Version.....: 6.18.29-gentoo
OS Architecture: amd64
PATH...........: /usr/local/sbin:/usr/local/bin:/usr/bin:/opt/bin:/usr/lib/llvm/21/bin:/usr/lib/llvm/19/bin:/opt/cuda/bin:/home/stephan/.local/share/JetBrains/Toolbox/scripts
Number of Procs: 28
==== User Information ====
User Name: stephan
User Home: /home/stephan
User Dir.: /home/stephan/Anwendungen/MapTool-1.18.6
==== Network Interfaces ====
Display Name..: eno1
Interface Name: eno1
Address...: 192.168.14.6
Display Name..: lo
Interface Name: lo
Address...: 127.0.0.1
Host Address...: 127.0.0.1
Default Gateway: 192.168.14.1
==== Locale Information ====
Country.: Germany
Language: German
Locale..: German (Germany)
Variant.:
==== Encoding Information ====
Default Locale: de_DE
Default Charset: UTF-8
file.encoding: UTF-8
sun.jnu.encoding: UTF-8
Default Encoding: UTF8
==== Display Information ====
Number of Displays: 3
Display 1: 5760x1080(-1)
Display 2: 1920x1080(-1)
Display 3: 1920x1080(-1)
==== Internet Gateway Devices ====
No IGDs Found!
Describe the Bug
If you have overlapping tokens on different layers with notes, then on click in an area with overlapping tokens the notes of the token on the lowermost layer will be shown. The notes of the token on the uppermost layer should be shown.
To Reproduce
Add a token on the background layer with a DM note. Add overlapping tokens with notes on the object and hidden layers as well. Wherever you click, the note from the token on the lowest layer is shown. The note of the token from the highest layer should be shown. This worked in 1.16.x.
Expected Behaviour
The note of the token from the highest layer should be shown.
Screenshots
Red: token on background layer
Yellow: Token on object layer
Green: Token on hidden layer
Click on 1 shows nothing => ok.
Click on 2 shows hidden layer token notes => ok.
Click on 3 shows object layer token notes, expected: hidden layer token notes => BUG.
Click on 4 shows object layer token notes => ok.
Click on 5 shows background layer token notes => ok.
Click on 6 shows background layer token notes, expected: hidden layer token notes => BUG.
Click on 7 shows background layer token notes, expected: hidden layer token notes => BUG.
Click on 8 shows background layer token notes, expected: object layer token notes => BUG.
MapTool Info
1.18.6, Jar-Install
Desktop
Linux (Gentoo)
Additional Context
==== MapTool Information ====
MapTool Version: 1.18.6
MapTool Home...: /home/stephan/.maptool-rptools
MapTool Install: /home/stephan/Anwendungen/MapTool-1.18.6/lib/app
Max mem avail..: 23 GB
Max mem used...: 784 MB
Custom Property: -DMAPTOOL_LOGDIR=/home/stephan/.maptool-rptools/logs
Custom Property: -DMAPTOOL_DATADIR=.maptool-rptools
==== Java Information ====
Java Home......: /home/stephan/Anwendungen/MapTool-1.18.6/lib/runtime
Java Vendor....: Eclipse Adoptium
Java Version...: 21.0.1
Java Parameters:
-Djpackage.app-version=1.0
-Xss8M
-Dsun.java2d.d3d=true
-Dsentry.environment=Production
-Dfile.encoding=UTF-8
-Dpolyglot.engine.WarnInterpreterOnly=false
-Djava.util.Arrays.useLegacyMergeSort=true
-XX:+ShowCodeDetailsInExceptionMessages
--add-opens=java.desktop/java.awt=ALL-UNNAMED
--add-opens=java.desktop/java.awt.geom=ALL-UNNAMED
--add-opens=java.desktop/sun.awt.geom=ALL-UNNAMED
--add-opens=java.base/java.util=ALL-UNNAMED
--add-opens=javafx.web/javafx.scene.web=ALL-UNNAMED
--add-opens=javafx.web/com.sun.webkit=ALL-UNNAMED
--add-opens=javafx.web/com.sun.webkit.dom=ALL-UNNAMED
--add-opens=java.base/java.lang=ALL-UNNAMED
--add-opens=java.desktop/sun.awt=ALL-UNNAMED
--add-opens=java.desktop/sun.java2d=ALL-UNNAMED
--add-opens=java.desktop/javax.swing=ALL-UNNAMED
--add-opens=java.desktop/sun.awt.shell=ALL-UNNAMED
--add-opens=java.desktop/com.sun.java.swing.plaf.windows=ALL-UNNAMED
-Duser.country=DE
-Duser.language=de
-Djava.io.tmpdir=/home/stephan/tmp
-Djpackage.app-path=/home/stephan/Anwendungen/MapTool-1.18.6/bin/MapTool
==== OS Information ====
OS Name........: Linux
OS Version.....: 6.18.29-gentoo
OS Architecture: amd64
PATH...........: /usr/local/sbin:/usr/local/bin:/usr/bin:/opt/bin:/usr/lib/llvm/21/bin:/usr/lib/llvm/19/bin:/opt/cuda/bin:/home/stephan/.local/share/JetBrains/Toolbox/scripts
Number of Procs: 28
==== User Information ====
User Name: stephan
User Home: /home/stephan
User Dir.: /home/stephan/Anwendungen/MapTool-1.18.6
==== Network Interfaces ====
Display Name..: eno1
Interface Name: eno1
Address...: 192.168.14.6
Display Name..: lo
Interface Name: lo
Address...: 127.0.0.1
Host Address...: 127.0.0.1
Default Gateway: 192.168.14.1
==== Locale Information ====
Country.: Germany
Language: German
Locale..: German (Germany)
Variant.:
==== Encoding Information ====
Default Locale: de_DE
Default Charset: UTF-8
file.encoding: UTF-8
sun.jnu.encoding: UTF-8
Default Encoding: UTF8
==== Display Information ====
Number of Displays: 3
Display 1: 5760x1080(-1)
Display 2: 1920x1080(-1)
Display 3: 1920x1080(-1)
==== Internet Gateway Devices ====
No IGDs Found!