FreeKill/qml/Pages/RoomElement/GameOverBox.qml
notify 0029949a40 Basiccard (#33)
* update nullification

* Slash

* kill player

* correct players to alive_players

* add log for changehp and dying

* usecard log & indicator

* setemotion, logevent

* fix distanceTo

* shutdown server when console start

* game over

* complete slash

* change format of flist.txt to avoid '\r\n'

* fix \r\n

* peach, zhiheng

* ask for peach
2022-12-20 12:51:54 +08:00

33 lines
615 B
QML

import QtQuick
import ".."
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 {
text: Backend.translate("$Winner").arg(Backend.translate(winner))
color: "#E4D5A0"
}
MetroButton {
text: Backend.translate("Back To Lobby")
anchors.horizontalCenter: parent.horizontalCenter
onClicked: {
ClientInstance.notifyServer("QuitRoom", "[]");
}
}
}
}