foundryvtt / foundryvtt

Public issue tracking and documentation for Foundry Virtual Tabletop - software connecting RPG gamers in a shared multiplayer environment with an intuitive interface and powerful API.
https://foundryvtt.com/
240 stars 9 forks source link

Add support for RollTable entities to have a primary image icon associated with the table overall which is displayed in the Tables sidebar and in any RollTable type compendium packs which are created. #3267

Closed aaclayton closed 4 years ago

aaclayton commented 4 years ago

Originally in GitLab by @timlwhite

In order to submit an effective bug report, please include the following information along with your issue description.

Environment Details

Please share the following basic details about your setup.

Issue Description

RollTables in Compendiums always show the default token image in the Compendium browser:

image

This logic in getData for the compendium is defaulting to the default token image, rather than the grey d20 that is the default RollTable icon:

index: this.index.map(i => {
    i.img = i.img || CONST.DEFAULT_TOKEN;
    return i;
})

In addition, even if you add an 'img' node directly to the Compendium DB file for a RollTable, getIndex() is not returning that img for RollTables.

Perhaps, since there is no way in the UI to add an image for RollTables, they could get the grey d20 image added in the DB when created, and then adjust the getIndex loaded on the node side to grab that image. Then, compendium creators could override that image by editing the DB directly.

aaclayton commented 4 years ago

Feature request to add support for a thumbnail image for each rollable table. Makes sense to do.

aaclayton commented 4 years ago

Originally in GitLab by @anathemamask

This issue firmly straddles the line of bug vs feature request.