Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-libs
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
劳工
zeroing-libs
Commits
ec98a15d
Commit
ec98a15d
authored
Oct 27, 2020
by
lujinlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-a
parent
d811d190
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
7 deletions
+5
-7
jiugong-turntable-change.json
dist/customs/jiugong-turntable-change.json
+1
-1
main.js
src/custom/jiugong-turntable-change/debug/main.js
+1
-4
main.js.map
src/custom/jiugong-turntable-change/debug/main.js.map
+1
-1
Turntable.ts
src/custom/jiugong-turntable-change/src/game/Turntable.ts
+1
-0
utils.ts
src/custom/jiugong-turntable-change/src/game/utils.ts
+1
-1
No files found.
dist/customs/jiugong-turntable-change.json
View file @
ec98a15d
This diff is collapsed.
Click to expand it.
src/custom/jiugong-turntable-change/debug/main.js
View file @
ec98a15d
...
...
@@ -4,11 +4,8 @@
(
global
=
global
||
self
,
global
[
'jiugong-turntable-change'
]
=
factory
(
global
.
tslib
));
}(
this
,
(
function
(
tslib
)
{
'use strict'
;
function
getTexture
(
uuid
)
{
return
engine
.
Texture
.
from
(
getAssetByUUID
(
uuid
).
uuid
);
}
function
getTextureByName
(
name
)
{
return
getTexture
(
engine
.
getAssetByName
(
name
).
uuid
);
return
engine
.
Texture
.
from
(
getAssetByName
(
name
).
uuid
);
}
var
props
=
{};
...
...
src/custom/jiugong-turntable-change/debug/main.js.map
View file @
ec98a15d
This diff is collapsed.
Click to expand it.
src/custom/jiugong-turntable-change/src/game/Turntable.ts
View file @
ec98a15d
...
...
@@ -114,6 +114,7 @@ export class Turntable extends engine.Container{
getImage
(
resName
,
alpha
){
let
tmpImage
=
new
engine
.
Sprite
(
getTextureByName
(
resName
));
tmpImage
.
x
=
0
tmpImage
.
y
=
0
tmpImage
.
alpha
=
alpha
;
...
...
src/custom/jiugong-turntable-change/src/game/utils.ts
View file @
ec98a15d
...
...
@@ -8,7 +8,7 @@ export function getTexture(uuid) {
}
export
function
getTextureByName
(
name
)
{
return
getTexture
(
engine
.
getAssetByName
(
name
).
uuid
);
return
engine
.
Texture
.
from
(
getAssetByName
(
name
).
uuid
);
}
export
function
playSound
(
name
)
{
...
...
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