Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
playground
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
wildfirecode13
playground
Commits
0f46fce0
Commit
0f46fce0
authored
Jan 19, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11
parent
f687bacd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
App.js
test/src/App.js
+13
-13
main.js
test/src/game/main.js
+1
-1
No files found.
test/src/App.js
View file @
0f46fce0
...
@@ -43,19 +43,19 @@ function App() {
...
@@ -43,19 +43,19 @@ function App() {
console
.
log
(
`assets load complete`
)
console
.
log
(
`assets load complete`
)
}
}
function
onClickButton
(
type
)
{
//
function onClickButton(type) {
switch
(
type
)
{
//
switch (type) {
case
'setup'
:
//
case 'setup':
setWidgetVisible
(
true
);
//
setWidgetVisible(true);
break
;
//
break;
case
'unSetup'
:
//
case 'unSetup':
setWidgetVisible
(
false
);
//
setWidgetVisible(false);
break
;
//
break;
default
:
//
default:
widgetRef
.
current
.
emitEvent
(
type
)
//
widgetRef.current.emitEvent(type)
break
;
//
break;
}
//
}
}
//
}
return
(
return
(
<
div
className
=
"App"
>
<
div
className
=
"App"
>
...
...
test/src/game/main.js
View file @
0f46fce0
import
{
Event
,
MouseEvent
,
Sprite
,
TextField
,
TextureCache
,
Tween
,
WidgetBase
}
from
'spark-wrapper-fyge'
;
import
{
TextField
,
WidgetBase
}
from
'spark-wrapper-fyge'
;
import
metaConfig
from
'../meta.json'
;
import
metaConfig
from
'../meta.json'
;
import
Root
from
'./Root'
;
import
Root
from
'./Root'
;
...
...
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