Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
shuijf
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
wildfirecode13
shuijf
Commits
beefb4f4
Commit
beefb4f4
authored
Jun 18, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
11ca674c
Changes
12
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
1443 additions
and
53 deletions
+1443
-53
main.scene
assets/scenes/main.scene
+106
-22
game.meta
assets/scripts/game.meta
+1
-0
CustomTextRenderer.ts
assets/scripts/game/CustomTextRenderer.ts
+10
-0
CustomTextRenderer.ts.meta
assets/scripts/game/CustomTextRenderer.ts.meta
+1
-0
SingleSceneNavigator.ts
assets/scripts/navigator/SingleSceneNavigator.ts
+2
-1
VirtualNavigator.ts
assets/scripts/navigator/VirtualNavigator.ts
+1
-1
Popup.ts
assets/scripts/popup/Popup.ts
+1
-1
SceneController.ts
assets/scripts/scenes/SceneController.ts
+24
-0
SceneController.ts.meta
assets/scripts/scenes/SceneController.ts.meta
+1
-0
SceneStart.ts
assets/scripts/scenes/SceneStart.ts
+2
-2
MustCompile.ts
src/generated/MustCompile.ts
+47
-26
yarn.lock
yarn.lock
+1247
-0
No files found.
assets/scenes/main.scene
View file @
beefb4f4
...
...
@@ -22,9 +22,32 @@
{
"script": "./scripts/MainController",
"properties": {
"Popup": "entity|dbfac9aa-8955-4725-89cf-eae9f8cf7595"
"Popup": "entity|dbfac9aa-8955-4725-89cf-eae9f8cf7595",
"Toast": "entity|1d7c03a2-f89a-47ca-9681-7dd17352a14f"
},
"disabled": false
},
{
"script": "./scripts/api/SampleApi",
"properties": {
"method": "GET",
"name": "ajaxElement",
"onError": [
{
"entity": "entity|20181212032053",
"component": 2,
"method": "onGotAjaxElementError"
}
],
"onResponse": [
{
"entity": "entity|20181212032053",
"component": 2,
"method": "onGotAjaxElement"
}
],
"uri": "/hdtool/recon/ajaxElement"
}
}
],
"children": [
...
...
@@ -34,6 +57,14 @@
{
"script": "components/base/Transform",
"properties": {}
},
{
"script": "./scripts/scenes/SceneController",
"properties": {}
},
{
"script": "./scripts/navigator/SingleSceneNavigator",
"properties": {}
}
],
"uuid": "23b027e4-3a90-4e46-a74e-dc5de005238c",
...
...
@@ -44,12 +75,16 @@
{
"script": "components/base/Transform",
"properties": {}
},
{
"script": "./scripts/scenes/SceneStart",
"properties": {}
}
],
"uuid": "41f0a20e-9d0a-445b-8ffc-d8a0b04ab02c",
"children": [
{
"name": "
Butto
n",
"name": "
ruleBt
n",
"components": [
{
"script": "components/base/Transform",
...
...
@@ -80,9 +115,9 @@
"properties": {
"onClick": [
{
"entity": "entity|
20181212032053
",
"entity": "entity|
41f0a20e-9d0a-445b-8ffc-d8a0b04ab02c
",
"component": 1,
"method": "
tapMe
"
"method": "
onClick_rulebtn
"
}
]
}
...
...
@@ -93,7 +128,8 @@
"name": "label",
"components": [
{
"script": "components/base/Transform"
"script": "components/base/Transform",
"properties": {}
},
{
"script": "components/renderer/TextRenderer",
...
...
@@ -108,23 +144,6 @@
],
"uuid": "cd518011-9d11-4376-af30-f64cef2a08cd"
},
{
"name": "Label",
"components": [
{
"script": "components/base/Transform",
"properties": {}
},
{
"script": "components/renderer/TextRenderer",
"properties": {
"fillColor": "rgba(255, 255, 255, 1)",
"text": "Tap Button"
}
}
],
"uuid": "797fad3f-17ed-4a9e-841f-a6b91aed37fa"
},
{
"name": "Image",
"components": [
...
...
@@ -166,6 +185,23 @@
{
"script": "components/base/Transform",
"properties": {}
},
{
"script": "components/renderer/RectRenderer",
"properties": {
"fillColor": "rgba(0, 0, 0, 0.7)"
},
"disabled": true
},
{
"script": "./scripts/popup/Popup",
"properties": {
"sceneContainer": "entity|23b027e4-3a90-4e46-a74e-dc5de005238c"
}
},
{
"script": "components/base/TouchInterrupt",
"properties": {}
}
],
"uuid": "dbfac9aa-8955-4725-89cf-eae9f8cf7595",
...
...
@@ -361,6 +397,54 @@
"disabled": true
}
]
},
{
"name": "Toast",
"components": [
{
"script": "components/base/Transform",
"properties": {
"height": 40
}
},
{
"script": "components/renderer/RectRenderer",
"properties": {
"fillColor": "rgba(0, 0, 0, 0.7)",
"cornerRadius": 10
}
},
{
"script": "./scripts/common/Toast",
"properties": {
"Label": "entity|44aec2c1-1670-4347-a0a3-9c3aa4ac0e2a"
}
}
],
"uuid": "1d7c03a2-f89a-47ca-9681-7dd17352a14f",
"children": [
{
"name": "Label",
"components": [
{
"script": "components/base/Transform",
"properties": {}
},
{
"script": "./scripts/game/CustomTextRenderer",
"properties": {
"fillColor": "rgba(255, 255, 255, 1)",
"text": "...",
"textStyle": {
"fontSize": 30
}
}
}
],
"uuid": "44aec2c1-1670-4347-a0a3-9c3aa4ac0e2a"
}
],
"disabled": true
}
]
}
...
...
assets/scripts/game.meta
0 → 100644
View file @
beefb4f4
{"ver":"1.0.1","uuid":"c59f7148-9a03-47ab-a146-693028d37bee","subMetas":{},"isGroup":true}
assets/scripts/game/CustomTextRenderer.ts
0 → 100644
View file @
beefb4f4
/**
* Created by rockyl on 2019-05-23.
*
* 自定义文本渲染器
*/
import
TextRenderer
from
"scilla-components/src/renderer/TextRenderer"
;
export
default
class
CustomTextRenderer
extends
TextRenderer
{
}
assets/scripts/game/CustomTextRenderer.ts.meta
0 → 100644
View file @
beefb4f4
{"ver":"1.0.1","uuid":"f852cfa3-ccbf-4989-a807-65368a72b129","subMetas":{},"type":"script"}
assets/scripts/navigator/SingleSceneNavigator.ts
View file @
beefb4f4
...
...
@@ -5,8 +5,9 @@
*/
import
ScillaComponent
from
"scilla-components/src/base/ScillaComponent"
;
import
{
ScenePlay
,
SceneStart
}
from
"../scenes"
;
import
{
VirtualNavigator
}
from
"./VirtualNavigator"
;
import
SceneStart
from
"../scenes/SceneStart"
;
import
ScenePlay
from
"../scenes/ScenePlay"
;
export
default
class
SingleSceneNavigator
extends
ScillaComponent
{
_navigator
:
VirtualNavigator
;
...
...
assets/scripts/navigator/VirtualNavigator.ts
View file @
beefb4f4
...
...
@@ -117,6 +117,6 @@ export class VirtualNavigator extends EventEmitter implements INavigatorDelegate
* @param error
*/
onError
(
error
:
Error
)
{
console
.
log
(
error
)
}
}
assets/scripts/popup/Popup.ts
View file @
beefb4f4
...
...
@@ -5,7 +5,7 @@
import
DialogContent
from
"./DialogContent"
;
import
RectRenderer
from
"scilla-components/src/renderer/RectRenderer"
;
import
TouchInterrupt
from
"
scilla-components/src/base/TouchInterrupt"
;
import
TouchInterrupt
from
"
components/base/TouchInterrupt"
;
import
Transform
from
"scilla-components/src/base/Transform"
;
import
ScillaComponent
from
"scilla-components/src/base/ScillaComponent"
;
import
{
none
}
from
"./PopupEffect"
;
...
...
assets/scripts/scenes/SceneController.ts
0 → 100644
View file @
beefb4f4
import
ScillaComponent
from
'scilla-components/src/base/ScillaComponent'
;
import
SingleSceneNavigator
from
'../navigator/SingleSceneNavigator'
;
export
default
class
SceneController
extends
ScillaComponent
{
onAwake
()
{
super
.
onAwake
();
this
.
entity
.
children
.
forEach
(
c
=>
c
.
enabled
=
false
);
}
fuck
(
p
)
{
// console.log('fuck',p)
const
nav
=
this
.
entity
.
getComponent
(
SingleSceneNavigator
);
nav
.
push
(
p
)
}
onUpdate
(
t
)
{
super
.
onUpdate
(
t
);
}
// fuckNavigator(p) {
// console.log('fuckNavigator from SceneController', p)
// }
}
assets/scripts/scenes/SceneController.ts.meta
0 → 100644
View file @
beefb4f4
{"ver":"1.0.1","uuid":"fd411e04-be60-45d3-aabb-40a76cf4ad25","subMetas":{},"type":"script"}
assets/scripts/scenes/SceneStart.ts
View file @
beefb4f4
...
...
@@ -20,7 +20,7 @@ export default class SceneStart extends ScillaComponent implements INavigatorVie
onAwake
()
{
super
.
onAwake
();
this
.
setCountText
(
''
);
//
this.setCountText('');
// SingleSceneNavigator
console
.
log
(
'fuck start scene'
)
}
...
...
@@ -30,7 +30,7 @@ export default class SceneStart extends ScillaComponent implements INavigatorVie
}
initGameStage
()
{
this
.
updateCountText
();
//
this.updateCountText();
}
updateCountText
()
{
...
...
src/generated/MustCompile.ts
View file @
beefb4f4
...
...
@@ -5,44 +5,65 @@
import
{
registerDef
}
from
'scilla'
import
component0
from
'components/renderer/Text
ure
Renderer'
;
registerDef
(
'components/renderer/Text
ure
Renderer'
,
component0
);
import
component0
from
'components/renderer/TextRenderer'
;
registerDef
(
'components/renderer/TextRenderer'
,
component0
);
import
component1
from
'components/base/Transform'
;
registerDef
(
'components/base/Transform'
,
component1
);
import
component2
from
'components/
other/RelativeLayout
'
;
registerDef
(
'components/
other/RelativeLayout
'
,
component2
);
import
component2
from
'components/
renderer/HtmlRenderer
'
;
registerDef
(
'components/
renderer/HtmlRenderer
'
,
component2
);
import
component3
from
'components/
renderer/RectRenderer
'
;
registerDef
(
'components/
renderer/RectRenderer
'
,
component3
);
import
component3
from
'components/
other/RelativeLayout
'
;
registerDef
(
'components/
other/RelativeLayout
'
,
component3
);
import
component4
from
'components/
animation/TouchZoom
'
;
registerDef
(
'components/
animation/TouchZoom
'
,
component4
);
import
component4
from
'components/
ui/ScrollView
'
;
registerDef
(
'components/
ui/ScrollView
'
,
component4
);
import
component5
from
'components/
ui/Button
'
;
registerDef
(
'components/
ui/Button
'
,
component5
);
import
component5
from
'components/
base/TouchInterrupt
'
;
registerDef
(
'components/
base/TouchInterrupt
'
,
component5
);
import
component6
from
'components/
renderer/TextRenderer
'
;
registerDef
(
'components/
renderer/TextRenderer
'
,
component6
);
import
component6
from
'components/
animation/Wave
'
;
registerDef
(
'components/
animation/Wave
'
,
component6
);
import
component7
from
'components/
other/CameraControll
er'
;
registerDef
(
'components/
other/CameraControll
er'
,
component7
);
import
component7
from
'components/
renderer/RectRender
er'
;
registerDef
(
'components/
renderer/RectRender
er'
,
component7
);
import
component8
from
'components/animation/
Wave
'
;
registerDef
(
'components/animation/
Wave
'
,
component8
);
import
component8
from
'components/animation/
TouchZoom
'
;
registerDef
(
'components/animation/
TouchZoom
'
,
component8
);
import
component9
from
'components/ui/
ScrollView
'
;
registerDef
(
'components/ui/
ScrollView
'
,
component9
);
import
component9
from
'components/ui/
Button
'
;
registerDef
(
'components/ui/
Button
'
,
component9
);
import
component10
from
'components/
renderer/HtmlRender
er'
;
registerDef
(
'components/
renderer/HtmlRender
er'
,
component10
);
import
component10
from
'components/
other/CameraControll
er'
;
registerDef
(
'components/
other/CameraControll
er'
,
component10
);
import
component11
from
'
../../assets/scripts/dialogs/RuleDialogContent
'
;
registerDef
(
'
./scripts/dialogs/RuleDialogContent
'
,
component11
);
import
component11
from
'
components/renderer/TextureRenderer
'
;
registerDef
(
'
components/renderer/TextureRenderer
'
,
component11
);
import
component12
from
'../../assets/scripts/
MainController
'
;
registerDef
(
'./scripts/
MainController
'
,
component12
);
import
component12
from
'../../assets/scripts/
scenes/SceneStart
'
;
registerDef
(
'./scripts/
scenes/SceneStart
'
,
component12
);
import
component13
from
'../../assets/scripts/game/CustomTextRenderer'
;
registerDef
(
'./scripts/game/CustomTextRenderer'
,
component13
);
import
component13
from
'../../assets/scripts/popup/Popup'
;
registerDef
(
'./scripts/popup/Popup'
,
component13
);
import
component14
from
'../../assets/scripts/navigator/SingleSceneNavigator'
;
registerDef
(
'./scripts/navigator/SingleSceneNavigator'
,
component14
);
import
component15
from
'../../assets/scripts/dialogs/RuleDialogContent'
;
registerDef
(
'./scripts/dialogs/RuleDialogContent'
,
component15
);
import
component16
from
'../../assets/scripts/scenes/SceneController'
;
registerDef
(
'./scripts/scenes/SceneController'
,
component16
);
import
component17
from
'../../assets/scripts/api/SampleApi'
;
registerDef
(
'./scripts/api/SampleApi'
,
component17
);
import
component18
from
'../../assets/scripts/game/CustomTextRenderer'
;
registerDef
(
'./scripts/game/CustomTextRenderer'
,
component18
);
import
component19
from
'../../assets/scripts/MainController'
;
registerDef
(
'./scripts/MainController'
,
component19
);
import
component20
from
'../../assets/scripts/common/Toast'
;
registerDef
(
'./scripts/common/Toast'
,
component20
);
yarn.lock
View file @
beefb4f4
This diff is collapsed.
Click to expand it.
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