mirror of
https://github.com/Qsgs-Fans/FreeKill.git
synced 2024-11-16 03:32:34 +08:00
620780ac08
- 修双头武将的双将和头像 - 修客户端不知道别人阶段 - 修出牌高亮 - 修无懈响应不准 - 以&结尾的牌堆如手牌使用打出
57 lines
1.1 KiB
QML
57 lines
1.1 KiB
QML
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
import QtQuick
|
|
import QtQuick.Layouts
|
|
import Fk
|
|
|
|
Item {
|
|
id: root
|
|
width: bg.width
|
|
height: bg.height
|
|
|
|
Image {
|
|
id: bg
|
|
x: -32
|
|
height: 69
|
|
source: SkinBank.LOBBY_IMG_DIR + "profile"
|
|
fillMode: Image.PreserveAspectFit
|
|
}
|
|
|
|
RowLayout {
|
|
Item { Layout.preferredWidth: 16 }
|
|
|
|
Image {
|
|
Layout.preferredWidth: 64
|
|
Layout.preferredHeight: 64
|
|
source: SkinBank.getGeneralExtraPic(Self.avatar, "avatar/") ?? SkinBank.getGeneralPicture(Self.avatar)
|
|
// sourceSize.width: 250
|
|
// sourceSize.height: 292
|
|
sourceClipRect: sourceSize.width > 200 ? Qt.rect(61, 0, 128, 128) : undefined
|
|
|
|
Rectangle {
|
|
anchors.fill: parent
|
|
color: "transparent"
|
|
border.width: 1
|
|
}
|
|
}
|
|
|
|
Item { Layout.preferredWidth: 8 }
|
|
|
|
Text {
|
|
Layout.alignment: Qt.AlignTop
|
|
text: Self.screenName
|
|
font.pixelSize: 22
|
|
font.family: fontLibian.name
|
|
color: "#F0DFAF"
|
|
style: Text.Outline
|
|
}
|
|
}
|
|
|
|
TapHandler {
|
|
onTapped: {
|
|
lobby_dialog.sourceComponent = Qt.createComponent("EditProfile.qml");
|
|
lobby_drawer.open();
|
|
}
|
|
}
|
|
}
|