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
fa7892fe
Commit
fa7892fe
authored
Aug 13, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
4cd9f191
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
cost.ts
project/src/panels/cost.ts
+4
-1
prize.ts
project/src/panels/prize.ts
+2
-0
No files found.
project/src/panels/cost.ts
View file @
fa7892fe
...
@@ -3,6 +3,7 @@ import { RES } from "../../module/RES";
...
@@ -3,6 +3,7 @@ import { RES } from "../../module/RES";
import
{
Panel
}
from
"../../module/views/Panel"
;
import
{
Panel
}
from
"../../module/views/Panel"
;
import
centerTextField
from
"../common/centerTextField"
;
import
centerTextField
from
"../common/centerTextField"
;
import
getObject
from
"../common/getObject"
;
import
getObject
from
"../common/getObject"
;
import
{
sendLog
}
from
"../WebNet"
;
import
{
PrizePanel
}
from
"./prize"
;
import
{
PrizePanel
}
from
"./prize"
;
let
section
;
let
section
;
...
@@ -13,9 +14,10 @@ export class CostPanel extends Panel {
...
@@ -13,9 +14,10 @@ export class CostPanel extends Panel {
getObject
(
this
,
"cost_tips"
).
text
=
`消耗
${
cost
}
积分拆开1个盲盒`
;
getObject
(
this
,
"cost_tips"
).
text
=
`消耗
${
cost
}
积分拆开1个盲盒`
;
}
}
cost_open
()
{
cost_open
()
{
sendLog
(
"click"
,
1
);
this
.
dispatchEvent
(
"stopIndexEnterFrame"
,
{
});
this
.
dispatchEvent
(
"stopIndexEnterFrame"
,
{
});
this
.
hidePanel
();
this
.
hidePanel
();
showPanel
(
PrizePanel
)
showPanel
(
PrizePanel
)
}
}
get
groupNames
()
{
get
groupNames
()
{
...
@@ -30,6 +32,7 @@ export class CostPanel extends Panel {
...
@@ -30,6 +32,7 @@ export class CostPanel extends Panel {
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
,
"cost_tips"
),
496
);
sendLog
(
"exposure"
,
1
);
}
}
initEvents
()
{
initEvents
()
{
...
...
project/src/panels/prize.ts
View file @
fa7892fe
...
@@ -6,6 +6,7 @@ import { showPanel } from "../../module/ctrls";
...
@@ -6,6 +6,7 @@ import { showPanel } from "../../module/ctrls";
import
{
getImage
}
from
"../common/getImage"
;
import
{
getImage
}
from
"../common/getImage"
;
import
getObject
from
"../common/getObject"
;
import
getObject
from
"../common/getObject"
;
import
{
CostPanel
}
from
"./cost"
;
import
{
CostPanel
}
from
"./cost"
;
import
{
sendLog
}
from
"../WebNet"
;
let
section
;
let
section
;
export
class
PrizePanel
extends
Panel
{
export
class
PrizePanel
extends
Panel
{
...
@@ -31,6 +32,7 @@ export class PrizePanel extends Panel {
...
@@ -31,6 +32,7 @@ export class PrizePanel extends Panel {
prizeContainer
:
FYGE
.
Sprite
;
prizeContainer
:
FYGE
.
Sprite
;
initUi
()
{
initUi
()
{
super
.
initUi
();
super
.
initUi
();
sendLog
(
"exposure"
,
1
);
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
,
'prize_name'
),
731
);
centerTextField
(
getObject
(
this
,
'prize_name'
),
731
);
...
...
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