forked from cocos/example-projects
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
498 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// Learn cc.Class: | ||
// - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/class.html | ||
// - [English] http://docs.cocos2d-x.org/creator/manual/en/scripting/class.html | ||
// Learn Attribute: | ||
// - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html | ||
// - [English] http://docs.cocos2d-x.org/creator/manual/en/scripting/reference/attributes.html | ||
// Learn life-cycle callbacks: | ||
// - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html | ||
// - [English] https://www.cocos2d-x.org/docs/creator/manual/en/scripting/life-cycle-callbacks.html | ||
|
||
cc.Class({ | ||
extends: cc.Component, | ||
|
||
properties: { | ||
displayNode: cc.Node | ||
}, | ||
|
||
// LIFE-CYCLE CALLBACKS: | ||
|
||
// onLoad () {}, | ||
|
||
start () { | ||
if (cc.sys.browserType === cc.sys.BROWSER_TYPE_IE) { | ||
// currently ie render color is not right | ||
this.displayNode.active = false; | ||
this.node.active = true; | ||
} | ||
else { | ||
this.displayNode.active = true; | ||
this.node.active = false; | ||
} | ||
}, | ||
|
||
// update (dt) {}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"ver": "1.0.5", | ||
"uuid": "aa6e9e14-7d84-44cd-b14d-f780f71aea64", | ||
"isPlugin": false, | ||
"loadPluginInWeb": true, | ||
"loadPluginInNative": true, | ||
"loadPluginInEditor": false, | ||
"subMetas": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
[ | ||
{ | ||
"__type__": "cc.Prefab", | ||
"_name": "", | ||
"_objFlags": 0, | ||
"_native": "", | ||
"data": { | ||
"__id__": 1 | ||
}, | ||
"optimizationPolicy": 0, | ||
"asyncLoadAssets": false, | ||
"readonly": false | ||
}, | ||
{ | ||
"__type__": "cc.Node", | ||
"_name": "3d-support-info", | ||
"_objFlags": 0, | ||
"_parent": null, | ||
"_children": [], | ||
"_active": true, | ||
"_level": 2, | ||
"_components": [ | ||
{ | ||
"__id__": 2 | ||
}, | ||
{ | ||
"__id__": 3 | ||
} | ||
], | ||
"_prefab": { | ||
"__id__": 4 | ||
}, | ||
"_opacity": 255, | ||
"_color": { | ||
"__type__": "cc.Color", | ||
"r": 255, | ||
"g": 255, | ||
"b": 255, | ||
"a": 255 | ||
}, | ||
"_contentSize": { | ||
"__type__": "cc.Size", | ||
"width": 440, | ||
"height": 50.4 | ||
}, | ||
"_anchorPoint": { | ||
"__type__": "cc.Vec2", | ||
"x": 0.5, | ||
"y": 0.5 | ||
}, | ||
"_position": { | ||
"__type__": "cc.Vec3", | ||
"x": 0, | ||
"y": 0, | ||
"z": 0 | ||
}, | ||
"_scale": { | ||
"__type__": "cc.Vec3", | ||
"x": 1, | ||
"y": 1, | ||
"z": 1 | ||
}, | ||
"_eulerAngles": { | ||
"__type__": "cc.Vec3", | ||
"x": 0, | ||
"y": 0, | ||
"z": 0 | ||
}, | ||
"_skewX": 0, | ||
"_skewY": 0, | ||
"_is3DNode": false, | ||
"groupIndex": 0, | ||
"_id": "" | ||
}, | ||
{ | ||
"__type__": "cc.Label", | ||
"_name": "", | ||
"_objFlags": 0, | ||
"node": { | ||
"__id__": 1 | ||
}, | ||
"_enabled": true, | ||
"_materials": [ | ||
{ | ||
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" | ||
} | ||
], | ||
"_useOriginalSize": false, | ||
"_string": "本测试例不支持当前平台", | ||
"_N$string": "本测试例不支持当前平台", | ||
"_fontSize": 40, | ||
"_lineHeight": 40, | ||
"_enableWrapText": true, | ||
"_N$file": null, | ||
"_isSystemFontUsed": true, | ||
"_spacingX": 0, | ||
"_batchAsBitmap": false, | ||
"_N$horizontalAlign": 1, | ||
"_N$verticalAlign": 1, | ||
"_N$fontFamily": "Arial", | ||
"_N$overflow": 0, | ||
"_N$cacheMode": 0, | ||
"_id": "" | ||
}, | ||
{ | ||
"__type__": "aa6e94UfYREzbFN94D3Gupk", | ||
"_name": "", | ||
"_objFlags": 0, | ||
"node": { | ||
"__id__": 1 | ||
}, | ||
"_enabled": true, | ||
"displayNode": null, | ||
"_id": "" | ||
}, | ||
{ | ||
"__type__": "cc.PrefabInfo", | ||
"root": { | ||
"__id__": 1 | ||
}, | ||
"asset": { | ||
"__id__": 0 | ||
}, | ||
"fileId": "0eaDa495tBAJWubgr0rUFE", | ||
"sync": false | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"ver": "1.2.1", | ||
"uuid": "f8348422-025b-4518-880b-b6a56945ece8", | ||
"optimizationPolicy": "AUTO", | ||
"asyncLoadAssets": false, | ||
"readonly": false, | ||
"subMetas": {} | ||
} |
Oops, something went wrong.