Add show fog guides setting

This commit is contained in:
Mitchell McCaffrey
2021-03-12 13:37:51 +11:00
parent 355da5d012
commit 506ec25a72
3 changed files with 26 additions and 9 deletions
+8
View File
@@ -29,6 +29,7 @@ function SettingsModal({ isOpen, onRequestClose }) {
const [gridSnappingSensitivity, setGridSnappingSensitivity] = useSetting(
"map.gridSnappingSensitivity"
);
const [showFogGuides, setShowFogGuides] = useSetting("fog.showGuides");
const [storageEstimate, setStorageEstimate] = useState();
const [isImportExportModalOpen, setIsImportExportModalOpen] = useState(false);
@@ -103,6 +104,13 @@ function SettingsModal({ isOpen, onRequestClose }) {
}
/>
</Label>
<Label py={2}>
<span style={{ marginRight: "4px" }}>Show fog guides</span>
<Checkbox
checked={showFogGuides}
onChange={(e) => setShowFogGuides(e.target.checked)}
/>
</Label>
<Label py={2}>
Token Label Size
<Slider