mirror of
https://github.com/Qsgs-Fans/FreeKill.git
synced 2024-11-16 11:42:45 +08:00
2acec5f20a
重组qml文件,使用qmldir文件实现模块化
23 lines
375 B
QML
23 lines
375 B
QML
import QtQuick
|
|
import Fk
|
|
|
|
Image {
|
|
id: root
|
|
property int value: 0
|
|
width: 20
|
|
height: 21
|
|
visible: (value > 0)
|
|
source: SkinBank.MAGATAMA_DIR + "shield"
|
|
|
|
Text {
|
|
text: value
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
y: -2
|
|
font.family: fontLibian.name
|
|
font.pixelSize: 20
|
|
font.bold: true
|
|
color: "white"
|
|
style: Text.Outline
|
|
}
|
|
}
|