Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zjzy_client_game
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
王勇霞
zjzy_client_game
Commits
7bdb453a
Commit
7bdb453a
authored
Nov 24, 2022
by
王勇霞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
移除改成重绘
parent
b83274f9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
5 deletions
+16
-5
ResJson.ts
src/ResJson.ts
+1
-1
Game.ts
src/template/Game.ts
+15
-4
No files found.
src/ResJson.ts
View file @
7bdb453a
...
@@ -826,5 +826,5 @@ export const ResJson = {
...
@@ -826,5 +826,5 @@ export const ResJson = {
}
}
}
}
],
],
"path"
:
"https://yun.duiba.com.cn/db_games/activity/template/1669
194028
/resource/"
"path"
:
"https://yun.duiba.com.cn/db_games/activity/template/1669
274894
/resource/"
}
}
\ No newline at end of file
src/template/Game.ts
View file @
7bdb453a
...
@@ -322,9 +322,19 @@ export class Game extends Scene {
...
@@ -322,9 +322,19 @@ export class Game extends Scene {
});
});
}
}
editConfigImg
(
e
)
{
editConfigImg
(
e
)
{
Tools
.
gameData
.
uiConfig
=
e
.
data
.
config
;
this
.
uiConfig
=
e
.
data
.
config
;
this
.
removeAllChildren
();
this
.
upDateUI
();
this
.
initUi
();
}
upDateUI
()
{
this
.
mainBg
.
texture
=
FYGE
.
Texture
.
fromUrl
(
this
.
uiConfig
.
mainBg
);
this
.
backBtn
.
texture
=
FYGE
.
Texture
.
fromUrl
(
this
.
uiConfig
.
serviceBtn
);
this
.
ruleBtn
.
texture
=
FYGE
.
Texture
.
fromUrl
(
this
.
uiConfig
.
ruleBtn
);
this
.
startBtn
.
texture
=
FYGE
.
Texture
.
fromUrl
(
this
.
uiConfig
.
mainBtn
);
this
.
textureList
.
map
((
item
,
i
)
=>
{
item
.
img
.
texture
=
FYGE
.
Texture
.
fromUrl
(
this
.
uiConfig
[
"cardBg"
+
(
i
+
1
)]
)
});
}
}
initEvents
()
{
initEvents
()
{
super
.
initEvents
();
super
.
initEvents
();
...
@@ -356,10 +366,11 @@ class Chip extends FYGE.Sprite {
...
@@ -356,10 +366,11 @@ class Chip extends FYGE.Sprite {
public
ct
:
FYGE
.
Container
;
public
ct
:
FYGE
.
Container
;
private
chip
:
FYGE
.
Sprite
;
private
chip
:
FYGE
.
Sprite
;
public
correctNum
:
number
;
public
correctNum
:
number
;
img
;
init
(
res
,
correctNum
)
{
init
(
res
,
correctNum
)
{
this
.
correctNum
=
correctNum
;
this
.
correctNum
=
correctNum
;
this
.
ct
=
UI
.
Ctn
(
this
,
0
,
0
);
this
.
ct
=
UI
.
Ctn
(
this
,
0
,
0
);
UI
.
Sp
(
this
.
ct
,
res
,
0
,
0
);
this
.
img
=
UI
.
Sp
(
this
.
ct
,
res
,
0
,
0
);
}
}
}
}
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