PDA

View Full Version : Dice icon size & chat log parameters to accomodate high-res dice



Valyar
June 2nd, 2020, 19:57
We work on rulesets and aim to use the original custom dice in the chat output. We have the vector files and can create whatever icon is necessary. Unfortunately in my tests it seems the size of 25px by 25px is the max dice icon size that the chatbox can render without having overlaps and other alignment problems.

I am not sure which file and script to edit (if any). Is there a way to accommodate higher res-dice in supported by CoreRPG manner?

Moon Wizard
June 2nd, 2020, 23:28
It's best to provide pictures or specific examples via extension. With those, I can look into it easily. Without those, I'm basically guessing by looking at code.

From a quick look, it appears that the code assumes that all die icons are the same size, and resizes off the first one. Are all your die icons the same size?

Regards,
JPG

Valyar
June 5th, 2020, 17:01
All dice icons are the same size and the FG does not downscale or adjust the reporting field, it assumes teh same size of 25px per side. For example I made test with different 50px icons and they are shown in very inappropriate way, i have to type two lines just to show the second row.

Not sure which part I should modify and make explicit edit in the layered ruleset. 25px is just not enough to have nice details. Going to 30px glues icons together and again breaks the layout. :(