qmlFrontend/qml/qmlFrontend/GameConfig.qml
branchqmlfrontend
changeset 10612 eb3c1a289a23
parent 10610 eadf2cea55e0
child 10616 20a2d5e6930a
--- a/qmlFrontend/qml/qmlFrontend/GameConfig.qml	Wed Dec 03 23:36:18 2014 +0300
+++ b/qmlFrontend/qml/qmlFrontend/GameConfig.qml	Thu Dec 04 00:34:40 2014 +0300
@@ -69,24 +69,38 @@
         }
     }
 
-/*    Rectangle {
-        x: 320
-        y: 16
-        width: 100
-        height: 256
-        color: "#15193a"
-        radius: 8
-        border.width: 4
-        border.color: "#eaea00"
-        Image {
-            id: themeImage
-            x: 0
-            y: 0
-            width: 64
-            height: 64
-            fillMode: Image.Pad
+    HWComboBox {
+        id: cbScript
+        x: 50
+        y: 256
+        width: 256
+        height: 64
+
+        model: scriptsModel
+        delegate: Rectangle {
+            height: 25
+            width: 100
+            color: "transparent"
+
+            property string itemIconSource: ""
+            property alias itemText: scriptName.text
+
+            Row {
+                //Image {id: themeIcon; width: height; height: parent.height; source: "image://theme/" + modelData}
+                Text {id: scriptName; text: modelData }
+            }
+
+            MouseArea {
+                 z: 1
+                 anchors.fill: parent
+                 onClicked: {
+                     cbScript.currentIndex = index
+                     HWEngine.setScript(scriptName.text)
+                 }
+            }
         }
-*/
+    }
+
 
     ListView {
         id: playingTeamsList