2023-04-09 05:35:35 +00:00
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2022-12-20 04:51:54 +00:00
|
|
|
import QtQuick
|
2023-05-19 02:08:36 +00:00
|
|
|
import Fk.Pages
|
2022-12-20 04:51:54 +00:00
|
|
|
|
|
|
|
GraphicsBox {
|
|
|
|
property string winner: ""
|
|
|
|
|
|
|
|
id: root
|
|
|
|
title.text: Backend.translate("$GameOver")
|
|
|
|
width: Math.max(140, body.width + 20)
|
|
|
|
height: body.height + title.height + 20
|
|
|
|
|
|
|
|
Column {
|
|
|
|
id: body
|
|
|
|
x: 10
|
|
|
|
y: title.height + 5
|
|
|
|
spacing: 10
|
|
|
|
|
|
|
|
Text {
|
2023-03-20 06:53:56 +00:00
|
|
|
text: winner !== "" ? Backend.translate("$Winner").arg(Backend.translate(winner)) : Backend.translate("$NoWinner")
|
2022-12-20 04:51:54 +00:00
|
|
|
color: "#E4D5A0"
|
|
|
|
}
|
|
|
|
|
|
|
|
MetroButton {
|
|
|
|
text: Backend.translate("Back To Lobby")
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
|
|
|
|
onClicked: {
|
|
|
|
ClientInstance.notifyServer("QuitRoom", "[]");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|