javalent / dice-roller

Inline dice rolling for Obsidian.md
268 stars 28 forks source link

feat: add initial display options #234

Closed matthewturk closed 1 year ago

matthewturk commented 1 year ago

Summary

Add an option to control whether dice rolls are initially conducted or not. Default behavior will not change, but an option is now available to allow specifying that the dice should be displayed as empty. This allows a default of |none to be propagated, so that when opening in read-mode a file the dice can start out empty until clicked.

Anything Else?

I've added ExpectedValue.None and ExpectedValue.Roll but I didn't add ExpectedValue.Average as it did not seem to be appropriate for this particular functionality.