11424
|
1 |
import QtQuick 2.0
|
|
2 |
import Hedgewars.Engine 1.0
|
|
3 |
|
|
4 |
Rectangle {
|
|
5 |
HWButton {
|
|
6 |
id: btnBack
|
|
7 |
width: 40
|
|
8 |
height: 40
|
|
9 |
anchors.left: parent.left
|
|
10 |
anchors.bottom: parent.bottom
|
|
11 |
|
|
12 |
onClicked: HWEngine.partRoom("")
|
|
13 |
}
|
|
14 |
|
11426
|
15 |
GameConfig {
|
|
16 |
id: gameConfig
|
|
17 |
anchors.left: parent.left
|
|
18 |
anchors.top: parent.top
|
|
19 |
anchors.right: parent.right
|
|
20 |
anchors.bottom: roomChat.top
|
|
21 |
}
|
|
22 |
|
11424
|
23 |
Chat {
|
|
24 |
id: roomChat;
|
|
25 |
x: 0;
|
|
26 |
width: parent.width;
|
|
27 |
height: 250;
|
|
28 |
anchors.bottom: btnBack.top
|
|
29 |
|
|
30 |
Connections {
|
|
31 |
target: HWEngine
|
|
32 |
onRoomChatLine: roomChat.addChatLine(nickname, line)
|
|
33 |
onRoomClientAdded: roomChat.addClient(clientName)
|
|
34 |
onRoomClientRemoved: roomChat.removeClient(clientName, reason)
|
|
35 |
}
|
|
36 |
}
|
|
37 |
}
|