Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Neos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
love_飞影
Neos
Commits
55e3775f
Commit
55e3775f
authored
Mar 04, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update duel/main.tsx
parent
6faa4ab4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
23 deletions
+33
-23
src/ui/Duel/main.tsx
src/ui/Duel/main.tsx
+33
-23
No files found.
src/ui/Duel/main.tsx
View file @
55e3775f
...
@@ -19,6 +19,7 @@ import OptionModal from "./optionModal";
...
@@ -19,6 +19,7 @@ import OptionModal from "./optionModal";
import
Phase
from
"
./phase
"
;
import
Phase
from
"
./phase
"
;
import
CheckCardModalV2
from
"
./checkCardModalV2
"
;
import
CheckCardModalV2
from
"
./checkCardModalV2
"
;
import
ExtraDeck
from
"
./extraDeck
"
;
import
ExtraDeck
from
"
./extraDeck
"
;
import
NeosLayout
from
"
./layout
"
;
import
{
initStrings
}
from
"
../../api/strings
"
;
import
{
initStrings
}
from
"
../../api/strings
"
;
import
NeosConfig
from
"
../../../neos.config.json
"
;
import
NeosConfig
from
"
../../../neos.config.json
"
;
...
@@ -41,29 +42,12 @@ const NeosDuel = () => {
...
@@ -41,29 +42,12 @@ const NeosDuel = () => {
return
(
return
(
<>
<>
<
ReactReduxContext
.
Consumer
>
<
NeosLayout
{
({
store
})
=>
(
sider=
{
<
div
>
sider
</
div
>
}
<
Engine
antialias
adaptToDeviceRatio
canvasId=
"babylonJS"
>
header=
{
<
div
>
header
</
div
>
}
<
Scene
>
content=
{
<
NeosCanvas
/>
}
<
Provider
store=
{
store
}
>
footer=
{
<
div
>
footer
</
div
>
}
<
Camera
/>
/>
<
Light
/>
<
Hands
/>
<
Monsters
/>
<
Magics
/>
<
Field
/>
<
CommonDeck
/>
<
ExtraDeck
/>
<
Cemeteries
/>
<
Exclusion
/>
<
Field
/>
<
Phase
/>
<
Ground
/>
</
Provider
>
</
Scene
>
</
Engine
>
)
}
</
ReactReduxContext
.
Consumer
>
<
CardModal
/>
<
CardModal
/>
<
CardListModal
/>
<
CardListModal
/>
<
HintNotification
/>
<
HintNotification
/>
...
@@ -76,6 +60,32 @@ const NeosDuel = () => {
...
@@ -76,6 +60,32 @@ const NeosDuel = () => {
);
);
};
};
const
NeosCanvas
=
()
=>
(
<
ReactReduxContext
.
Consumer
>
{
({
store
})
=>
(
<
Engine
antialias
adaptToDeviceRatio
canvasId=
"babylonJS"
>
<
Scene
>
<
Provider
store=
{
store
}
>
<
Camera
/>
<
Light
/>
<
Hands
/>
<
Monsters
/>
<
Magics
/>
<
Field
/>
<
CommonDeck
/>
<
ExtraDeck
/>
<
Cemeteries
/>
<
Exclusion
/>
<
Field
/>
<
Phase
/>
<
Ground
/>
</
Provider
>
</
Scene
>
</
Engine
>
)
}
</
ReactReduxContext
.
Consumer
>
);
const
Camera
=
()
=>
(
const
Camera
=
()
=>
(
<
freeCamera
<
freeCamera
name=
"duel-camera"
name=
"duel-camera"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment