4456eb0277
Re-enable users-branch UI, snap session tokens to square/hex grid from the control preview, refine inactive/open-info NPC menus, block marker actions while an effect brush is active, and dim materials/NPC overlays only when they are open. Co-authored-by: Cursor <cursoragent@cursor.com>
22 lines
449 B
TypeScript
22 lines
449 B
TypeScript
export type TokenGridSnapSessionState = {
|
|
enabled: boolean;
|
|
};
|
|
|
|
export class TokenGridSnapSessionStore {
|
|
private enabled = false;
|
|
|
|
getState(): TokenGridSnapSessionState {
|
|
return { enabled: this.enabled };
|
|
}
|
|
|
|
setEnabled(enabled: boolean): TokenGridSnapSessionState {
|
|
this.enabled = Boolean(enabled);
|
|
return this.getState();
|
|
}
|
|
|
|
reset(): TokenGridSnapSessionState {
|
|
this.enabled = false;
|
|
return this.getState();
|
|
}
|
|
}
|