feat(play): hide NPC tokens from the player screen
A token can be hidden per session from the control menu. The GM still sees it, and its path keeps moving. Scene editor grid labels no longer call a removed helper. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -420,8 +420,8 @@ export function SceneEditorApp() {
|
||||
|
||||
const defaultTemplateName = useMemo(() => {
|
||||
const sizeLabel = Math.round(localGrid.sizeN * 100);
|
||||
return `${sceneGridTypeLabelRu(localGrid.type)} · ${String(sizeLabel)}`;
|
||||
}, [localGrid.sizeN, localGrid.type]);
|
||||
return `${t(localGrid.type === 'hex' ? 'sceneEditor.gridHex' : 'sceneEditor.gridSquare')} · ${String(sizeLabel)}`;
|
||||
}, [localGrid.sizeN, localGrid.type, t]);
|
||||
|
||||
const saveGridTemplate = async () => {
|
||||
if (!sceneId) return;
|
||||
@@ -782,7 +782,7 @@ export function SceneEditorApp() {
|
||||
<div className={styles.templateName}>{tpl.name}</div>
|
||||
)}
|
||||
<div className={styles.templateHint}>
|
||||
{sceneGridTypeLabelRu(tpl.type)} · {Math.round(tpl.sizeN * 100)}
|
||||
{t(tpl.type === 'hex' ? 'sceneEditor.gridHex' : 'sceneEditor.gridSquare')} · {Math.round(tpl.sizeN * 100)}
|
||||
</div>
|
||||
</div>
|
||||
<div className={styles.templateActions}>
|
||||
|
||||
Reference in New Issue
Block a user