itteerde / fvttconfig

Configuration for our Foundry VTT environments
2 stars 1 forks source link

Add chat bubble and pan settings to user individually #164

Closed itteerde closed 8 months ago

itteerde commented 1 year ago
ui.notifications.info(`Saving volumes: globalPlaylistVolume=${game.settings.get('core', 'globalPlaylistVolume')}, globalAmbientVolume=${game.settings.get('core', 'globalAmbientVolume')}, globalInterfaceVolume=${game.settings.get('core', 'globalInterfaceVolume')}`, { permanent: true });
ui.notifications.info("Volume values are on a logarithmic scale within a range of 0-1. Don't be alarmed by low values.", { permanent: true });

ui.notifications.info(`Saving current chat bubble setting (display=${game.settings.get("core", "chatBubbles")}, pan=${game.settings.get("core", "chatBubblesPan")}) to server.`, { permanent: true })

game.user.update({
    'flags.world': {
        globalPlaylistVolume: game.settings.get('core', 'globalPlaylistVolume'),
        globalAmbientVolume: game.settings.get('core', 'globalAmbientVolume'),
        globalInterfaceVolume: game.settings.get('core', 'globalInterfaceVolume'),
        chatBubbles: game.settings.get("core", "chatBubbles"),
        chatBubblesPan: game.settings.get("core", "chatBubblesPan")
    }
})

and change Macro icon and name.

itteerde commented 1 year ago

image

itteerde commented 1 year ago

With the macro actually having the support, would be nice to add it to the modules, too... Idiot!

itteerde commented 8 months ago

done (and bug fixed now, too)