Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wfc13
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
wfc13
Commits
190bfaaf
Commit
190bfaaf
authored
Aug 04, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
57b3cf90
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
473 additions
and
79 deletions
+473
-79
index.do.json
project/mock/webNet/game/index.do.json
+1
-1
draw_bg.png
project/resource/draw/draw_bg.png
+0
-0
draw_okbtn.png
project/resource/draw/draw_okbtn.png
+0
-0
res.json
project/resource/res.json
+0
-4
skin.json
project/resource/skin.json
+465
-1
ResJson.ts
project/src/ResJson.ts
+1
-4
SkinJson.ts
project/src/SkinJson.ts
+1
-44
draw.ts
project/src/panels/draw.ts
+3
-21
IndexScene.ts
project/src/scenes/IndexScene.ts
+2
-4
No files found.
project/mock/webNet/game/index.do.json
View file @
190bfaaf
...
...
@@ -4,7 +4,7 @@
"code"
:
""
,
"data"
:
{
"shareCode"
:
"d8kadf2"
,
"isNewbie"
:
true
,
"isNewbie"
:
0
,
"amount"
:
1000
}
}
\ No newline at end of file
project/resource/draw/draw_bg.png
deleted
100644 → 0
View file @
57b3cf90
168 KB
project/resource/draw/draw_okbtn.png
deleted
100644 → 0
View file @
57b3cf90
11.6 KB
project/resource/res.json
View file @
190bfaaf
...
...
@@ -12,10 +12,6 @@
"keys"
:
"comCloseBtn.png,toastBg.png,waitingBg.png,waitingRot.png"
,
"name"
:
"common"
},
{
"keys"
:
"draw_bg.png,draw_okbtn.png"
,
"name"
:
"draw"
},
{
"keys"
:
"index_bg.png"
,
"name"
:
"index"
...
...
project/resource/skin.json
View file @
190bfaaf
This diff is collapsed.
Click to expand it.
project/src/ResJson.ts
View file @
190bfaaf
...
...
@@ -12,10 +12,7 @@ export const ResJson = {
"keys"
:
"comCloseBtn.png,toastBg.png,waitingBg.png,waitingRot.png"
,
"name"
:
"common"
},
{
"keys"
:
"draw_bg.png,draw_okbtn.png"
,
"name"
:
"draw"
},
{
"keys"
:
"index_bg.png"
,
"name"
:
"index"
...
...
project/src/SkinJson.ts
View file @
190bfaaf
...
...
@@ -459,50 +459,7 @@ export const SkinJson ={
}
}
]
},
{
"name"
:
"draw"
,
"x"
:
67
,
"y"
:
319
,
"type"
:
"container"
,
"children"
:
[
{
"name"
:
"draw_bg"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"text"
,
"props"
:
{
"text"
:
""
,
"size"
:
12
,
"fillColor"
:
"#000000"
,
"textAlpha"
:
1
}
},
{
"name"
:
"draw_name"
,
"x"
:
248
,
"y"
:
331
,
"type"
:
"text"
,
"props"
:
{
"text"
:
"提现成功"
,
"size"
:
30
,
"fillColor"
:
"#5889ce"
,
"textAlpha"
:
1
}
},
{
"name"
:
"draw_okbtn"
,
"x"
:
126
,
"y"
:
724
,
"type"
:
"text"
,
"props"
:
{
"text"
:
""
,
"size"
:
12
,
"fillColor"
:
"#000000"
,
"textAlpha"
:
1
}
}
]
}
]
}
\ No newline at end of file
project/src/panels/draw.ts
View file @
190bfaaf
import
{
changeScene
}
from
"../../module/ctrls"
;
import
{
RES
}
from
"../../module/RES"
;
import
{
Panel
}
from
"../../module/views/Panel"
;
import
getObject
from
"../getObject"
;
import
{
IndexScene
}
from
"../scenes/IndexScene"
;
import
{
Tools
}
from
"../Tools"
;
import
updateShare
from
"../updateShare"
;
import
{
getWebData
,
sendWebNet
,
WebNetName
}
from
"../WebNet"
;
export
class
DrawPanel
extends
Panel
{
initUi
()
{
super
.
initUi
();
var
skin
=
RES
.
getSkinDataByName
(
this
.
skinName
);
this
.
position
.
set
(
skin
.
x
,
skin
.
y
);
//
var skin = RES.getSkinDataByName(this.skinName);
//
this.position.set(skin.x, skin.y);
}
get
groupNames
()
{
return
[
"draw"
]
}
get
skinName
()
{
return
"draw"
}
//两个按钮都是关闭作用
get
closeBtns
()
{
return
[
getObject
(
this
,
'draw_closebtn'
),
getObject
(
this
,
'draw_okbtn'
)];
}
async
start
(
data
)
{
super
.
start
();
const
indexResult
=
await
sendWebNet
(
WebNetName
.
index
)
}
hidePanel
(){
super
.
hidePanel
();
super
.
start
(
data
);
}
}
\ No newline at end of file
project/src/scenes/IndexScene.ts
View file @
190bfaaf
...
...
@@ -2,6 +2,7 @@ import { unwatchPageVisibility, watchPageVisibility } from '@spark/utils';
import
{
closeCurrentPanel
,
showPanel
}
from
"../../module/ctrls"
;
import
PanelCtrl
from
'../../module/ctrls/panelCtrl'
;
import
{
Scene
}
from
"../../module/views/Scene"
;
import
{
DrawPanel
}
from
'../panels/draw'
;
import
{
ShareFailPanel
}
from
'../panels/share_fail'
;
import
{
ShareSuccessPanel
}
from
'../panels/share_success'
;
import
{
sendWebNet
,
WebNetName
}
from
'../WebNet'
;
...
...
@@ -22,10 +23,7 @@ export class IndexScene extends Scene {
}
this
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
()
=>
{
showPanel
(
PrizePanel
,
data
);
showPanel
(
DrawPanel
,
data
);
},
this
);
}
...
...
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