Skip to content

Commit

Permalink
Reverted back keys to modals and panels
Browse files Browse the repository at this point in the history
  • Loading branch information
HunterBarclay committed Jul 13, 2024
1 parent 30b90d1 commit 73a3356
Showing 1 changed file with 37 additions and 40 deletions.
77 changes: 37 additions & 40 deletions fission/src/Synthesis.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ import World from "@/systems/World.ts"
import { AddRobotsModal, AddFieldsModal, SpawningModal } from "@/modals/spawning/SpawningModals.tsx"
import ImportLocalMirabufModal from "@/modals/mirabuf/ImportLocalMirabufModal.tsx"
import APS from "./aps/APS.ts"
import ResetAllInputsModal from "./ui/modals/configuring/ResetAllInputsModal.tsx"
import ImportMirabufPanel from "@/ui/panels/mirabuf/ImportMirabufPanel.tsx"
import Skybox from "./ui/components/Skybox.tsx"
import PokerPanel from "@/panels/PokerPanel.tsx"
Expand Down Expand Up @@ -183,48 +182,46 @@ function Synthesis() {
}

const initialModals = [
<SettingsModal modalId="settings" />,
<SpawningModal modalId="spawning" />,
<AddRobotsModal modalId="add-robot" />,
<AddFieldsModal modalId="add-field" />,
<ViewModal modalId="view" />,
<DownloadAssetsModal modalId="download-assets" />,
<RoboRIOModal modalId="roborio" />,
<DrivetrainModal modalId="drivetrain" />,
<ThemeEditorModal modalId="theme-editor" />,
<ExitSynthesisModal modalId="exit-synthesis" />,
<MatchResultsModal modalId="match-results" />,
<UpdateAvailableModal modalId="update-available" />,
<ConnectToMultiplayerModal modalId="connect-to-multiplayer" />,
<ServerHostingModal modalId="server-hosting" />,
<ChangeInputsModal modalId="change-inputs" />,
<ResetAllInputsModal modalId="reset-inputs" />,
<ChooseMultiplayerModeModal modalId="multiplayer-mode" />,
<ChooseSingleplayerModeModal modalId="singleplayer-mode" />,
<PracticeSettingsModal modalId="practice-settings" />,
<DeleteThemeModal modalId="delete-theme" />,
<DeleteAllThemesModal modalId="delete-all-themes" />,
<NewThemeModal modalId="new-theme" />,
<RCCreateDeviceModal modalId="create-device" />,
<RCConfigPwmGroupModal modalId="config-pwm" />,
<RCConfigEncoderModal modalId="config-encoder" />,
<MatchModeModal modalId="match-mode" />,
<SpawningModal modalId="spawning" />,
<ConfigMotorModal modalId="config-motor" />,
<ManageAssembliesModal modalId="manage-assemblies" />,
<ImportLocalMirabufModal modalId="import-local-mirabuf" />,
<SettingsModal key="settings" modalId="settings" />,
<SpawningModal key="spawning" modalId="spawning" />,
<AddRobotsModal key="add-robot" modalId="add-robot" />,
<AddFieldsModal key="add-field" modalId="add-field" />,
<ViewModal key="view" modalId="view" />,
<DownloadAssetsModal key="download-assets" modalId="download-assets" />,
<RoboRIOModal key="roborio" modalId="roborio" />,
<DrivetrainModal key="drivetrain" modalId="drivetrain" />,
<ThemeEditorModal key="theme-editor" modalId="theme-editor" />,
<ExitSynthesisModal key="exit-synthesis" modalId="exit-synthesis" />,
<MatchResultsModal key="match-results" modalId="match-results" />,
<UpdateAvailableModal key="update-available" modalId="update-available" />,
<ConnectToMultiplayerModal key="connect-to-multiplayer" modalId="connect-to-multiplayer" />,
<ServerHostingModal key="server-hosting" modalId="server-hosting" />,
<ChangeInputsModal key="change-inputs" modalId="change-inputs" />,
<ChooseMultiplayerModeModal key="multiplayer-mode" modalId="multiplayer-mode" />,
<ChooseSingleplayerModeModal key="singleplayer-mode" modalId="singleplayer-mode" />,
<PracticeSettingsModal key="practice-settings" modalId="practice-settings" />,
<DeleteThemeModal key="delete-theme" modalId="delete-theme" />,
<DeleteAllThemesModal key="delete-all-themes" modalId="delete-all-themes" />,
<NewThemeModal key="new-theme" modalId="new-theme" />,
<RCCreateDeviceModal key="create-device" modalId="create-device" />,
<RCConfigPwmGroupModal key="config-pwm" modalId="config-pwm" />,
<RCConfigEncoderModal key="config-encoder" modalId="config-encoder" />,
<MatchModeModal key="match-mode" modalId="match-mode" />,
<ConfigMotorModal key="config-motor" modalId="config-motor" />,
<ManageAssembliesModal key="manage-assemblies" modalId="manage-assemblies" />,
<ImportLocalMirabufModal key="import-local-mirabuf" modalId="import-local-mirabuf" />,
]

const initialPanels: ReactElement[] = [
<RobotSwitchPanel panelId="multibot" openLocation="right" sidePadding={8} />,
<DriverStationPanel panelId="driver-station" />,
<SpawnLocationsPanel panelId="spawn-locations" />,
<ScoreboardPanel panelId="scoreboard" />,
<ConfigureGamepiecePickupPanel panelId="config-gamepiece-pickup" />,
<ConfigureShotTrajectoryPanel panelId="config-shot-trajectory" />,
<ScoringZonesPanel panelId="scoring-zones" />,
<ZoneConfigPanel panelId="zone-config" />,
<ImportMirabufPanel panelId="import-mirabuf" />,
<RobotSwitchPanel key="multibot" panelId="multibot" openLocation="right" sidePadding={8} />,
<DriverStationPanel key="driver-station" panelId="driver-station" />,
<SpawnLocationsPanel key="spawn-locations" panelId="spawn-locations" />,
<ScoreboardPanel key="scoreboard" panelId="scoreboard" />,
<ConfigureGamepiecePickupPanel key="config-gamepiece-pickup" panelId="config-gamepiece-pickup" />,
<ConfigureShotTrajectoryPanel key="config-shot-trajectory" panelId="config-shot-trajectory" />,
<ScoringZonesPanel key="scoring-zones" panelId="scoring-zones" />,
<ZoneConfigPanel key="zone-config" panelId="zone-config" />,
<ImportMirabufPanel key="import-mirabuf" panelId="import-mirabuf" />,
<PokerPanel key="poker" panelId="poker" />,
]

Expand Down

0 comments on commit 73a3356

Please sign in to comment.