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
41e6afe3
Commit
41e6afe3
authored
Nov 27, 2022
by
Chunchi Che
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat/card/texture' into 'main'
Feat/card/texture See merge request
mycard/Neos!22
parents
0b6eeba7
e9b058f8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
src/ui/Duel/simpleDuel/hands.ts
src/ui/Duel/simpleDuel/hands.ts
+5
-2
src/ui/Duel/simpleDuel/mod.tsx
src/ui/Duel/simpleDuel/mod.tsx
+1
-6
No files found.
src/ui/Duel/simpleDuel/hands.ts
View file @
41e6afe3
...
@@ -21,8 +21,11 @@ export default (hands: CardMeta[], scene: BABYLON.Scene) => {
...
@@ -21,8 +21,11 @@ export default (hands: CardMeta[], scene: BABYLON.Scene) => {
);
);
// 材质
// 材质
const
handMaterial
=
new
BABYLON
.
StandardMaterial
(
"
handMaterial
"
,
scene
);
const
handMaterial
=
new
BABYLON
.
StandardMaterial
(
"
handMaterial
"
,
scene
);
// 材质颜色
// 材质贴纸
handMaterial
.
diffuseColor
=
CONFIG
.
HandColor
();
handMaterial
.
diffuseTexture
=
new
BABYLON
.
Texture
(
`https://cdn02.moecube.com:444/images/ygopro-images-zh-CN/
${
item
.
id
}
.jpg`
,
scene
);
hand
.
material
=
handMaterial
;
hand
.
material
=
handMaterial
;
// 事件管理
// 事件管理
hand
.
actionManager
=
new
BABYLON
.
ActionManager
(
scene
);
hand
.
actionManager
=
new
BABYLON
.
ActionManager
(
scene
);
...
...
src/ui/Duel/simpleDuel/mod.tsx
View file @
41e6afe3
...
@@ -68,12 +68,7 @@ export default class SimpleDuelPlateImpl implements IDuelPlate {
...
@@ -68,12 +68,7 @@ export default class SimpleDuelPlateImpl implements IDuelPlate {
// 创建手牌
// 创建手牌
renderHands
(
hands
,
scene
);
renderHands
(
hands
,
scene
);
// 创建地板
// 暂时不创建地板
const
ground
=
BABYLON
.
MeshBuilder
.
CreateGround
(
"
ground
"
,
CONFIG
.
GroundShape
(),
scene
);
// 渲染循环
// 渲染循环
engine
.
runRenderLoop
(()
=>
{
engine
.
runRenderLoop
(()
=>
{
...
...
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