mirror of
https://github.com/Qsgs-Fans/FreeKill.git
synced 2024-11-16 11:42:45 +08:00
39 lines
968 B
QML
39 lines
968 B
QML
import QtQuick 2.15
|
|
import QtQuick.Controls 2.0
|
|
|
|
Item {
|
|
id: root
|
|
|
|
Frame {
|
|
id: join_server
|
|
anchors.centerIn: parent
|
|
Column {
|
|
spacing: 8
|
|
TextField {
|
|
id: server_addr
|
|
text: "127.0.0.1"
|
|
}
|
|
TextField {
|
|
text: "player"
|
|
}
|
|
Button {
|
|
text: "Join Server"
|
|
onClicked: {
|
|
mainWindow.busy = true;
|
|
toast.show("Connecting to host...");
|
|
Backend.joinServer(server_addr.text);
|
|
}
|
|
}
|
|
Button {
|
|
text: "Console start"
|
|
onClicked: {
|
|
mainWindow.busy = true;
|
|
toast.show("Connecting to host...");
|
|
Backend.startServer(9527);
|
|
Backend.joinServer("127.0.0.1");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|