feat(control): 3D-кубики в отдельном окне

Бросок синхронизирован на пульте и презентации; d100 как десятки; оверлей скрывается только кнопкой «Убрать».

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Ivan Fontosh
2026-09-04 13:01:34 +08:00
parent 86d6d157f0
commit 9ac01d217f
137 changed files with 958 additions and 1 deletions
+16
View File
@@ -1875,6 +1875,22 @@ export function ControlApp() {
⚔
</span>
</Button>
<Button
variant="ghost"
iconOnly
title={t('control.diceTool')}
ariaLabel={t('control.diceTool')}
data-testid="control-dice-tool"
onClick={() => {
void api.invoke(ipcChannels.windows.openDice, {}).catch((err) => {
console.error('[control] openDice failed', err);
});
}}
>
<span className={styles.iconGlyph} aria-hidden>
🎲
</span>
</Button>
<Button
variant="ghost"
iconOnly