Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoxiaole
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
xiaoxiaole
Commits
1774e2bb
Commit
1774e2bb
authored
Sep 25, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
3275d414
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
48 additions
and
14 deletions
+48
-14
index.html
egret/index.html
+1
-1
signicon_blood.png
egret/resource/assets/sign/signicon_blood.png
+0
-0
signprize_btn.png
egret/resource/assets/signprize/signprize_btn.png
+0
-0
signprize_numsbg.png
egret/resource/assets/signprize/signprize_numsbg.png
+0
-0
signprize元宝.png
egret/resource/assets/signprize/signprize元宝.png
+0
-0
singprizebg.png
egret/resource/assets/signprize/singprizebg.png
+0
-0
singprize体力.png
egret/resource/assets/signprize/singprize体力.png
+0
-0
default.res.json
egret/resource/default.res.json
+24
-0
SignItemSkin.exml
egret/resource/skins/SignItemSkin.exml
+3
-1
SignPrizeSkin.exml
egret/resource/skins/SignPrizeSkin.exml
+11
-5
SignPanel.ts
egret/src/panels/SignPanel.ts
+6
-7
SignPrizePanel.ts
egret/src/panels/SignPrizePanel.ts
+3
-0
No files found.
egret/index.html
View file @
1774e2bb
...
...
@@ -48,7 +48,7 @@
<script
src=
"libs/pad-zeropadding.js"
></script>
<img
id=
"pic"
style=
"width:100%;position: absolute;z-index: 999;display: none;"
/>
<script>
localStorage
.
clear
();
//
localStorage.clear();
window
[
'total_level'
]
=
18
+
13
*
4
;
window
[
'last_level'
]
=
69
;
//必须大于等于total_level
...
...
egret/resource/assets/sign/signicon_blood.png
0 → 100644
View file @
1774e2bb
5.86 KB
egret/resource/assets/signprize/signprize_btn.png
View replaced file @
3275d414
View file @
1774e2bb
20.3 KB
|
W:
|
H:
20.2 KB
|
W:
|
H:
2-up
Swipe
Onion skin
egret/resource/assets/signprize/signprize_numsbg.png
0 → 100644
View file @
1774e2bb
539 Bytes
egret/resource/assets/signprize/signprize元宝.png
0 → 100644
View file @
1774e2bb
28.4 KB
egret/resource/assets/signprize/singprizebg.png
View replaced file @
3275d414
View file @
1774e2bb
90.6 KB
|
W:
|
H:
90.6 KB
|
W:
|
H:
2-up
Swipe
Onion skin
egret/resource/assets/signprize/singprize体力.png
0 → 100644
View file @
1774e2bb
29.4 KB
egret/resource/default.res.json
View file @
1774e2bb
...
...
@@ -83,6 +83,10 @@
{
"keys"
:
"signitem_png,signicon5_png,signicon4_png,signicon3_png,signicon2_png,signbtn4_png,signbtn3_png,signbtn2_png,signbtn1_png,signbg_png,sign_line2_png,sign_line_png,sign_light_png,sign_icon1_png"
,
"name"
:
"sign"
},
{
"name"
:
"preload"
,
"keys"
:
"signicon_blood_png,signprize_numsbg_png,singprize体力_png,signprize元宝_png"
}
],
"resources"
:
[
...
...
@@ -1830,6 +1834,26 @@
"url"
:
"assets/sign/sign_light.png"
,
"type"
:
"image"
,
"name"
:
"sign_light_png"
},
{
"name"
:
"signicon_blood_png"
,
"type"
:
"image"
,
"url"
:
"assets/sign/signicon_blood.png"
},
{
"name"
:
"signprize_numsbg_png"
,
"type"
:
"image"
,
"url"
:
"assets/signprize/signprize_numsbg.png"
},
{
"name"
:
"singprize体力_png"
,
"type"
:
"image"
,
"url"
:
"assets/signprize/singprize体力.png"
},
{
"name"
:
"signprize元宝_png"
,
"type"
:
"image"
,
"url"
:
"assets/signprize/signprize元宝.png"
}
]
}
\ No newline at end of file
egret/resource/skins/SignItemSkin.exml
View file @
1774e2bb
...
...
@@ -10,7 +10,9 @@
<e:Image
id=
"money"
source=
"signicon2_png"
x=
"90"
y=
"67.5"
visible=
"false"
/>
<e:Image
id=
"hammer"
source=
"signicon3_png"
x=
"96"
y=
"53.23"
visible=
"false"
/>
<e:Image
id=
"boom"
source=
"signicon4_png"
x=
"103"
y=
"55"
visible=
"false"
/>
<e:Image
id=
"steps"
source=
"signicon5_png"
x=
"104"
y=
"57"
/>
<e:Image
id=
"steps"
source=
"signicon5_png"
x=
"104"
y=
"57"
visible=
"false"
/>
<e:Image
id=
"blood"
x=
"98.04"
y=
"60.35"
source=
"signicon_blood_png"
/>
<e:Image
id=
"random"
x=
"98.73"
y=
"58.38"
source=
"signicon_blood_png"
/>
<e:Button
id=
"btn1"
label=
""
x=
"364"
y=
"65"
visible=
"false"
>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
...
...
egret/resource/skins/SignPrizeSkin.exml
View file @
1774e2bb
...
...
@@ -2,7 +2,14 @@
<e:Skin
class=
"SignPrizeSkin"
width=
"750"
height=
"1206"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<w:Config
id=
"16d5c2563cb"
/>
<e:Image
source=
"singprizebg_png"
y=
"20"
horizontalCenter=
"0"
/>
<e:Button
id=
"closeBtn"
label=
""
x=
"604"
y=
"164"
>
<e:Image
id=
"img0"
y=
"297"
touchEnabled=
"true"
source=
"{data.img}"
width=
"512"
height=
"240"
scaleX=
"1"
scaleY=
"1"
horizontalCenter=
"0"
visible=
"false"
/>
<e:Image
id=
"money"
source=
"signprize元宝_png"
y=
"234.88"
horizontalCenter=
"0"
visible=
"false"
/>
<e:Image
id=
"blood"
source=
"singprize体力_png"
y=
"233.8"
horizontalCenter=
"0"
/>
<e:Group
id=
"numsgroup"
x=
"400.38"
y=
"282.24"
visible=
"false"
>
<e:Image
id=
"numsbg"
source=
"signprize_numsbg_png"
x=
"0"
y=
"0"
/>
<e:Label
id=
"nums"
text=
"X8"
size=
"22"
horizontalCenter=
"0"
verticalCenter=
"0"
verticalAlign=
"middle"
textAlign=
"center"
/>
</e:Group>
<e:Button
id=
"closeBtn"
label=
""
x=
"613.12"
y=
"160.96"
locked=
"true"
>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"closeCommonBtn_png"
source.down=
"closeCommonBtn_png"
source.disabled=
"closeCommonBtn_png"
/>
...
...
@@ -10,7 +17,7 @@
</e:Skin>
</e:skinName>
</e:Button>
<e:Button
id=
"close2Btn"
label=
""
y=
"564"
horizontalCenter=
"0"
>
<e:Button
id=
"close2Btn"
label=
""
y=
"564"
horizontalCenter=
"0"
locked=
"true"
>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"signprize_btn_png"
source.down=
"signprize_btn_png"
source.disabled=
"signprize_btn_png"
/>
...
...
@@ -18,5 +25,4 @@
</e:Skin>
</e:skinName>
</e:Button>
<e:Image
id=
"img"
y=
"297"
touchEnabled=
"true"
source=
"{data.img}"
width=
"512"
height=
"240"
scaleX=
"1"
scaleY=
"1"
horizontalCenter=
"0"
/>
</e:Skin>
\ No newline at end of file
egret/src/panels/SignPanel.ts
View file @
1774e2bb
...
...
@@ -49,14 +49,14 @@ export default class SignPanel extends Panel {
this
.
list
.
itemRenderer
=
SignItem
;
const
configs
=
[
{
nums
:
1
,
type
:
'object'
},
{
nums
:
2
,
type
:
'money'
},
{
nums
:
1
,
type
:
'object'
},
//券
{
nums
:
2
,
type
:
'money'
},
//元宝
{
nums
:
3
,
type
:
'hammer'
},
{
nums
:
4
,
type
:
'boom'
},
{
nums
:
5
,
type
:
'steps'
},
{
nums
:
6
,
type
:
'
object'
},
{
nums
:
7
,
type
:
'
money'
}
]
{
nums
:
6
,
type
:
'
blood'
},
//体力
{
nums
:
7
,
type
:
'
random'
}
//随机
]
;
const
func
=
(
data
,
item
:
SignItem
)
=>
{
NetManager
.
ins
.
doSign
((
s
)
=>
{
if
(
s
)
{
...
...
@@ -72,8 +72,7 @@ export default class SignPanel extends Panel {
}
},
window
[
'signActivityId'
])
console
.
log
(
data
);
}
};
const
list
:
any
[]
=
[{},
{},
{},
{},
{},
{},
{}];
list
.
forEach
((
ele
,
index
)
=>
{
ele
.
index
=
index
;
...
...
egret/src/panels/SignPrizePanel.ts
View file @
1774e2bb
...
...
@@ -11,9 +11,11 @@ import { changeMapScene } from "../startScene/StartScene";
export
default
class
SignPrizePanel
extends
Panel
{
_level
;
start
(
data
)
{
super
.
start
();
//体力,元宝,道具,大牌券
setGray
(
this
[
'pica'
]);
setGray
(
this
[
'picb'
]);
setGray
(
this
[
'picc'
]);
...
...
@@ -48,6 +50,7 @@ export default class SignPrizePanel extends Panel {
showlog
()
{
NetManager
.
ins
.
showLog
(
getlogItem
(
15
));
}
async
setStar
(
nums
:
number
)
{
this
[
'pic1'
].
visible
=
this
[
'pic2'
].
visible
=
this
[
'pic3'
].
visible
=
false
;
this
[
'light'
].
visible
=
false
;
...
...
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