Skip to content

Commit

Permalink
Re-render on hidden settings change
Browse files Browse the repository at this point in the history
  • Loading branch information
saif-ellafi committed Feb 18, 2022
1 parent b970442 commit 0d7ae02
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"MinimalUI.ColorPicker": "Color Picker",

"MinimalUI.NoCameraBehaviorName": "No Camera Behavior",
"MinimalUI.NoCameraBehaviorHint": "What to do with players with cameras turned off?",
"MinimalUI.NoCameraBehaviorHint": "What to do with players with cameras turned off?. <b>Careful:</b> Hidden mode is meant for disabled cameras. If you plan on toggling cameras on and off, use Reduced mode instead.",
"MinimalUI.NoCameraBehaviorReduced": "Reduced",
"MinimalUI.NoCameraBehaviorHidden": "Hidden"

Expand Down
4 changes: 4 additions & 0 deletions modules/component/camera.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ export default class MinimalUICamera {
Hooks.on('ready', function() {
MinimalUICamera.updateCameraSettings();
});
Hooks.on('rtcSettingsChanged', function(act, cl) {
if (cl.client.users[game.user.id].hidden !== undefined)
game.webrtc.render();
});
}

}

0 comments on commit 0d7ae02

Please sign in to comment.