Read the rest of this update entry...v2.1.0 changes;v2.2.0 changes;
- Fix potentially expensive thread dice count rebuild would be triggered after each dice roll
- Rework dice rolling to be more transactional, and reduce unneeded queries during dice rolls
- Requires php 7.0+
- Now depends on Standard Library by Xon
- Supports XF2.2
- Fix "throw dice" button not rendering as expected for XF2.1
Does this update enables to throw dice as part of original posting or do you still need to edit?Xon updated Dice Roller with a new update entry:
2.2.0 - XF2 compatibility update
Read the rest of this update entry...
- Harden template modifications to better handle install/upgrades
do you have plans to do this? i would love to have this one but having the users go back to edit the post may not be welcome.That isn't supported. I've been considering improvements but haven't had a chance.
Sure, it is just the graphic for "dice" since it is an arbitrary number of faces with the roller.I have a question. Is there a way to skin the dice to use a d100 instead of the d6? We don't use d6 on my forum. I'll understand if that's not possible, but it might be a little confusing for my players.
diceRoller_dice
which is just an inline svg with a few minor XF template replaceables. Re-skinning that is just a matter of swapping in a better dice graphic and adjusting labelingIt is just a template, it is easy to fix. Since you should be editing the non-master copy you can just click "revert" at any time to restore the old copy.Okay, I concede defeat. I just don't know enough about this stuff! Do I necessarily have to use an SVG? I don't understand them at all, and I'm worried about breaking something I can't fix. I've tried to convert the image I have, and can't get it to the full colors I want. If I can't do this, I worry about the code as well. Any help would be profoundly appreciated!
SVG should lose detail, it is a vector graphic.I'm still trying to reskin my dice. I am so nervous of breaking something. Is it possible to use a PNG instead of SVG? The SGV loses a lot of details that I want to keep. I need a lot of handholding because (as everyone knows) I am really new at coding stuff. Sorry to be such a newb!
diceRoller_post_data
template and editing this bit; <xf:foreach loop="$diceRoll.roll" value="$dice">
<xf:include template="diceRoller_dice" />
</xf:foreach>
<svg class="diceRoller_dice_svg dice-{$dice}" xmlns="http://www.w3.org/2000/svg" width="61px" height="67px">
We use essential cookies to make this site work, and optional cookies to enhance your experience.