Trying new button configuration

This commit is contained in:
Alexander
2023-12-10 19:23:03 +01:00
parent f2f1d8416c
commit a2398071ec
2 changed files with 5 additions and 7 deletions

View File

@@ -1,13 +1,11 @@
Hooks.on('init', function () {
Hooks.on('getSceneControlButtons', (controls: SceneControl[]) => {
controls.find(x => x.name === 'token').tools.push({
icon: 'fas fa-refresh',
name: 'rotateView',
title: 'on-site-vtt.rotate',
visible: true,
toggle: false,
active: false,
onClick: () => rotateView()
icon: 'fas fa-refresh',
onClick: () => rotateView(),
button: true
});
});
});