-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add export/save for spawn file. Sections for spawn editor.
Signed-off-by: Neloreck <Neloreck@gmail.com>
- Loading branch information
Showing
17 changed files
with
214 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ | |
"dialog": { | ||
"ask": true, | ||
"confirm": true, | ||
"save": true, | ||
"open": true | ||
} | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 19 additions & 2 deletions
21
bin/xrf-ui/src/applications/spawn_editor/components/editor/SpawnEditor.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,36 @@ | ||
import { Grid } from "@mui/material"; | ||
import { ReactElement } from "react"; | ||
import { Route, Routes } from "react-router-dom"; | ||
|
||
import { SpawnEditorAlife } from "@/applications/spawn_editor/components/editor/SpawnEditorAlife"; | ||
import { SpawnEditorArtefacts } from "@/applications/spawn_editor/components/editor/SpawnEditorArtefacts"; | ||
import { SpawnEditorGeneral } from "@/applications/spawn_editor/components/editor/SpawnEditorGeneral"; | ||
import { SpawnEditorGraphs } from "@/applications/spawn_editor/components/editor/SpawnEditorGraphs"; | ||
import { SpawnEditorHeader } from "@/applications/spawn_editor/components/editor/SpawnEditorHeader"; | ||
import { SpawnEditorMenu } from "@/applications/spawn_editor/components/editor/SpawnEditorMenu"; | ||
import { SpawnEditorPatrols } from "@/applications/spawn_editor/components/editor/SpawnEditorPatrols"; | ||
|
||
export function SpawnEditor(): ReactElement { | ||
return ( | ||
<Grid | ||
justifyContent={"center"} | ||
alignItems={"center"} | ||
direction={"column"} | ||
direction={"row"} | ||
container={true} | ||
width={"100%"} | ||
height={"100%"} | ||
> | ||
<SpawnEditorMenu></SpawnEditorMenu> | ||
<SpawnEditorMenu /> | ||
|
||
<Routes> | ||
<Route path={"/"} element={<SpawnEditorGeneral />} /> | ||
<Route path={"/general"} element={<SpawnEditorGeneral />} /> | ||
<Route path={"/header"} element={<SpawnEditorHeader />} /> | ||
<Route path={"/alife"} element={<SpawnEditorAlife />} /> | ||
<Route path={"/artefacts"} element={<SpawnEditorArtefacts />} /> | ||
<Route path={"/patrols"} element={<SpawnEditorPatrols />} /> | ||
<Route path={"/graph"} element={<SpawnEditorGraphs />} /> | ||
</Routes> | ||
</Grid> | ||
); | ||
} |
10 changes: 10 additions & 0 deletions
10
bin/xrf-ui/src/applications/spawn_editor/components/editor/SpawnEditorAlife.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { Grid } from "@mui/material"; | ||
import { ReactElement } from "react"; | ||
|
||
export function SpawnEditorAlife(): ReactElement { | ||
return ( | ||
<Grid justifyContent={"center"} alignItems={"center"} width={"auto"} height={"100%"} flexGrow={1} container> | ||
Alife section | ||
</Grid> | ||
); | ||
} |
10 changes: 10 additions & 0 deletions
10
bin/xrf-ui/src/applications/spawn_editor/components/editor/SpawnEditorArtefacts.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { Grid } from "@mui/material"; | ||
import { ReactElement } from "react"; | ||
|
||
export function SpawnEditorArtefacts(): ReactElement { | ||
return ( | ||
<Grid justifyContent={"center"} alignItems={"center"} width={"auto"} height={"100%"} flexGrow={1} container> | ||
Artefacts section | ||
</Grid> | ||
); | ||
} |
10 changes: 10 additions & 0 deletions
10
bin/xrf-ui/src/applications/spawn_editor/components/editor/SpawnEditorGeneral.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { Grid } from "@mui/material"; | ||
import { ReactElement } from "react"; | ||
|
||
export function SpawnEditorGeneral(): ReactElement { | ||
return ( | ||
<Grid justifyContent={"center"} alignItems={"center"} width={"auto"} height={"100%"} flexGrow={1} container> | ||
General section | ||
</Grid> | ||
); | ||
} |
10 changes: 10 additions & 0 deletions
10
bin/xrf-ui/src/applications/spawn_editor/components/editor/SpawnEditorGraphs.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { Grid } from "@mui/material"; | ||
import { ReactElement } from "react"; | ||
|
||
export function SpawnEditorGraphs(): ReactElement { | ||
return ( | ||
<Grid justifyContent={"center"} alignItems={"center"} width={"auto"} height={"100%"} flexGrow={1} container> | ||
Graphs section | ||
</Grid> | ||
); | ||
} |
10 changes: 10 additions & 0 deletions
10
bin/xrf-ui/src/applications/spawn_editor/components/editor/SpawnEditorHeader.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { Grid } from "@mui/material"; | ||
import { ReactElement } from "react"; | ||
|
||
export function SpawnEditorHeader(): ReactElement { | ||
return ( | ||
<Grid justifyContent={"center"} alignItems={"center"} width={"auto"} height={"100%"} flexGrow={1} container> | ||
Header section | ||
</Grid> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
bin/xrf-ui/src/applications/spawn_editor/components/editor/SpawnEditorPatrols.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { Grid } from "@mui/material"; | ||
import { ReactElement } from "react"; | ||
|
||
export function SpawnEditorPatrols(): ReactElement { | ||
return ( | ||
<Grid justifyContent={"center"} alignItems={"center"} width={"auto"} height={"100%"} flexGrow={1} container> | ||
Patrols section | ||
</Grid> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
export enum ECommand { | ||
OPEN_SPAWN_FILE = "open_spawn_file", | ||
CLOSE_SPAWN_FILE = "close_spawn_file", | ||
SAVE_SPAWN_FILE = "save_spawn_file", | ||
EXPORT_SPAWN_FILE = "export_spawn_file", | ||
GET_SPAWN_FILE = "get_spawn_file", | ||
} |
Oops, something went wrong.