历史记录详情的加载逻辑修改
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m19s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m19s
This commit is contained in:
parent
c6cc9873f1
commit
4f14628521
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,4 +1,4 @@
|
||||
import { _decorator, Button, Color, Component, EventHandler, EventMouse, instantiate, isValid, JsonAsset, Label, math, Node, Prefab, ScrollView, sp, tween, UITransform, Vec3 } from 'cc';
|
||||
import { _decorator, Button, Color, Component, EventHandler, EventMouse, instantiate, isValid, JsonAsset, Label, math, Node, Prefab, ScrollView, sp, tween, UIOpacity, UITransform, Vec3 } from 'cc';
|
||||
import { getCsymbol, getHistory, getHistoryDetails, getLanguage } from 'db://assets/Main/Scripts/main/comm';
|
||||
import { fixNum, getTimezoneOffsetString, getTranslate, hideAllChildren, hideToBottom, showAllChildren, updateLang } from './Tools';
|
||||
const { ccclass, property } = _decorator;
|
||||
@ -381,6 +381,7 @@ export class History extends Component {
|
||||
console.log("clickItem, roundId = ", roundId)
|
||||
|
||||
const history_detail = instantiate(this.history_detail)
|
||||
history_detail.getComponent(UIOpacity).opacity = 0
|
||||
this.node_detail.addChild(history_detail)
|
||||
|
||||
let res = await getHistoryDetails({
|
||||
@ -393,6 +394,8 @@ export class History extends Component {
|
||||
|
||||
const self = this
|
||||
history_detail.position = new Vec3(1080, 0)
|
||||
history_detail.getComponent(UIOpacity).opacity = 255
|
||||
|
||||
tween(history_detail).to(0.2, { position: new Vec3(0, 0) })
|
||||
.call(() => {
|
||||
self.scheduleOnce(() => { comp.entryFinish() })
|
||||
|
||||
@ -759,15 +759,16 @@ export class HistoryDetail extends Component {
|
||||
showLoading() {
|
||||
this.loading.active = true
|
||||
let sk = this.loading.getComponent(sp.Skeleton)
|
||||
sk.paused = false
|
||||
sk.loop = true
|
||||
// sk.paused = false
|
||||
// sk.loop = true
|
||||
sk.setAnimation(0, 'loadingLoop')
|
||||
}
|
||||
|
||||
hideLoading() {
|
||||
let sk = this.loading.getComponent(sp.Skeleton)
|
||||
sk.paused = true
|
||||
sk.loop = false
|
||||
|
||||
// sk.paused = true
|
||||
// sk.loop = false
|
||||
sk.clearAnimations()
|
||||
this.loading.active = false
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user