Add comment

This commit is contained in:
Adrien Vannson 2023-03-13 19:45:37 +01:00
parent 607cda808f
commit ac263166fa
No known key found for this signature in database
GPG Key ID: FE2E66FD978C1A55

View File

@ -176,6 +176,8 @@ function newPolygon(element, positions, selectedRoom, callbackRoomSelected, call
const color = selectedRoom === element['id'] ? 'red' : 'grey'; const color = selectedRoom === element['id'] ? 'red' : 'grey';
if (element['type'] === 'C') { // Corridor if (element['type'] === 'C') { // Corridor
// TODO create two global panes: one for the coridors, and the other for the
// other rooms
return <Pane style={{ zIndex: 500 }}> return <Pane style={{ zIndex: 500 }}>
<Polygon positions={positions} key={element['id'] + color} color={'peru'} /> <Polygon positions={positions} key={element['id'] + color} color={'peru'} />
</Pane> </Pane>