Commit a935b0ed authored by chechunchi's avatar chechunchi

migrate card_back.jpg

parent daf320c8
Pipeline #19796 passed with stages
in 5 minutes and 17 seconds
...@@ -99,9 +99,7 @@ const FixedSlot = (props: { ...@@ -99,9 +99,7 @@ const FixedSlot = (props: {
diffuseTexture={ diffuseTexture={
props.state.occupant props.state.occupant
? faceDown ? faceDown
? new BABYLON.Texture( ? new BABYLON.Texture(`assets/card_back.jpg`)
`http://localhost:3030/images/card_back.jpg`
)
: new BABYLON.Texture( : new BABYLON.Texture(
`https://cdn02.moecube.com:444/images/ygopro-images-zh-CN/${props.state.occupant.id}.jpg` `https://cdn02.moecube.com:444/images/ygopro-images-zh-CN/${props.state.occupant.id}.jpg`
) )
......
...@@ -51,7 +51,7 @@ const Hands = () => { ...@@ -51,7 +51,7 @@ const Hands = () => {
sequence={idx} sequence={idx}
position={position} position={position}
rotation={handRotation} rotation={handRotation}
cover={(_) => `http://localhost:3030/images/card_back.jpg`} cover={(_) => `assets/card_back.jpg`}
/> />
); );
})} })}
......
...@@ -77,9 +77,7 @@ const SingleSlot = (props: { ...@@ -77,9 +77,7 @@ const SingleSlot = (props: {
> >
<standardMaterial <standardMaterial
name="single-slot-mat" name="single-slot-mat"
diffuseTexture={ diffuseTexture={new BABYLON.Texture(`assets/card_back.jpg`)}
new BABYLON.Texture(`http://localhost:3030/images/card_back.jpg`)
}
alpha={props.state.length == 0 ? 0 : 1} alpha={props.state.length == 0 ? 0 : 1}
/> />
</box> </box>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment