equal
deleted
inserted
replaced
1 import QtQuick 2.0 |
1 import QtQuick 2.0 |
|
2 import Hedgewars.Engine 1.0 |
2 |
3 |
3 Rectangle { |
4 Rectangle { |
4 id: pages |
5 id: pages |
5 width: 800 |
6 width: 800 |
6 height: 600 |
7 height: 600 |
8 property variant pagesList : [ |
9 property variant pagesList : [ |
9 "First" |
10 "First" |
10 , "LocalGame" |
11 , "LocalGame" |
11 , "GameConfig" |
12 , "GameConfig" |
12 , "Connect" |
13 , "Connect" |
|
14 , "LobbyPage" |
13 ]; |
15 ]; |
14 |
16 |
15 property string currentPage : "First"; |
17 property string currentPage : "First"; |
16 |
18 |
17 Repeater { |
19 Repeater { |
31 if (visible && !active) |
33 if (visible && !active) |
32 active = true; |
34 active = true; |
33 } |
35 } |
34 } |
36 } |
35 } |
37 } |
|
38 |
|
39 Connections { |
|
40 target: HWEngine |
|
41 onNetConnected: currentPage = "LobbyPage"; |
|
42 onNetDisconnected: currentPage = "First"; |
|
43 } |
36 } |
44 } |