Skip to content

Commit

Permalink
Merge pull request #135 from FMS-Cat/multiple-selection
Browse files Browse the repository at this point in the history
feature (gui): Multiple selection
  • Loading branch information
Yutaka "FMS_Cat" Obuchi authored Apr 20, 2021
2 parents 7f463f7 + 596e86a commit 645cf35
Show file tree
Hide file tree
Showing 43 changed files with 1,856 additions and 693 deletions.
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "pwa-chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:10001/dev.html",
"webRoot": "${workspaceFolder}"
}
]
}
11 changes: 11 additions & 0 deletions dev.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>

<meta charset="UTF-8">
<title>Automaton development index!!!!!!!!</title>

<body>
<h1>haha</h1>
<p>
<a href="./packages/automaton-with-gui/">automaton-with-gui</a>
</p>
</body>
1 change: 1 addition & 0 deletions packages/automaton-with-gui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"immer": "^7.0.8",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-error-boundary": "^3.1.1",
"react-redux": "^7.2.1",
"redux": "^4.0.5",
"resize-observer-polyfill": "^1.5.1",
Expand Down
44 changes: 26 additions & 18 deletions packages/automaton-with-gui/src/view/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { Colors } from '../constants/Colors';
import { ContextMenu } from './ContextMenu';
import { CurveEditor } from './CurveEditor';
import { CurveList } from './CurveList';
import { ErrorBoundary } from './ErrorBoundary';
import { FxSpawner } from './FxSpawner';
import { GUIRemocon } from '../../GUIRemocon';
import { GUIRemoconListener } from './GUIRemoconListener';
Expand Down Expand Up @@ -145,24 +146,31 @@ const Fuck = ( { className, automaton, guiRemocon }: AppProps ): JSX.Element =>
className={ className }
onContextMenu={ handleContextMenu }
>
<AutomatonStateListener automaton={ automaton } />
<GUIRemoconListener guiRemocon={ guiRemocon } />
<StyledHeader />
<StyledModeSelector />
<StyledChannelListAndDopeSheet />
{ mode === 'channel' && <StyledChannelEditor /> }
{ mode === 'curve' && <>
<StyledCurveList />
<StyledCurveEditor />
</> }
<StyledInspector />
{ isFxSpawnerVisible && <StyledFxSpawner /> }
{ isAboutVisible && <StyledAbout /> }
{ isContextMenuVisible && <ContextMenu /> }
{ isTextPromptVisible && <TextPrompt /> }

<Toasty />
<Stalker />
<ErrorBoundary>
<AutomatonStateListener automaton={ automaton } />
<GUIRemoconListener guiRemocon={ guiRemocon } />

<ErrorBoundary>
<StyledHeader />
<StyledModeSelector />
<StyledChannelListAndDopeSheet />
{ mode === 'channel' && <StyledChannelEditor /> }
{ mode === 'curve' && <>
<StyledCurveList />
<StyledCurveEditor />
</> }
<StyledInspector />
{ isFxSpawnerVisible && <StyledFxSpawner /> }
{ isAboutVisible && <StyledAbout /> }
{ isContextMenuVisible && <ContextMenu /> }
{ isTextPromptVisible && <TextPrompt /> }
</ErrorBoundary>

<ErrorBoundary>
<Toasty />
<Stalker />
</ErrorBoundary>
</ErrorBoundary>
</Root>
);
};
Expand Down
Loading

0 comments on commit 645cf35

Please sign in to comment.