mirror of
https://github.com/Qsgs-Fans/FreeKill.git
synced 2024-11-16 19:58:13 +08:00
afb537a661
* todo * todo.md * doc for move cards * weapons excluding qinggang * equip sound and emotion * remove silence on the starting of using skill * add audio skill for TMD equip * fixbug: running and observing * when PreUseCard is broken, jump to move cards to discardPile * doc for diy * addToPile * viewPile (WIP) * fix git bug * auto update packages when md5 fail * use thread when updating pack * correct status() handling * update fkp * remove PKGBUILD since it's presented in AUR repo * fix fkp md5 bug * extensible qml * set bigAnim's z to 999 * nioh sheild * lijian * now mod can return nil * if dmg.nature == nil then = normal * disable notifyUI when qWarning * fix lijian and gender problem
77 lines
1.4 KiB
QML
77 lines
1.4 KiB
QML
import QtQuick
|
|
import "../skin-bank.js" as SkinBank
|
|
|
|
Item {
|
|
id: root
|
|
property string skill_type
|
|
property string skill_name
|
|
signal finished()
|
|
|
|
PixmapAnimation {
|
|
id: typeAnim
|
|
anchors.centerIn: parent
|
|
source: SkinBank.PIXANIM_DIR + "skillInvoke/" + skill_type
|
|
keepAtStop: true
|
|
}
|
|
|
|
Text {
|
|
id: bigSkillName
|
|
anchors.centerIn: parent
|
|
anchors.horizontalCenterOffset: 100
|
|
text: skill_name
|
|
font.pixelSize: Math.max(24, 48 - (text.length - 2) * 6)
|
|
font.family: fontLi2.name
|
|
style: Text.Outline
|
|
color: "white"
|
|
opacity: 0
|
|
}
|
|
|
|
ParallelAnimation {
|
|
id: textAnim
|
|
PropertyAnimation {
|
|
target: bigSkillName
|
|
property: "opacity"
|
|
to: 1
|
|
easing.type: Easing.InQuart
|
|
duration: 200
|
|
}
|
|
|
|
PropertyAnimation {
|
|
target: bigSkillName
|
|
property: "anchors.horizontalCenterOffset"
|
|
to: 0
|
|
easing.type: Easing.InQuad
|
|
duration: 240
|
|
}
|
|
|
|
onFinished: {
|
|
pauseAnim.start();
|
|
}
|
|
}
|
|
|
|
SequentialAnimation {
|
|
id: pauseAnim
|
|
|
|
PauseAnimation {
|
|
duration: 1200
|
|
}
|
|
|
|
PropertyAnimation {
|
|
target: root
|
|
property: "opacity"
|
|
to: 0
|
|
duration: 200
|
|
easing.type: Easing.OutQuart
|
|
}
|
|
onFinished: {
|
|
root.visible = false;
|
|
root.finished();
|
|
}
|
|
}
|
|
|
|
Component.onCompleted: {
|
|
typeAnim.start();
|
|
textAnim.start();
|
|
}
|
|
}
|