๐ Dice Tray not showing individual dice results when rolling multiple dice
Opened this issue ยท 2 comments
Check for existing bug reports before submitting.
- I searched for existing Bug Reports and found no similar reports.
Expected Behavior
I expect to see the dice roll formula or the individual dice results in a Dice Tray roll when rolling multiple dice.
This worked back in late 2023, but then I upgraded my Dice Roller plugin, and the display stopped working.
Current behaviour
Only shows the total. The individual dice are shown briefly in the corner, or when hovering with the mouse. This is not possible on mobile.
The individual dice results should've shown under the total for 3d%
Reproduction
- Launch Obsidian.
- Open Settings.
- Open settings for Dice Roller.
- Click on Dice Display.
- Enable
Display Formula With Results
. - Roll multiple dice in one shot.
Which Operating Systems are you using?
- Android
- iPhone/iPad
- Linux
- macOS
- Windows
Obsidian Version Check
1.7.5 (Linux Flatpak)
Plugin Version
11.3.4
Confirmation
- I have disabled all other plugins and the issue still persists.
Possible solution
No response
It is far from ideal but in the meantime I noticed that you can use the "copy" icon to see the individual dice results in your clipboard (or you can paste them temporarily in your notes).
Having the ability to turn the visualization of the individual dice results in the tray would indeed be very useful.
Edit : I noticed that on mobile, the tray correctly shows the result in brackets but is shows the formula twice
I cannot seem to build the plugin locally, so this is mostly speculative.
Looking at the code, I noticed in /src/view/view.ts at line 344 it the only instance where Platform.isMobile is tested in order to display results.
After that at lines 347 and 354 we have either text: ${result.resultText}
or text: ${result.result}
maybe this explains the discrepancy in the two behaviours ?