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
795b3837
Commit
795b3837
authored
Aug 13, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
195a5bbd
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
34 additions
and
20 deletions
+34
-20
getTimes.ts
project/src/panels/getTimes.ts
+9
-5
memberGuide.ts
project/src/panels/memberGuide.ts
+4
-4
noprize.ts
project/src/panels/noprize.ts
+7
-4
notEnoughMoney.ts
project/src/panels/notEnoughMoney.ts
+5
-5
share.ts
project/src/panels/share.ts
+8
-1
timesNotEnough.ts
project/src/panels/timesNotEnough.ts
+1
-1
No files found.
project/src/panels/getTimes.ts
View file @
795b3837
...
@@ -6,8 +6,8 @@ import getObject from "../common/getObject";
...
@@ -6,8 +6,8 @@ import getObject from "../common/getObject";
let
section
;
let
section
;
export
class
getTimesPanel
extends
Panel
{
export
class
getTimesPanel
extends
Panel
{
share_share
_go
(){
click_getTimes
_go
(){
console
.
log
(
'
share_share
_go'
);
console
.
log
(
'
click_getTimes
_go'
);
}
}
get
groupNames
()
{
return
[
"getTimes"
]
}
get
groupNames
()
{
return
[
"getTimes"
]
}
...
@@ -17,16 +17,20 @@ export class getTimesPanel extends Panel {
...
@@ -17,16 +17,20 @@ export class getTimesPanel extends Panel {
super
.
initUi
();
super
.
initUi
();
var
skin
=
RES
.
getSkinDataByName
(
this
.
skinName
);
var
skin
=
RES
.
getSkinDataByName
(
this
.
skinName
);
this
.
position
.
set
(
skin
.
x
,
skin
.
y
);
this
.
position
.
set
(
skin
.
x
,
skin
.
y
);
// centerTextField(getObject(this,'cost_tips'),496);
centerTextField
(
getObject
(
this
,
'getTimes_tips2'
),
496
);
centerTextField
(
getObject
(
this
,
'getTimes_tips1'
),
496
);
getObject
(
this
,
'getTimes_tips2'
).
text
=
`12312313123次免费拆盒机会`
;
getObject
(
this
,
'getTimes_tips1'
).
text
=
`最多可增加11231231231次拆盒机会/天`
;
}
}
initEvents
()
{
initEvents
()
{
super
.
initEvents
();
super
.
initEvents
();
// getObject(this, 'share_fail_btn').addEventListener(FYGE.MouseEvent.CLICK, this.share_share
_go, this);
getObject
(
this
,
'getTimes_go'
).
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
click_getTimes
_go
,
this
);
}
}
removeEvents
()
{
removeEvents
()
{
super
.
removeEvents
();
super
.
removeEvents
();
// getObject(this, 'share_fail_btn').removeEventListener(FYGE.MouseEvent.CLICK, this.share_share
_go, this);
getObject
(
this
,
'getTimes_go'
).
removeEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
click_getTimes
_go
,
this
);
}
}
protected
get
closeBtns
():
any
[]
{
protected
get
closeBtns
():
any
[]
{
...
...
project/src/panels/memberGuide.ts
View file @
795b3837
...
@@ -6,8 +6,8 @@ import getObject from "../common/getObject";
...
@@ -6,8 +6,8 @@ import getObject from "../common/getObject";
let
section
;
let
section
;
export
class
memberGuidePanel
extends
Panel
{
export
class
memberGuidePanel
extends
Panel
{
share_share_go
(){
click_memberGuide_btn
(){
console
.
log
(
'
share_share_go
'
);
console
.
log
(
'
memberGuide_btn
'
);
}
}
get
groupNames
()
{
return
[
"memberGuide"
]
}
get
groupNames
()
{
return
[
"memberGuide"
]
}
...
@@ -22,11 +22,11 @@ export class memberGuidePanel extends Panel {
...
@@ -22,11 +22,11 @@ export class memberGuidePanel extends Panel {
initEvents
()
{
initEvents
()
{
super
.
initEvents
();
super
.
initEvents
();
// getObject(this, 'share_fail_btn').addEventListener(FYGE.MouseEvent.CLICK, this.share_share_go
, this);
getObject
(
this
,
'memberGuide_btn'
).
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
click_memberGuide_btn
,
this
);
}
}
removeEvents
()
{
removeEvents
()
{
super
.
removeEvents
();
super
.
removeEvents
();
// getObject(this, 'share_fail_btn').removeEventListener(FYGE.MouseEvent.CLICK, this.share_share_go
, this);
getObject
(
this
,
'memberGuide_btn'
).
removeEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
click_memberGuide_btn
,
this
);
}
}
protected
get
closeBtns
():
any
[]
{
protected
get
closeBtns
():
any
[]
{
...
...
project/src/panels/noprize.ts
View file @
795b3837
...
@@ -6,9 +6,9 @@ import getObject from "../common/getObject";
...
@@ -6,9 +6,9 @@ import getObject from "../common/getObject";
let
section
;
let
section
;
export
class
NoPrizePanel
extends
Panel
{
export
class
NoPrizePanel
extends
Panel
{
share_share_go
(){
//
share_share_go(){
console
.
log
(
'share_share_go'
);
//
console.log('share_share_go');
}
//
}
get
groupNames
()
{
return
[
"noprize"
]
}
get
groupNames
()
{
return
[
"noprize"
]
}
get
skinName
()
{
return
"noprize"
}
get
skinName
()
{
return
"noprize"
}
...
@@ -30,6 +30,9 @@ export class NoPrizePanel extends Panel {
...
@@ -30,6 +30,9 @@ export class NoPrizePanel extends Panel {
}
}
protected
get
closeBtns
():
any
[]
{
protected
get
closeBtns
():
any
[]
{
return
[
getObject
(
this
,
'noprize_close'
)]
return
[
getObject
(
this
,
'noprize_ok'
),
getObject
(
this
,
'noprize_close'
)
]
}
}
}
}
project/src/panels/notEnoughMoney.ts
View file @
795b3837
...
@@ -6,8 +6,8 @@ import getObject from "../common/getObject";
...
@@ -6,8 +6,8 @@ import getObject from "../common/getObject";
let
section
;
let
section
;
export
class
notEnoughMoneyPanel
extends
Panel
{
export
class
notEnoughMoneyPanel
extends
Panel
{
share_share_go
(){
click_notEnoughMoney_btn
(){
console
.
log
(
'
share_share_go
'
);
console
.
log
(
'
click_notEnoughMoney_btn
'
);
}
}
get
groupNames
()
{
return
[
"notEnoughMoney"
]
}
get
groupNames
()
{
return
[
"notEnoughMoney"
]
}
...
@@ -17,16 +17,16 @@ export class notEnoughMoneyPanel extends Panel {
...
@@ -17,16 +17,16 @@ export class notEnoughMoneyPanel extends Panel {
super
.
initUi
();
super
.
initUi
();
var
skin
=
RES
.
getSkinDataByName
(
this
.
skinName
);
var
skin
=
RES
.
getSkinDataByName
(
this
.
skinName
);
this
.
position
.
set
(
skin
.
x
,
skin
.
y
);
this
.
position
.
set
(
skin
.
x
,
skin
.
y
);
// centerTextField(getObject(this,'cost
_tips'),496);
centerTextField
(
getObject
(
this
,
'notEnoughMoney
_tips'
),
496
);
}
}
initEvents
()
{
initEvents
()
{
super
.
initEvents
();
super
.
initEvents
();
// getObject(this, 'share_fail_btn').addEventListener(FYGE.MouseEvent.CLICK, this.share_share_go
, this);
getObject
(
this
,
'notEnoughMoney_btn'
).
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
click_notEnoughMoney_btn
,
this
);
}
}
removeEvents
()
{
removeEvents
()
{
super
.
removeEvents
();
super
.
removeEvents
();
// getObject(this, 'share_fail_btn').removeEventListener(FYGE.MouseEvent.CLICK, this.share_share_go
, this);
getObject
(
this
,
'notEnoughMoney_btn'
).
removeEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
this
.
click_notEnoughMoney_btn
,
this
);
}
}
protected
get
closeBtns
():
any
[]
{
protected
get
closeBtns
():
any
[]
{
...
...
project/src/panels/share.ts
View file @
795b3837
import
{
RES
}
from
"../../module/RES"
;
import
{
RES
}
from
"../../module/RES"
;
import
{
Panel
}
from
"../../module/views/Panel"
;
import
{
Panel
}
from
"../../module/views/Panel"
;
import
centerTextField
from
"../common/centerTextField"
;
import
getObject
from
"../common/getObject"
;
import
getObject
from
"../common/getObject"
;
import
{
Tools
}
from
"../Tools"
;
import
{
Tools
}
from
"../Tools"
;
import
{
getWebData
,
sendWebNet
}
from
"../WebNet"
;
import
{
getWebData
,
sendWebNet
}
from
"../WebNet"
;
...
@@ -9,7 +10,8 @@ let section;
...
@@ -9,7 +10,8 @@ let section;
export
class
SharePanel
extends
Panel
{
export
class
SharePanel
extends
Panel
{
share_share_go
(){
share_share_go
(){
console
.
log
(
'share'
);
console
.
log
(
'share_go'
);
this
.
hidePanel
();
}
}
get
groupNames
()
{
return
[
"share"
]
}
get
groupNames
()
{
return
[
"share"
]
}
get
skinName
()
{
return
"share"
}
get
skinName
()
{
return
"share"
}
...
@@ -18,6 +20,11 @@ export class SharePanel extends Panel {
...
@@ -18,6 +20,11 @@ export class SharePanel extends Panel {
super
.
initUi
();
super
.
initUi
();
var
skin
=
RES
.
getSkinDataByName
(
this
.
skinName
);
var
skin
=
RES
.
getSkinDataByName
(
this
.
skinName
);
this
.
position
.
set
(
skin
.
x
,
skin
.
y
);
this
.
position
.
set
(
skin
.
x
,
skin
.
y
);
centerTextField
(
getObject
(
this
,
'share_tips'
),
496
);
getObject
(
this
,
'share_tips'
).
text
=
`获得
${
1231233123
}
次拆盲盒机会`
}
}
...
...
project/src/panels/timesNotEnough.ts
View file @
795b3837
...
@@ -30,6 +30,6 @@ export class timesNotEnoughPanel extends Panel {
...
@@ -30,6 +30,6 @@ export class timesNotEnoughPanel extends Panel {
}
}
protected
get
closeBtns
():
any
[]
{
protected
get
closeBtns
():
any
[]
{
return
[
getObject
(
this
,
'timesNotEnough_close'
)]
return
[
getObject
(
this
,
'timesNotEnough_close'
)
,
getObject
(
this
,
'timesNotEnough_ok'
)
]
}
}
}
}
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