Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
shuijf2
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
shuijf2
Commits
755c98f5
Commit
755c98f5
authored
Jun 25, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
5a078770
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
122 additions
and
29 deletions
+122
-29
.DS_Store
.DS_Store
+0
-0
main.scene
assets/scenes/main.scene
+50
-9
RuleDialogContent.ts
assets/scripts/dialogs/RuleDialogContent.ts
+1
-1
ScoreDialogContent.ts
assets/scripts/dialogs/ScoreDialogContent.ts
+11
-0
ScenePlay.ts
assets/scripts/scenes/ScenePlay.ts
+6
-5
SceneResult.ts
assets/scripts/scenes/SceneResult.ts
+4
-0
RankList.ts
assets/scripts/scenes/result/RankList.ts
+1
-0
logo.png
assets/singles/logo.png
+0
-0
bundle.js
debug/bundle.js
+31
-6
bundle.js.map
debug/bundle.js.map
+1
-1
index.html
index.html
+8
-1
MustCompile.ts
src/generated/MustCompile.ts
+9
-6
No files found.
.DS_Store
View file @
755c98f5
No preview for this file type
assets/scenes/main.scene
View file @
755c98f5
...
...
@@ -692,7 +692,7 @@
}
],
"uuid": "5f2a7508-4728-430b-b306-06f719ea81e3",
"disabled":
tru
e,
"disabled":
fals
e,
"children": [
{
"name": "cankao",
...
...
@@ -1334,6 +1334,49 @@
]
}
]
},
{
"name": "Button",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": -288.88888888888886,
"y": -762.2222222222222
}
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|96f7f590-a82a-422f-803d-6e4e454b6dc5"
}
},
{
"script": "components/animation/TouchZoom",
"properties": {
"easeName": "backOut"
}
},
{
"script": "components/ui/Button",
"properties": {
"disabledRes": "res|96f7f590-a82a-422f-803d-6e4e454b6dc5",
"downRes": "res|96f7f590-a82a-422f-803d-6e4e454b6dc5",
"upRes": "res|96f7f590-a82a-422f-803d-6e4e454b6dc5",
"onClick": [
{
"entity": "entity|5f2a7508-4728-430b-b306-06f719ea81e3",
"component": 1,
"method": "onTapCloseButton"
}
]
}
}
],
"children": [],
"uuid": "90432538-716c-4df5-9ae0-af2e559dd66c"
}
]
}
...
...
@@ -1571,9 +1614,9 @@
"width": 450,
"height": 350,
"position": {
"
y": 9
,
"
_type_": "scilla/support/Vector2D"
,
"
x": 10
"
x": -3.3333333333333357
,
"
y": -25.444444444444446
,
"
_type_": "scilla/support/Vector2D"
}
}
},
...
...
@@ -1931,11 +1974,9 @@
}
},
{
"script": "./scripts/dialogs/
Priz
eDialogContent",
"script": "./scripts/dialogs/
Scor
eDialogContent",
"properties": {
"pic": "entity|51655474-f891-419c-92e5-0dfa6f75cb67",
"label": "entity|undefined",
"getOrderStatus": "dynamic|API|getOrderStatus"
"content": "entity|03779188-0be4-44e9-a348-c01cbcda6865"
}
}
],
...
...
@@ -2030,7 +2071,7 @@
{
"entity": "entity|4e3bc4b3-e5f5-4ae5-a736-9c252085acd7",
"component": 1,
"method": "on
Click_use
btn"
"method": "on
click_ran
btn"
}
]
}
...
...
assets/scripts/dialogs/RuleDialogContent.ts
View file @
755c98f5
...
...
@@ -20,7 +20,7 @@ export default class RuleDialogContent extends DialogContent {
}
setup
(
data
)
{
this
.
_contentRenderer
.
htmlText
=
this
.
ajaxElement
.
rule
;
this
.
_contentRenderer
.
htmlText
=
window
[
'CFG'
][
'_rule'
]
;
}
}
assets/scripts/dialogs/ScoreDialogContent.ts
View file @
755c98f5
...
...
@@ -6,6 +6,7 @@
import
{
Entity
}
from
"scilla/src"
;
import
DialogContent
from
"../popup/DialogContent"
;
import
{
setText
}
from
"../entityUtils"
;
export
default
class
ScoreDialogContent
extends
DialogContent
{
content
:
Entity
;
...
...
@@ -14,6 +15,16 @@ export default class ScoreDialogContent extends DialogContent {
}
setup
(
data
:
any
=
{})
{
setText
(
this
.
content
,
`恭喜你共摇出
${
data
}
颗喜糖`
)
}
protected
onTapCloseButton
()
{
super
.
onTapCloseButton
();
this
.
bubbling
(
'fuckNavigator'
,
'start'
);
}
onclick_ranbtn
()
{
this
.
hide
();
this
.
bubbling
(
'fuckNavigator'
,
'result'
);
}
}
assets/scripts/scenes/ScenePlay.ts
View file @
755c98f5
...
...
@@ -15,7 +15,7 @@ export default class ScenePlay extends ScillaComponent implements INavigatorView
box1
:
Entity
;
box2
:
Entity
;
box3
:
Entity
;
private
COUNT_DOWN_SEC
=
8
;
private
COUNT_DOWN_SEC
=
4
;
private
_startTag
=
false
;
private
_msPassed
=
0
;
private
_ballCounter
=
0
;
...
...
@@ -123,7 +123,8 @@ export default class ScenePlay extends ScillaComponent implements INavigatorView
onTimerout
()
{
console
.
log
(
'onTimerout'
);
alert
(
this
.
_ballCounter
);
// alert(this._ballCounter);
this
.
bubbling
(
'showDialog'
,
'Score'
,
this
.
_ballCounter
);
}
getNumber
(
num
)
{
...
...
@@ -170,9 +171,9 @@ export default class ScenePlay extends ScillaComponent implements INavigatorView
this
.
box3
.
enabled
=
true
;
}
onGameOver
()
{
this
.
bubbling
(
'fuck'
,
'result'
);
}
//
onGameOver() {
//
this.bubbling('fuck', 'result');
//
}
// _timer
onDidEnter
(
last
:
string
,
action
:
alien
.
NavigatorAction
,
parameters
:
any
):
void
{
...
...
assets/scripts/scenes/SceneResult.ts
View file @
755c98f5
...
...
@@ -15,6 +15,10 @@ export default class SceneResult extends ScillaComponent implements INavigatorVi
this
.
loadAvatar
(
this
.
myavatar
,
'//yun.duiba.com.cn/db_games/1.jpg'
,
78
);
}
onTapCloseButton
()
{
this
.
bubbling
(
'fuck'
,
'start'
);
}
onDidEnter
(
last
:
string
,
action
:
alien
.
NavigatorAction
,
parameters
:
any
):
void
{
this
.
entity
.
enabled
=
true
;
}
...
...
assets/scripts/scenes/result/RankList.ts
View file @
755c98f5
...
...
@@ -34,6 +34,7 @@ export default class RankList extends ScillaComponent {
rank
.
getComponent
(
RankItem
).
setdata
(
item
);
this
.
content
.
addChild
(
rank
);
rank
.
getComponent
(
Transform
).
position
.
y
=
index
*
itemHeight
-
totalHeight
/
2
+
itemHeight
/
2
+
10
;
this
.
_list
.
push
(
rank
);
});
}
...
...
assets/singles/logo.png
View replaced file @
5a078770
View file @
755c98f5
34.8 KB
|
W:
|
H:
1.85 KB
|
W:
|
H:
2-up
Swipe
Onion skin
debug/bundle.js
View file @
755c98f5
...
...
@@ -6967,7 +6967,7 @@
__extends
(
ScenePlay
,
_super
);
function
ScenePlay
()
{
var
_this_1
=
_super
!==
null
&&
_super
.
apply
(
this
,
arguments
)
||
this
;
_this_1
.
COUNT_DOWN_SEC
=
8
;
_this_1
.
COUNT_DOWN_SEC
=
4
;
_this_1
.
_startTag
=
false
;
_this_1
.
_msPassed
=
0
;
_this_1
.
_ballCounter
=
0
;
...
...
@@ -7087,7 +7087,7 @@
};
ScenePlay
.
prototype
.
onTimerout
=
function
()
{
console
.
log
(
'onTimerout'
);
alert
(
this
.
_ballCounter
);
this
.
bubbling
(
'showDialog'
,
'Score'
,
this
.
_ballCounter
);
};
ScenePlay
.
prototype
.
getNumber
=
function
(
num
)
{
if
(
num
<
10
)
...
...
@@ -7129,9 +7129,6 @@
this
.
box2
.
enabled
=
false
;
this
.
box3
.
enabled
=
true
;
};
ScenePlay
.
prototype
.
onGameOver
=
function
()
{
this
.
bubbling
(
'fuck'
,
'result'
);
};
ScenePlay
.
prototype
.
onDidEnter
=
function
(
last
,
action
,
parameters
)
{
this
.
entity
.
enabled
=
true
;
};
...
...
@@ -7530,6 +7527,9 @@
this
.
loadAvatar
(
this
.
avatar3
,
'//yun.duiba.com.cn/db_games/1.jpg'
,
64
);
this
.
loadAvatar
(
this
.
myavatar
,
'//yun.duiba.com.cn/db_games/1.jpg'
,
78
);
};
SceneResult
.
prototype
.
onTapCloseButton
=
function
()
{
this
.
bubbling
(
'fuck'
,
'start'
);
};
SceneResult
.
prototype
.
onDidEnter
=
function
(
last
,
action
,
parameters
)
{
this
.
entity
.
enabled
=
true
;
};
...
...
@@ -7986,6 +7986,7 @@
rank
.
getComponent
(
RankItem
).
setdata
(
item
);
_this
.
content
.
addChild
(
rank
);
rank
.
getComponent
(
Transform
).
position
.
y
=
index
*
itemHeight
-
totalHeight
/
2
+
itemHeight
/
2
+
10
;
_this
.
_list
.
push
(
rank
);
});
};
return
RankList
;
...
...
@@ -8562,7 +8563,7 @@
this
.
_contentRenderer
=
this
.
Content
.
getComponent
(
HtmlRenderer
);
};
RuleDialogContent
.
prototype
.
setup
=
function
(
data
)
{
this
.
_contentRenderer
.
htmlText
=
this
.
ajaxElement
.
rule
;
this
.
_contentRenderer
.
htmlText
=
window
[
'CFG'
][
'_rule'
]
;
};
return
RuleDialogContent
;
}(
DialogContent
));
...
...
@@ -8676,6 +8677,29 @@
return
PrizeDialogContent
;
}(
DialogContent
));
var
ScoreDialogContent
=
(
function
(
_super
)
{
__extends
(
ScoreDialogContent
,
_super
);
function
ScoreDialogContent
()
{
return
_super
!==
null
&&
_super
.
apply
(
this
,
arguments
)
||
this
;
}
ScoreDialogContent
.
prototype
.
onAwake
=
function
()
{
_super
.
prototype
.
onAwake
.
call
(
this
);
};
ScoreDialogContent
.
prototype
.
setup
=
function
(
data
)
{
if
(
data
===
void
0
)
{
data
=
{};
}
setText
(
this
.
content
,
"
\
u606D
\
u559C
\
u4F60
\
u5171
\
u6447
\
u51FA"
+
data
+
"
\
u9897
\
u559C
\
u7CD6"
);
};
ScoreDialogContent
.
prototype
.
onTapCloseButton
=
function
()
{
_super
.
prototype
.
onTapCloseButton
.
call
(
this
);
this
.
bubbling
(
'fuckNavigator'
,
'start'
);
};
ScoreDialogContent
.
prototype
.
onclick_ranbtn
=
function
()
{
this
.
hide
();
this
.
bubbling
(
'fuckNavigator'
,
'result'
);
};
return
ScoreDialogContent
;
}(
DialogContent
));
var
Icon
=
(
function
(
_super
)
{
__extends
(
Icon
,
_super
);
function
Icon
()
{
...
...
@@ -8736,6 +8760,7 @@
registerDef
(
'./scripts/scenes/SceneController'
,
SceneController
);
registerDef
(
'./scripts/dialogs/AlertDialogContent'
,
AlertDialogContent
);
registerDef
(
'./scripts/dialogs/PrizeDialogContent'
,
PrizeDialogContent
);
registerDef
(
'./scripts/dialogs/ScoreDialogContent'
,
ScoreDialogContent
);
registerDef
(
'./scripts/common/Toast'
,
Toast
);
registerDef
(
'./scripts/Icon'
,
Icon
);
registerDef
(
'./scripts/scenes/SceneResult'
,
SceneResult
);
...
...
debug/bundle.js.map
View file @
755c98f5
This source diff could not be displayed because it is too large. You can
view the blob
instead.
index.html
View file @
755c98f5
...
...
@@ -56,7 +56,14 @@
<script
src=
"./security.js"
></script>
<script
src=
"debug/bundle.js"
></script>
<script>
var
CFG
=
{
"actId"
:
"3335069"
,
"oaId"
:
"3335069"
,
"unitName"
:
"积分"
,
"btnUnitName"
:
"积分"
,
"doJoin"
:
"/hdtool/doJoin?dpm=1.3.1.0&activityId=3335069"
,
"quireOrder"
:
"/hdtool/getOrderStatus"
,
"styleConfig"
:
"/hdtool/getHdtoolConfig"
,
"getElement"
:
"/hdtool/ajaxElement"
,
"getPrizeDetail"
:
"/hdtool/prizeDetail"
,
"ajaxThroughInfo"
:
"/hdtool/ajaxThroughInfo"
,
"throughSubmit"
:
"/hdtool/throughSubmit"
,
"gameGetOrder"
:
"/hdtool/getOrderInfo"
,
"gameSubmit"
:
"/hdtool/gameSubmit"
,
"doSubmit"
:
"/hdtool/submit"
,
"adslotId"
:
""
,
"consumerId"
:
"1"
,
"isNotLoginUser"
:
false
,
"uid"
:
"1"
,
"hdType"
:
"duiba"
,
"hdToolId"
:
"42363"
,
"appType"
:
"credits"
,
"subType"
:
"custom"
,
"directSendCoupon"
:
"false"
,
"ajaxAction"
:
""
,
"recommendQueue"
:
"/recommend/getRecommend"
,
"recommendSkin"
:
"/recommend/getRecommendSkin"
,
"isShowDetail"
:
true
,
"preview"
:
false
,
"from"
:
""
,
"login"
:
"//activity.m.duiba.com.cn/hdtool/login?dpm=1.3.3.0"
,
"flowRedirectUrl"
:
""
,
"flowRedirectTuiaUrl"
:
""
,
"isOpenRecommend"
:
false
,
"getCreditsLink"
:
"http://baidu.com?uid=1&dbnewopen"
,
"appId"
:
"1"
,
"recordUrl"
:
"//activity.m.duiba.com.cn/crecord/record?dbnewopen&dpm=1.3.2.0"
,
"shareDesc"
:
"分享分享文案文案"
,
"entranceDesc"
:
"测试领奖,也可到我的奖品领奖,24小时内有效哦"
,
"isSHowMeat"
:
true
,
"needCouponModal"
:
true
,
"needRecommendModal"
:
true
,
"asyncFiles"
:
[],
"shareAndroidLinkActivity"
:
"http://www.duiba.com.cn"
,
"shareIosLinkActivity"
:
"http://www.iqiyi.com"
,
"appName"
:
"custom"
,
"needShare"
:
true
,
"shareTitle"
:
""
,
"shareSubTitle"
:
""
,
"sharePicUrl"
:
""
,
"shareLink"
:
""
,
"shareAndroidDeeplink"
:
""
,
"shareIOSDeeplink"
:
""
};
var
CFG
=
{
activityId
:
3561555
,
//活动id
freeLimit
:
0
,
//剩余次数
weixinUid
:
'1'
,
//微信uid
nickname
:
'nickname'
,
//昵称
avatar
:
'avatar'
};
CFG
.
_rule
=
'starttttttt<br>第1行第1行第1行第1行第1行第1行第1行第1行第1行第1行第1行第1行第1行第1行<br>第2行<br>第3行<br>第4行<br>第5行<br>第6行<br>第7行<br>第1行<br>第2行<br>第3行<br>第4行<br>第5行<br>第6行<br>第7行endddddd'
;
function
requirelogin
()
{
console
.
log
(
'requirelogin'
);
...
...
src/generated/MustCompile.ts
View file @
755c98f5
...
...
@@ -86,11 +86,14 @@ registerDef('./scripts/dialogs/AlertDialogContent', component25);
import
component26
from
'../../assets/scripts/dialogs/PrizeDialogContent'
;
registerDef
(
'./scripts/dialogs/PrizeDialogContent'
,
component26
);
import
component27
from
'../../assets/scripts/
common/Toas
t'
;
registerDef
(
'./scripts/
common/Toas
t'
,
component27
);
import
component27
from
'../../assets/scripts/
dialogs/ScoreDialogConten
t'
;
registerDef
(
'./scripts/
dialogs/ScoreDialogConten
t'
,
component27
);
import
component28
from
'../../assets/scripts/
Icon
'
;
registerDef
(
'./scripts/
Icon
'
,
component28
);
import
component28
from
'../../assets/scripts/
common/Toast
'
;
registerDef
(
'./scripts/
common/Toast
'
,
component28
);
import
component29
from
'../../assets/scripts/scenes/SceneResult'
;
registerDef
(
'./scripts/scenes/SceneResult'
,
component29
);
import
component29
from
'../../assets/scripts/Icon'
;
registerDef
(
'./scripts/Icon'
,
component29
);
import
component30
from
'../../assets/scripts/scenes/SceneResult'
;
registerDef
(
'./scripts/scenes/SceneResult'
,
component30
);
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