feat: restaure l'éditeur map et ajoute les personnages
🔍 Lint / 🪄 Check lint (pull_request) Has been cancelled
🔍 Lint / 🎨 Check format (pull_request) Has been cancelled
🔍 Lint / 🔎 Typecheck (pull_request) Has been cancelled
📊 Quality / 🔒 Security Audit (pull_request) Has been cancelled
📊 Quality / 📋 Dependency Freshness (pull_request) Has been cancelled
📊 Quality / 📦 Bundle Size (pull_request) Has been cancelled
🔍 Lint / 🏗 Build (pull_request) Has been cancelled

This commit is contained in:
tom-boullay
2026-05-28 15:49:57 +02:00
parent fcdbf7270c
commit d5675fe82c
21 changed files with 454 additions and 57 deletions
+12 -1
View File
@@ -41,6 +41,7 @@ interface EditorControlsProps {
onClearSelection: () => void;
snapToTerrain: boolean;
onSnapToTerrainToggle: () => void;
onSnapAllToTerrain: () => void;
newNodeName: string;
onNewNodeNameChange: (value: string) => void;
onAddNode: () => void;
@@ -70,7 +71,7 @@ const EDITOR_SHORTCUTS = [
["Shift + Right click", "Toggle multi-selection"],
["T / R / S", "Transform mode"],
["Ctrl Z / Y", "Undo / redo"],
["Esc", "Deselect"],
["Esc / X button", "Clear selection"],
["WASD", "Move when locked"],
] as const;
@@ -117,6 +118,7 @@ export function EditorControls({
onClearSelection,
snapToTerrain,
onSnapToTerrainToggle,
onSnapAllToTerrain,
newNodeName,
onNewNodeNameChange,
onAddNode,
@@ -228,6 +230,15 @@ export function EditorControls({
/>
<span>Snap terrain on move</span>
</label>
<button
type="button"
className="editor-history-button"
onClick={onSnapAllToTerrain}
>
<ScanSearch size={15} aria-hidden="true" />
Snap all to terrain
</button>
</section>
<section