Skip to content

Commit

Permalink
React to default
Browse files Browse the repository at this point in the history
  • Loading branch information
saif-ellafi committed Feb 18, 2022
1 parent b4db270 commit b970442
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/component/camera.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ export default class MinimalUICamera {

static updateCameraSettings() {
switch (game.settings.get('minimal-ui', 'cameraBehavior')) {
case 'default': {
rootStyle.setProperty('--novid', 'inherit');
rootStyle.setProperty('--noviddis', 'inherit');
rootStyle.setProperty('--novidleftflex', 'inherit');
rootStyle.setProperty('--novidlefttop', 'inherit');
rootStyle.setProperty('--novidleftleft', 'inherit');
break;
}
case 'reduced': {
rootStyle.setProperty('--novid', 'inherit');
rootStyle.setProperty('--noviddis', 'none');
Expand Down

0 comments on commit b970442

Please sign in to comment.