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
676bc8ed
Commit
676bc8ed
authored
Aug 16, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
9bfa105d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
2 deletions
+13
-2
cost.ts
project/src/panels/cost.ts
+3
-1
timesNotEnough.ts
project/src/panels/timesNotEnough.ts
+2
-1
wait2.ts
project/src/panels/wait2.ts
+8
-0
No files found.
project/src/panels/cost.ts
View file @
676bc8ed
import
{
showPanel
}
from
"../../module/ctrls"
;
import
{
showPanel
,
wait
}
from
"../../module/ctrls"
;
import
{
RES
}
from
"../../module/RES"
;
import
{
layers
}
from
"../../module/views/layers"
;
import
{
Panel
}
from
"../../module/views/Panel"
;
...
...
@@ -11,6 +11,7 @@ import { WebNetName } from "../WebNetName";
import
{
NoPrizePanel
}
from
"./noprize"
;
import
{
notEnoughMoneyPanel
}
from
"./notEnoughMoney"
;
import
{
PrizePanel
}
from
"./prize"
;
import
{
waitAPI
}
from
"./wait2"
;
let
section
;
export
class
CostPanel
extends
Panel
{
...
...
@@ -39,6 +40,7 @@ export class CostPanel extends Panel {
if
(
indexResult
.
data
.
type
==
1
)
{
params
.
credits
=
indexResult
.
data
.
needCredits
;
result
=
await
sendWebNet
(
WebNetName
.
getCreditCost
,
params
);
await
waitAPI
(
500
);
if
(
!
result
.
success
)
{
btn
.
mouseEnable
=
true
;
return
;
...
...
project/src/panels/timesNotEnough.ts
View file @
676bc8ed
...
...
@@ -8,6 +8,7 @@ let section;
export
class
timesNotEnoughPanel
extends
Panel
{
hidePanel
(){
sendLog
(
"click"
,
8
);
this
.
stage
.
dispatchEvent
(
"restartEnterFrame"
,{});
super
.
hidePanel
();
}
...
...
@@ -17,7 +18,7 @@ export class timesNotEnoughPanel extends Panel {
initUi
()
{
super
.
initUi
();
sendLog
(
"
click
"
,
8
);
sendLog
(
"
exposure
"
,
8
);
var
skin
=
RES
.
getSkinDataByName
(
this
.
skinName
);
this
.
position
.
set
(
skin
.
x
,
skin
.
y
);
}
...
...
project/src/panels/wait2.ts
0 → 100644
View file @
676bc8ed
export
const
waitAPI
=
(
seconds
)
=>
{
return
new
Promise
(
r
=>
{
setTimeout
(()
=>
{
r
(
null
)
},
seconds
);
})
}
\ No newline at end of file
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