FreeKill/Fk/Common/Avatar.qml
notify be03b04ef0
小修复&Qml美化 (#308)
- 修复了虚拟牌点数相加的bug
- 修复cleaner出错直接爆炸
- QML的代码将宽度控制到80以内
2024-01-25 03:23:29 +08:00

22 lines
487 B
QML

import QtQuick
import Fk
Image {
property string general
width: 64
height: 64
source: SkinBank.getGeneralExtraPic(general, "avatar/")
?? SkinBank.getGeneralPicture(general)
// sourceSize.width: 250
// sourceSize.height: 292
property bool useSmallPic: !!SkinBank.getGeneralExtraPic(general, "avatar/")
sourceClipRect: useSmallPic ? undefined : Qt.rect(61, 0, 128, 128)
Rectangle {
anchors.fill: parent
color: "transparent"
border.width: 1
}
}