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
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
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
MyCard
Neos
Commits
3fa92746
Commit
3fa92746
authored
Mar 03, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use cardImgUrl in neos.config.json
parent
1e3c68f5
Pipeline
#20407
passed with stages
in 6 minutes and 40 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
13 deletions
+12
-13
neos.config.json
neos.config.json
+2
-1
src/ui/Duel/checkCardModal.tsx
src/ui/Duel/checkCardModal.tsx
+2
-1
src/ui/Duel/checkCardModalV2.tsx
src/ui/Duel/checkCardModalV2.tsx
+3
-2
src/ui/Duel/fixedSlot.tsx
src/ui/Duel/fixedSlot.tsx
+2
-2
src/ui/Duel/hands.tsx
src/ui/Duel/hands.tsx
+2
-6
src/ui/Duel/singleSlot.tsx
src/ui/Duel/singleSlot.tsx
+1
-1
No files found.
neos.config.json
View file @
3fa92746
{
"assetsPath"
:
"/neos-assets"
"assetsPath"
:
"/neos-assets"
,
"cardImgUrl"
:
"https://cdn02.moecube.com:444/images/ygopro-images-zh-cn"
}
src/ui/Duel/checkCardModal.tsx
View file @
3fa92746
...
...
@@ -19,6 +19,7 @@ import {
sendSelectCardResponse
,
sendSelectChainResponse
,
}
from
"
../../api/ocgcore/ocgHelper
"
;
import
NeosConfig
from
"
../../../neos.config.json
"
;
const
CheckCardModal
=
()
=>
{
const
dispatch
=
store
.
dispatch
;
...
...
@@ -117,7 +118,7 @@ const CheckCardModal = () => {
cover=
{
<
img
alt=
{
option
.
code
.
toString
()
}
src=
{
`
https://cdn02.moecube.com:444/images/ygopro-images-zh-CN
/${option.code}.jpg`
}
src=
{
`
${NeosConfig.cardImgUrl}
/${option.code}.jpg`
}
style=
{
{
width
:
100
}
}
/>
}
...
...
src/ui/Duel/checkCardModalV2.tsx
View file @
3fa92746
...
...
@@ -18,6 +18,7 @@ import {
setCheckCardModalV2IsOpen
,
setCheckCardModalV2ResponseAble
,
}
from
"
../../reducers/duel/mod
"
;
import
NeosConfig
from
"
../../../neos.config.json
"
;
const
CheckCardModalV2
=
()
=>
{
const
dispatch
=
store
.
dispatch
;
...
...
@@ -83,7 +84,7 @@ const CheckCardModalV2 = () => {
cover=
{
<
img
alt=
{
option
.
code
.
toString
()
}
src=
{
`
https://cdn02.moecube.com:444/images/ygopro-images-zh-CN
/${option.code}.jpg`
}
src=
{
`
${NeosConfig.cardImgUrl}
/${option.code}.jpg`
}
style=
{
{
width
:
100
}
}
/>
}
...
...
@@ -105,7 +106,7 @@ const CheckCardModalV2 = () => {
cover=
{
<
img
alt=
{
option
.
code
.
toString
()
}
src=
{
`
https://cdn02.moecube.com:444/images/ygopro-images-zh-CN
/${option.code}.jpg`
}
src=
{
`
${NeosConfig.cardImgUrl}
/${option.code}.jpg`
}
/>
}
/>
...
...
src/ui/Duel/fixedSlot.tsx
View file @
3fa92746
...
...
@@ -58,7 +58,7 @@ const FixedSlot = (props: {
);
dispatch
(
setCardModalImgUrl
(
`
https://cdn02.moecube.com:444/images/ygopro-images-zh-CN
/
${
props
.
state
.
occupant
.
id
}
.jpg`
`
${
NeosConfig
.
cardImgUrl
}
/
${
props
.
state
.
occupant
.
id
}
.jpg`
)
);
dispatch
(
...
...
@@ -102,7 +102,7 @@ const FixedSlot = (props: {
?
faceDown
?
new
BABYLON
.
Texture
(
`${NeosConfig.assetsPath}/card_back.jpg`
)
:
new
BABYLON
.
Texture
(
`
https://cdn02.moecube.com:444/images/ygopro-images-zh-CN
/${props.state.occupant.id}.jpg`
`
${NeosConfig.cardImgUrl}
/${props.state.occupant.id}.jpg`
)
:
new
BABYLON
.
Texture
(
`${NeosConfig.assetsPath}/card_slot.png`
)
}
...
...
src/ui/Duel/hands.tsx
View file @
3fa92746
...
...
@@ -38,9 +38,7 @@ const Hands = () => {
sequence=
{
idx
}
position=
{
position
}
rotation=
{
handRotation
}
cover=
{
(
id
)
=>
`https://cdn02.moecube.com:444/images/ygopro-images-zh-CN/${id}.jpg`
}
cover=
{
(
id
)
=>
`${NeosConfig.cardImgUrl}/${id}.jpg`
}
/>
);
})
}
...
...
@@ -113,9 +111,7 @@ const CHand = (props: {
setCardModalText
([
state
.
occupant
?.
text
.
name
,
state
.
occupant
?.
text
.
desc
])
);
dispatch
(
setCardModalImgUrl
(
`https://cdn02.moecube.com:444/images/ygopro-images-zh-CN/
${
state
.
occupant
?.
id
}.
jpg
`
)
setCardModalImgUrl
(
`
${
NeosConfig
.
cardImgUrl
}
/
${
state
.
occupant
?.
id
}.
jpg
`)
);
dispatch(
setCardModalInteractivies(
...
...
src/ui/Duel/singleSlot.tsx
View file @
3fa92746
...
...
@@ -41,7 +41,7 @@ const SingleSlot = (props: {
return
{
name
:
item
.
occupant
?.
text
.
name
,
desc
:
item
.
occupant
?.
text
.
desc
,
imgUrl
:
`
https://cdn02.moecube.com:444/images/ygopro-images-zh-CN
/
${
item
.
occupant
?.
id
}.
jpg
`,
imgUrl
:
`
${
NeosConfig
.
cardImgUrl
}
/
${
item
.
occupant
?.
id
}.
jpg
`,
interactivies: item.idleInteractivities.map((interactivy) => {
return {
desc: interactTypeToString(interactivy.interactType),
...
...
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