mirror of
https://github.com/duckietm/Nitro-V3.git
synced 2026-06-20 07:26:19 +00:00
feat(room-settings): add underpass walk-under-furniture checkbox
Add allowUnderpass toggle to room settings UI (Info tab), allowing room owners to enable/disable walking under elevated furniture per room. Changes: - IRoomData: add allowUnderpass boolean field - NavigatorRoomSettingsView: map allowUnderpass from server data, handle changes, and send via SaveRoomSettingsComposer - NavigatorRoomSettingsBasicTabView: add checkbox below "Disabilita blocco caselle" Requires server-side PR: duckietm/Arcturus-Morningstar-Extended#12 Note: nitro-renderer changes (RoomSettingsData, RoomSettingsDataParser, SaveRoomSettingsComposer) must be applied separately in node_modules. Co-Authored-By: medievalshell <medievalshell@users.noreply.github.com>
This commit is contained in:
@@ -162,6 +162,11 @@ export const NavigatorRoomSettingsBasicTabView: FC<NavigatorRoomSettingsTabViewP
|
||||
<input className="form-check-input" type="checkbox" checked={ roomData.allowWalkthrough } onChange={ event => handleChange('allow_walkthrough', event.target.checked) } />
|
||||
<Text>{ LocalizeText('navigator.roomsettings.allow_walk_through') }</Text>
|
||||
</Flex>
|
||||
<Flex alignItems="center" gap={ 1 }>
|
||||
<Base className="col-3" />
|
||||
<input className="form-check-input" type="checkbox" checked={ roomData.allowUnderpass } onChange={ event => handleChange('allow_underpass', event.target.checked) } />
|
||||
<Text>{ LocalizeText('navigator.roomsettings.allow_underpass') }</Text>
|
||||
</Flex>
|
||||
<Text variant="danger" underline bold pointer className="d-flex justify-content-center align-items-center gap-1" onClick={ deleteRoom }>
|
||||
<FaTimes className="fa-icon" /> { LocalizeText('navigator.roomsettings.delete') }
|
||||
</Text>
|
||||
|
||||
Reference in New Issue
Block a user