# HG changeset patch
# User unc0rr
# Date 1448209753 -10800
# Node ID ab6a6d9ebfc05d21e3b445154fc2cda7fe4586d3
# Parent 2947f06e8533cc6eefaa121ea0eb6cf26ec1e6ec
Small ui rework
diff -r 2947f06e8533 -r ab6a6d9ebfc0 qmlFrontend/qml/qmlFrontend/GameConfig.qml
--- a/qmlFrontend/qml/qmlFrontend/GameConfig.qml Sun Nov 22 18:06:32 2015 +0300
+++ b/qmlFrontend/qml/qmlFrontend/GameConfig.qml Sun Nov 22 19:29:13 2015 +0300
@@ -3,10 +3,11 @@
Rectangle {
+ Column {
+ spacing: 8
+
HWButton {
id: btnPreview
- x: 50
- y: 16
width: 256
height: 128
@@ -27,20 +28,8 @@
}
}
- HWButton {
- id: btnRunGame
- x: 600
- y: 440
- width: 32
- height: 32
-
- onClicked: HWEngine.runLocalGame()
- }
-
HWComboBox {
id: cbTheme
- x: 50
- y: 160
width: 256
height: 64
@@ -71,10 +60,8 @@
HWComboBox {
id: cbScript
- x: 50
- y: 256
width: 256
- height: 64
+ height: 32
model: scriptsModel
delegate: Rectangle {
@@ -103,10 +90,8 @@
HWComboBox {
id: cbScheme
- x: 50
- y: 336
width: 256
- height: 64
+ height: 32
model: schemesModel
delegate: Rectangle {
@@ -136,10 +121,8 @@
HWComboBox {
id: cbAmmo
- x: 50
- y: 416
width: 256
- height: 64
+ height: 32
model: ammosModel
delegate: Rectangle {
@@ -165,6 +148,7 @@
}
}
}
+ }
ListView {
id: playingTeamsList
diff -r 2947f06e8533 -r ab6a6d9ebfc0 qmlFrontend/qml/qmlFrontend/HWComboBox.qml
--- a/qmlFrontend/qml/qmlFrontend/HWComboBox.qml Sun Nov 22 18:06:32 2015 +0300
+++ b/qmlFrontend/qml/qmlFrontend/HWComboBox.qml Sun Nov 22 19:29:13 2015 +0300
@@ -50,6 +50,7 @@
Text {
id: cbText
height: parent.height
+ color: "#f3e520"
}
}
diff -r 2947f06e8533 -r ab6a6d9ebfc0 qmlFrontend/qml/qmlFrontend/LocalGame.qml
--- a/qmlFrontend/qml/qmlFrontend/LocalGame.qml Sun Nov 22 18:06:32 2015 +0300
+++ b/qmlFrontend/qml/qmlFrontend/LocalGame.qml Sun Nov 22 19:29:13 2015 +0300
@@ -19,6 +19,16 @@
width: 150
height: 150
- onClicked: pages.currentPage = "GameConfig"
+ onClicked: pages.currentPage = "Multiplayer"
+ }
+
+ HWButton {
+ id: btnBack
+ width: 40
+ height: 40
+ anchors.bottom: parent.bottom
+ anchors.left: parent.left
+
+ onClicked: pages.currentPage = "First"
}
}
diff -r 2947f06e8533 -r ab6a6d9ebfc0 qmlFrontend/qml/qmlFrontend/Multiplayer.qml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/qmlFrontend/qml/qmlFrontend/Multiplayer.qml Sun Nov 22 19:29:13 2015 +0300
@@ -0,0 +1,32 @@
+import QtQuick 2.0
+import Hedgewars.Engine 1.0
+
+Item {
+ GameConfig {
+ anchors.left: parent.left
+ anchors.top: parent.top
+ anchors.right: parent.right
+ anchors.bottom: btnRunGame.top
+ }
+
+ HWButton {
+ id: btnBack
+ width: 40
+ height: 40
+ anchors.bottom: parent.bottom
+ anchors.left: parent.left
+
+ onClicked: pages.currentPage = "LocalGame"
+ }
+
+ HWButton {
+ id: btnRunGame
+ width: 40
+ height: 40
+ anchors.bottom: parent.bottom
+ anchors.right: parent.right
+
+ onClicked: HWEngine.runLocalGame()
+ }
+}
+
diff -r 2947f06e8533 -r ab6a6d9ebfc0 qmlFrontend/qml/qmlFrontend/Room.qml
--- a/qmlFrontend/qml/qmlFrontend/Room.qml Sun Nov 22 18:06:32 2015 +0300
+++ b/qmlFrontend/qml/qmlFrontend/Room.qml Sun Nov 22 19:29:13 2015 +0300
@@ -12,6 +12,14 @@
onClicked: HWEngine.partRoom("")
}
+ GameConfig {
+ id: gameConfig
+ anchors.left: parent.left
+ anchors.top: parent.top
+ anchors.right: parent.right
+ anchors.bottom: roomChat.top
+ }
+
Chat {
id: roomChat;
x: 0;
diff -r 2947f06e8533 -r ab6a6d9ebfc0 qmlFrontend/qml/qmlFrontend/main.qml
--- a/qmlFrontend/qml/qmlFrontend/main.qml Sun Nov 22 18:06:32 2015 +0300
+++ b/qmlFrontend/qml/qmlFrontend/main.qml Sun Nov 22 19:29:13 2015 +0300
@@ -9,7 +9,7 @@
property variant pagesList : [
"First"
, "LocalGame"
- , "GameConfig"
+ , "Multiplayer"
, "Connect"
, "Lobby"
, "Room"
diff -r 2947f06e8533 -r ab6a6d9ebfc0 qmlFrontend/qmlFrontend.qrc
--- a/qmlFrontend/qmlFrontend.qrc Sun Nov 22 18:06:32 2015 +0300
+++ b/qmlFrontend/qmlFrontend.qrc Sun Nov 22 19:29:13 2015 +0300
@@ -10,5 +10,6 @@
qml/qmlFrontend/Chat.qml
qml/qmlFrontend/Room.qml
qml/qmlFrontend/Lobby.qml
+ qml/qmlFrontend/Multiplayer.qml