qmlFrontend/qml/qmlFrontend/GameConfig.qml
author sheepluva
Sun, 01 May 2016 15:58:19 +0200
branchqmlfrontend
changeset 11786 0aa4b3d02cba
parent 11443 5182d44fb733
child 11787 bcba7938ccb5
permissions -rw-r--r--
qmlfrontend: tweak map preview a little in an attempt to buy back unC0Rr's <3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10422
4cf23d4c7624 - Pages
unc0rr
parents:
diff changeset
     1
import QtQuick 2.0
4cf23d4c7624 - Pages
unc0rr
parents:
diff changeset
     2
import Hedgewars.Engine 1.0
4cf23d4c7624 - Pages
unc0rr
parents:
diff changeset
     3
10442
c58db813240b Load and show local teams list
unc0rr
parents: 10436
diff changeset
     4
10422
4cf23d4c7624 - Pages
unc0rr
parents:
diff changeset
     5
Rectangle {
11426
ab6a6d9ebfc0 Small ui rework
unc0rr
parents: 10888
diff changeset
     6
    Column {
ab6a6d9ebfc0 Small ui rework
unc0rr
parents: 10888
diff changeset
     7
        spacing: 8
ab6a6d9ebfc0 Small ui rework
unc0rr
parents: 10888
diff changeset
     8
10422
4cf23d4c7624 - Pages
unc0rr
parents:
diff changeset
     9
    HWButton {
4cf23d4c7624 - Pages
unc0rr
parents:
diff changeset
    10
        id: btnPreview
11786
0aa4b3d02cba qmlfrontend: tweak map preview a little in an attempt to buy back unC0Rr's <3
sheepluva
parents: 11443
diff changeset
    11
        // this, as well as the positions of images, seems to have the border thickness (3px) into account
0aa4b3d02cba qmlfrontend: tweak map preview a little in an attempt to buy back unC0Rr's <3
sheepluva
parents: 11443
diff changeset
    12
        width: 262
0aa4b3d02cba qmlfrontend: tweak map preview a little in an attempt to buy back unC0Rr's <3
sheepluva
parents: 11443
diff changeset
    13
        height: 134
10422
4cf23d4c7624 - Pages
unc0rr
parents:
diff changeset
    14
10432
b0abef0ee78c Quick Game PoC
unc0rr
parents: 10428
diff changeset
    15
        onClicked: HWEngine.getPreview()
10422
4cf23d4c7624 - Pages
unc0rr
parents:
diff changeset
    16
4cf23d4c7624 - Pages
unc0rr
parents:
diff changeset
    17
        Connections {
4cf23d4c7624 - Pages
unc0rr
parents:
diff changeset
    18
            target: HWEngine
11786
0aa4b3d02cba qmlfrontend: tweak map preview a little in an attempt to buy back unC0Rr's <3
sheepluva
parents: 11443
diff changeset
    19
            onPreviewImageChanged: {
0aa4b3d02cba qmlfrontend: tweak map preview a little in an attempt to buy back unC0Rr's <3
sheepluva
parents: 11443
diff changeset
    20
                previewImage.visible = true
0aa4b3d02cba qmlfrontend: tweak map preview a little in an attempt to buy back unC0Rr's <3
sheepluva
parents: 11443
diff changeset
    21
                previewImage.source = "image://preview/image"
0aa4b3d02cba qmlfrontend: tweak map preview a little in an attempt to buy back unC0Rr's <3
sheepluva
parents: 11443
diff changeset
    22
                previewWaitImage.visible = false
0aa4b3d02cba qmlfrontend: tweak map preview a little in an attempt to buy back unC0Rr's <3
sheepluva
parents: 11443
diff changeset
    23
            }
0aa4b3d02cba qmlfrontend: tweak map preview a little in an attempt to buy back unC0Rr's <3
sheepluva
parents: 11443
diff changeset
    24
            onPreviewIsRendering: {
0aa4b3d02cba qmlfrontend: tweak map preview a little in an attempt to buy back unC0Rr's <3
sheepluva
parents: 11443
diff changeset
    25
                previewImage.source = ""
0aa4b3d02cba qmlfrontend: tweak map preview a little in an attempt to buy back unC0Rr's <3
sheepluva
parents: 11443
diff changeset
    26
                previewImage.visible = false
0aa4b3d02cba qmlfrontend: tweak map preview a little in an attempt to buy back unC0Rr's <3
sheepluva
parents: 11443
diff changeset
    27
                previewWaitImage.visible = true
0aa4b3d02cba qmlfrontend: tweak map preview a little in an attempt to buy back unC0Rr's <3
sheepluva
parents: 11443
diff changeset
    28
            }
0aa4b3d02cba qmlfrontend: tweak map preview a little in an attempt to buy back unC0Rr's <3
sheepluva
parents: 11443
diff changeset
    29
        }
0aa4b3d02cba qmlfrontend: tweak map preview a little in an attempt to buy back unC0Rr's <3
sheepluva
parents: 11443
diff changeset
    30
0aa4b3d02cba qmlfrontend: tweak map preview a little in an attempt to buy back unC0Rr's <3
sheepluva
parents: 11443
diff changeset
    31
        Image {
0aa4b3d02cba qmlfrontend: tweak map preview a little in an attempt to buy back unC0Rr's <3
sheepluva
parents: 11443
diff changeset
    32
            id: previewBackground
0aa4b3d02cba qmlfrontend: tweak map preview a little in an attempt to buy back unC0Rr's <3
sheepluva
parents: 11443
diff changeset
    33
            x: 3
0aa4b3d02cba qmlfrontend: tweak map preview a little in an attempt to buy back unC0Rr's <3
sheepluva
parents: 11443
diff changeset
    34
            y: 3
0aa4b3d02cba qmlfrontend: tweak map preview a little in an attempt to buy back unC0Rr's <3
sheepluva
parents: 11443
diff changeset
    35
            width: 256
0aa4b3d02cba qmlfrontend: tweak map preview a little in an attempt to buy back unC0Rr's <3
sheepluva
parents: 11443
diff changeset
    36
            height: 128
0aa4b3d02cba qmlfrontend: tweak map preview a little in an attempt to buy back unC0Rr's <3
sheepluva
parents: 11443
diff changeset
    37
            cache: true
0aa4b3d02cba qmlfrontend: tweak map preview a little in an attempt to buy back unC0Rr's <3
sheepluva
parents: 11443
diff changeset
    38
            source: "qrc:/res/prevBg.png"
10422
4cf23d4c7624 - Pages
unc0rr
parents:
diff changeset
    39
        }
10434
1614b13ad35e Themes model, also add some files I forgot to add previously
unc0rr
parents: 10432
diff changeset
    40
1614b13ad35e Themes model, also add some files I forgot to add previously
unc0rr
parents: 10432
diff changeset
    41
        Image {
1614b13ad35e Themes model, also add some files I forgot to add previously
unc0rr
parents: 10432
diff changeset
    42
            id: previewImage
11786
0aa4b3d02cba qmlfrontend: tweak map preview a little in an attempt to buy back unC0Rr's <3
sheepluva
parents: 11443
diff changeset
    43
            x: 3
0aa4b3d02cba qmlfrontend: tweak map preview a little in an attempt to buy back unC0Rr's <3
sheepluva
parents: 11443
diff changeset
    44
            y: 3
10434
1614b13ad35e Themes model, also add some files I forgot to add previously
unc0rr
parents: 10432
diff changeset
    45
            width: 256
1614b13ad35e Themes model, also add some files I forgot to add previously
unc0rr
parents: 10432
diff changeset
    46
            height: 128
1614b13ad35e Themes model, also add some files I forgot to add previously
unc0rr
parents: 10432
diff changeset
    47
            cache: false
11786
0aa4b3d02cba qmlfrontend: tweak map preview a little in an attempt to buy back unC0Rr's <3
sheepluva
parents: 11443
diff changeset
    48
            source: ""
0aa4b3d02cba qmlfrontend: tweak map preview a little in an attempt to buy back unC0Rr's <3
sheepluva
parents: 11443
diff changeset
    49
        }
0aa4b3d02cba qmlfrontend: tweak map preview a little in an attempt to buy back unC0Rr's <3
sheepluva
parents: 11443
diff changeset
    50
0aa4b3d02cba qmlfrontend: tweak map preview a little in an attempt to buy back unC0Rr's <3
sheepluva
parents: 11443
diff changeset
    51
        Image {
0aa4b3d02cba qmlfrontend: tweak map preview a little in an attempt to buy back unC0Rr's <3
sheepluva
parents: 11443
diff changeset
    52
            id: previewWaitImage
0aa4b3d02cba qmlfrontend: tweak map preview a little in an attempt to buy back unC0Rr's <3
sheepluva
parents: 11443
diff changeset
    53
            x: 117
0aa4b3d02cba qmlfrontend: tweak map preview a little in an attempt to buy back unC0Rr's <3
sheepluva
parents: 11443
diff changeset
    54
            y: 53
0aa4b3d02cba qmlfrontend: tweak map preview a little in an attempt to buy back unC0Rr's <3
sheepluva
parents: 11443
diff changeset
    55
            width: 26
0aa4b3d02cba qmlfrontend: tweak map preview a little in an attempt to buy back unC0Rr's <3
sheepluva
parents: 11443
diff changeset
    56
            height: 26
0aa4b3d02cba qmlfrontend: tweak map preview a little in an attempt to buy back unC0Rr's <3
sheepluva
parents: 11443
diff changeset
    57
            cache: true
11434
23912c93935a - Implement engine runs queue
unc0rr
parents: 11433
diff changeset
    58
            source: "qrc:/res/iconTime.png"
10434
1614b13ad35e Themes model, also add some files I forgot to add previously
unc0rr
parents: 10432
diff changeset
    59
        }
10422
4cf23d4c7624 - Pages
unc0rr
parents:
diff changeset
    60
    }
4cf23d4c7624 - Pages
unc0rr
parents:
diff changeset
    61
10519
af019fa70080 Attempt on a custom combobox
unc0rr
parents: 10456
diff changeset
    62
    HWComboBox {
10608
b85759f2ba18 Some more progress at custom combobox
unc0rr
parents: 10519
diff changeset
    63
        id: cbTheme
10610
eadf2cea55e0 Finish combobox implementation (except for visual part)
unc0rr
parents: 10608
diff changeset
    64
        width: 256
eadf2cea55e0 Finish combobox implementation (except for visual part)
unc0rr
parents: 10608
diff changeset
    65
        height: 64
10519
af019fa70080 Attempt on a custom combobox
unc0rr
parents: 10456
diff changeset
    66
af019fa70080 Attempt on a custom combobox
unc0rr
parents: 10456
diff changeset
    67
        model: themesModel
af019fa70080 Attempt on a custom combobox
unc0rr
parents: 10456
diff changeset
    68
        delegate: Rectangle {
af019fa70080 Attempt on a custom combobox
unc0rr
parents: 10456
diff changeset
    69
            height: 25
af019fa70080 Attempt on a custom combobox
unc0rr
parents: 10456
diff changeset
    70
            width: 100
af019fa70080 Attempt on a custom combobox
unc0rr
parents: 10456
diff changeset
    71
            color: "transparent"
10610
eadf2cea55e0 Finish combobox implementation (except for visual part)
unc0rr
parents: 10608
diff changeset
    72
eadf2cea55e0 Finish combobox implementation (except for visual part)
unc0rr
parents: 10608
diff changeset
    73
            property alias itemIconSource: themeIcon.source
eadf2cea55e0 Finish combobox implementation (except for visual part)
unc0rr
parents: 10608
diff changeset
    74
            property alias itemText: themeName.text
eadf2cea55e0 Finish combobox implementation (except for visual part)
unc0rr
parents: 10608
diff changeset
    75
10608
b85759f2ba18 Some more progress at custom combobox
unc0rr
parents: 10519
diff changeset
    76
            Row {
10610
eadf2cea55e0 Finish combobox implementation (except for visual part)
unc0rr
parents: 10608
diff changeset
    77
                Image {id: themeIcon; width: height; height: parent.height; source: "image://theme/" + modelData}
10608
b85759f2ba18 Some more progress at custom combobox
unc0rr
parents: 10519
diff changeset
    78
                Text {id: themeName; text: modelData }
b85759f2ba18 Some more progress at custom combobox
unc0rr
parents: 10519
diff changeset
    79
            }
10610
eadf2cea55e0 Finish combobox implementation (except for visual part)
unc0rr
parents: 10608
diff changeset
    80
10519
af019fa70080 Attempt on a custom combobox
unc0rr
parents: 10456
diff changeset
    81
            MouseArea {
af019fa70080 Attempt on a custom combobox
unc0rr
parents: 10456
diff changeset
    82
                 z: 1
af019fa70080 Attempt on a custom combobox
unc0rr
parents: 10456
diff changeset
    83
                 anchors.fill: parent
af019fa70080 Attempt on a custom combobox
unc0rr
parents: 10456
diff changeset
    84
                 onClicked: {
10608
b85759f2ba18 Some more progress at custom combobox
unc0rr
parents: 10519
diff changeset
    85
                     cbTheme.currentIndex = index
10519
af019fa70080 Attempt on a custom combobox
unc0rr
parents: 10456
diff changeset
    86
                     HWEngine.setTheme(themeName.text)
af019fa70080 Attempt on a custom combobox
unc0rr
parents: 10456
diff changeset
    87
                 }
af019fa70080 Attempt on a custom combobox
unc0rr
parents: 10456
diff changeset
    88
            }
11437
6e641b5453f9 Accept ammo scheme from network
unc0rr
parents: 11434
diff changeset
    89
        }
11432
97e3e62ea5f9 Update seed, theme and script from net in UI
unc0rr
parents: 11426
diff changeset
    90
11437
6e641b5453f9 Accept ammo scheme from network
unc0rr
parents: 11434
diff changeset
    91
        Connections {
6e641b5453f9 Accept ammo scheme from network
unc0rr
parents: 11434
diff changeset
    92
            target: HWEngine
6e641b5453f9 Accept ammo scheme from network
unc0rr
parents: 11434
diff changeset
    93
            onThemeChanged: cbTheme.showItem({"iconSource" : "image://theme/" + theme, "text" : theme});
10519
af019fa70080 Attempt on a custom combobox
unc0rr
parents: 10456
diff changeset
    94
        }
af019fa70080 Attempt on a custom combobox
unc0rr
parents: 10456
diff changeset
    95
    }
af019fa70080 Attempt on a custom combobox
unc0rr
parents: 10456
diff changeset
    96
10612
eb3c1a289a23 Script combobox.wiki
unc0rr
parents: 10610
diff changeset
    97
    HWComboBox {
eb3c1a289a23 Script combobox.wiki
unc0rr
parents: 10610
diff changeset
    98
        id: cbScript
eb3c1a289a23 Script combobox.wiki
unc0rr
parents: 10610
diff changeset
    99
        width: 256
11426
ab6a6d9ebfc0 Small ui rework
unc0rr
parents: 10888
diff changeset
   100
        height: 32
10612
eb3c1a289a23 Script combobox.wiki
unc0rr
parents: 10610
diff changeset
   101
eb3c1a289a23 Script combobox.wiki
unc0rr
parents: 10610
diff changeset
   102
        model: scriptsModel
eb3c1a289a23 Script combobox.wiki
unc0rr
parents: 10610
diff changeset
   103
        delegate: Rectangle {
eb3c1a289a23 Script combobox.wiki
unc0rr
parents: 10610
diff changeset
   104
            height: 25
eb3c1a289a23 Script combobox.wiki
unc0rr
parents: 10610
diff changeset
   105
            width: 100
eb3c1a289a23 Script combobox.wiki
unc0rr
parents: 10610
diff changeset
   106
            color: "transparent"
eb3c1a289a23 Script combobox.wiki
unc0rr
parents: 10610
diff changeset
   107
eb3c1a289a23 Script combobox.wiki
unc0rr
parents: 10610
diff changeset
   108
            property string itemIconSource: ""
eb3c1a289a23 Script combobox.wiki
unc0rr
parents: 10610
diff changeset
   109
            property alias itemText: scriptName.text
eb3c1a289a23 Script combobox.wiki
unc0rr
parents: 10610
diff changeset
   110
eb3c1a289a23 Script combobox.wiki
unc0rr
parents: 10610
diff changeset
   111
            Row {
eb3c1a289a23 Script combobox.wiki
unc0rr
parents: 10610
diff changeset
   112
                //Image {id: themeIcon; width: height; height: parent.height; source: "image://theme/" + modelData}
eb3c1a289a23 Script combobox.wiki
unc0rr
parents: 10610
diff changeset
   113
                Text {id: scriptName; text: modelData }
eb3c1a289a23 Script combobox.wiki
unc0rr
parents: 10610
diff changeset
   114
            }
eb3c1a289a23 Script combobox.wiki
unc0rr
parents: 10610
diff changeset
   115
eb3c1a289a23 Script combobox.wiki
unc0rr
parents: 10610
diff changeset
   116
            MouseArea {
eb3c1a289a23 Script combobox.wiki
unc0rr
parents: 10610
diff changeset
   117
                 z: 1
eb3c1a289a23 Script combobox.wiki
unc0rr
parents: 10610
diff changeset
   118
                 anchors.fill: parent
eb3c1a289a23 Script combobox.wiki
unc0rr
parents: 10610
diff changeset
   119
                 onClicked: {
eb3c1a289a23 Script combobox.wiki
unc0rr
parents: 10610
diff changeset
   120
                     cbScript.currentIndex = index
eb3c1a289a23 Script combobox.wiki
unc0rr
parents: 10610
diff changeset
   121
                     HWEngine.setScript(scriptName.text)
eb3c1a289a23 Script combobox.wiki
unc0rr
parents: 10610
diff changeset
   122
                 }
eb3c1a289a23 Script combobox.wiki
unc0rr
parents: 10610
diff changeset
   123
            }
11437
6e641b5453f9 Accept ammo scheme from network
unc0rr
parents: 11434
diff changeset
   124
        }
6e641b5453f9 Accept ammo scheme from network
unc0rr
parents: 11434
diff changeset
   125
        Connections {
6e641b5453f9 Accept ammo scheme from network
unc0rr
parents: 11434
diff changeset
   126
            target: HWEngine
6e641b5453f9 Accept ammo scheme from network
unc0rr
parents: 11434
diff changeset
   127
            onScriptChanged: cbScript.showItem({"iconSource" : "", "text" : script});
10436
084e046f6bd5 flib provides theme icons, qmlFrontend shows them
unc0rr
parents: 10434
diff changeset
   128
        }
10612
eb3c1a289a23 Script combobox.wiki
unc0rr
parents: 10610
diff changeset
   129
    }
eb3c1a289a23 Script combobox.wiki
unc0rr
parents: 10610
diff changeset
   130
10616
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents: 10612
diff changeset
   131
    HWComboBox {
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents: 10612
diff changeset
   132
        id: cbScheme
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents: 10612
diff changeset
   133
        width: 256
11426
ab6a6d9ebfc0 Small ui rework
unc0rr
parents: 10888
diff changeset
   134
        height: 32
10616
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents: 10612
diff changeset
   135
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents: 10612
diff changeset
   136
        model: schemesModel
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents: 10612
diff changeset
   137
        delegate: Rectangle {
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents: 10612
diff changeset
   138
            height: 25
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents: 10612
diff changeset
   139
            width: 100
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents: 10612
diff changeset
   140
            color: "transparent"
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents: 10612
diff changeset
   141
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents: 10612
diff changeset
   142
            property string itemIconSource: ""
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents: 10612
diff changeset
   143
            property alias itemText: schemeName.text
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents: 10612
diff changeset
   144
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents: 10612
diff changeset
   145
            Row {
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents: 10612
diff changeset
   146
                //Image {id: themeIcon; width: height; height: parent.height; source: "image://theme/" + modelData}
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents: 10612
diff changeset
   147
                Text {id: schemeName; text: modelData }
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents: 10612
diff changeset
   148
            }
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents: 10612
diff changeset
   149
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents: 10612
diff changeset
   150
            MouseArea {
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents: 10612
diff changeset
   151
                 z: 1
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents: 10612
diff changeset
   152
                 anchors.fill: parent
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents: 10612
diff changeset
   153
                 onClicked: {
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents: 10612
diff changeset
   154
                     cbScheme.currentIndex = index
10819
57e21f7621b0 Send selected scheme config on engine initialization (WIP)
unc0rr
parents: 10616
diff changeset
   155
                     HWEngine.setScheme(schemeName.text)
10616
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents: 10612
diff changeset
   156
                 }
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents: 10612
diff changeset
   157
            }
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents: 10612
diff changeset
   158
        }
11440
330c14f4ba69 Accept scheme from net
unc0rr
parents: 11437
diff changeset
   159
        Connections {
330c14f4ba69 Accept scheme from net
unc0rr
parents: 11437
diff changeset
   160
            target: HWEngine
330c14f4ba69 Accept scheme from net
unc0rr
parents: 11437
diff changeset
   161
            onSchemeChanged: cbScheme.showItem({"iconSource" : "", "text" : scheme});
330c14f4ba69 Accept scheme from net
unc0rr
parents: 11437
diff changeset
   162
        }
10616
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents: 10612
diff changeset
   163
    }
20a2d5e6930a Schemes list combobox with their names
unc0rr
parents: 10612
diff changeset
   164
10442
c58db813240b Load and show local teams list
unc0rr
parents: 10436
diff changeset
   165
10823
1ff3dd3705b1 Introducing cbAmmo
unc0rr
parents: 10819
diff changeset
   166
    HWComboBox {
1ff3dd3705b1 Introducing cbAmmo
unc0rr
parents: 10819
diff changeset
   167
        id: cbAmmo
1ff3dd3705b1 Introducing cbAmmo
unc0rr
parents: 10819
diff changeset
   168
        width: 256
11426
ab6a6d9ebfc0 Small ui rework
unc0rr
parents: 10888
diff changeset
   169
        height: 32
10823
1ff3dd3705b1 Introducing cbAmmo
unc0rr
parents: 10819
diff changeset
   170
10888
a04e04aaf599 Ammo schemes list, almost works
unc0rr
parents: 10823
diff changeset
   171
        model: ammosModel
10823
1ff3dd3705b1 Introducing cbAmmo
unc0rr
parents: 10819
diff changeset
   172
        delegate: Rectangle {
1ff3dd3705b1 Introducing cbAmmo
unc0rr
parents: 10819
diff changeset
   173
            height: 25
1ff3dd3705b1 Introducing cbAmmo
unc0rr
parents: 10819
diff changeset
   174
            width: 100
1ff3dd3705b1 Introducing cbAmmo
unc0rr
parents: 10819
diff changeset
   175
            color: "transparent"
1ff3dd3705b1 Introducing cbAmmo
unc0rr
parents: 10819
diff changeset
   176
1ff3dd3705b1 Introducing cbAmmo
unc0rr
parents: 10819
diff changeset
   177
            property string itemIconSource: ""
1ff3dd3705b1 Introducing cbAmmo
unc0rr
parents: 10819
diff changeset
   178
            property alias itemText: ammoName.text
1ff3dd3705b1 Introducing cbAmmo
unc0rr
parents: 10819
diff changeset
   179
1ff3dd3705b1 Introducing cbAmmo
unc0rr
parents: 10819
diff changeset
   180
            Row {
1ff3dd3705b1 Introducing cbAmmo
unc0rr
parents: 10819
diff changeset
   181
                //Image {id: themeIcon; width: height; height: parent.height; source: "image://theme/" + modelData}
1ff3dd3705b1 Introducing cbAmmo
unc0rr
parents: 10819
diff changeset
   182
                Text {id: ammoName; text: modelData }
1ff3dd3705b1 Introducing cbAmmo
unc0rr
parents: 10819
diff changeset
   183
            }
1ff3dd3705b1 Introducing cbAmmo
unc0rr
parents: 10819
diff changeset
   184
1ff3dd3705b1 Introducing cbAmmo
unc0rr
parents: 10819
diff changeset
   185
            MouseArea {
1ff3dd3705b1 Introducing cbAmmo
unc0rr
parents: 10819
diff changeset
   186
                 z: 1
1ff3dd3705b1 Introducing cbAmmo
unc0rr
parents: 10819
diff changeset
   187
                 anchors.fill: parent
1ff3dd3705b1 Introducing cbAmmo
unc0rr
parents: 10819
diff changeset
   188
                 onClicked: {
1ff3dd3705b1 Introducing cbAmmo
unc0rr
parents: 10819
diff changeset
   189
                     cbAmmo.currentIndex = index
1ff3dd3705b1 Introducing cbAmmo
unc0rr
parents: 10819
diff changeset
   190
                     HWEngine.setAmmo(ammoName.text)
1ff3dd3705b1 Introducing cbAmmo
unc0rr
parents: 10819
diff changeset
   191
                 }
1ff3dd3705b1 Introducing cbAmmo
unc0rr
parents: 10819
diff changeset
   192
            }
1ff3dd3705b1 Introducing cbAmmo
unc0rr
parents: 10819
diff changeset
   193
        }
11437
6e641b5453f9 Accept ammo scheme from network
unc0rr
parents: 11434
diff changeset
   194
        Connections {
6e641b5453f9 Accept ammo scheme from network
unc0rr
parents: 11434
diff changeset
   195
            target: HWEngine
6e641b5453f9 Accept ammo scheme from network
unc0rr
parents: 11434
diff changeset
   196
            onAmmoChanged: cbAmmo.showItem({"iconSource" : "", "text" : ammo});
6e641b5453f9 Accept ammo scheme from network
unc0rr
parents: 11434
diff changeset
   197
        }
10823
1ff3dd3705b1 Introducing cbAmmo
unc0rr
parents: 10819
diff changeset
   198
    }
11426
ab6a6d9ebfc0 Small ui rework
unc0rr
parents: 10888
diff changeset
   199
    }
10823
1ff3dd3705b1 Introducing cbAmmo
unc0rr
parents: 10819
diff changeset
   200
10442
c58db813240b Load and show local teams list
unc0rr
parents: 10436
diff changeset
   201
    ListView {
c58db813240b Load and show local teams list
unc0rr
parents: 10436
diff changeset
   202
        id: playingTeamsList
c58db813240b Load and show local teams list
unc0rr
parents: 10436
diff changeset
   203
        x: 440
c58db813240b Load and show local teams list
unc0rr
parents: 10436
diff changeset
   204
        y: 16
c58db813240b Load and show local teams list
unc0rr
parents: 10436
diff changeset
   205
        width: 100
c58db813240b Load and show local teams list
unc0rr
parents: 10436
diff changeset
   206
        height: 192
c58db813240b Load and show local teams list
unc0rr
parents: 10436
diff changeset
   207
        highlight: Rectangle { color: "#eaea00"; radius: 4 }
c58db813240b Load and show local teams list
unc0rr
parents: 10436
diff changeset
   208
        focus: true
c58db813240b Load and show local teams list
unc0rr
parents: 10436
diff changeset
   209
        clip: true
c58db813240b Load and show local teams list
unc0rr
parents: 10436
diff changeset
   210
c58db813240b Load and show local teams list
unc0rr
parents: 10436
diff changeset
   211
        model: ListModel {
10444
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   212
            id: playingTeamsModel
10442
c58db813240b Load and show local teams list
unc0rr
parents: 10436
diff changeset
   213
        }
c58db813240b Load and show local teams list
unc0rr
parents: 10436
diff changeset
   214
c58db813240b Load and show local teams list
unc0rr
parents: 10436
diff changeset
   215
        delegate: Rectangle {
c58db813240b Load and show local teams list
unc0rr
parents: 10436
diff changeset
   216
            id: teamDelegate
c58db813240b Load and show local teams list
unc0rr
parents: 10436
diff changeset
   217
            height: 24
c58db813240b Load and show local teams list
unc0rr
parents: 10436
diff changeset
   218
            width: parent.width
c58db813240b Load and show local teams list
unc0rr
parents: 10436
diff changeset
   219
            radius: 8
c58db813240b Load and show local teams list
unc0rr
parents: 10436
diff changeset
   220
            border.width: 2
c58db813240b Load and show local teams list
unc0rr
parents: 10436
diff changeset
   221
            border.color: "#eaea00"
c58db813240b Load and show local teams list
unc0rr
parents: 10436
diff changeset
   222
c58db813240b Load and show local teams list
unc0rr
parents: 10436
diff changeset
   223
            Row {
10452
03519fd9f98d Show team color in teams list widget, also allow to change it on mouse click
unc0rr
parents: 10450
diff changeset
   224
                Rectangle {
03519fd9f98d Show team color in teams list widget, also allow to change it on mouse click
unc0rr
parents: 10450
diff changeset
   225
                    height: 20
03519fd9f98d Show team color in teams list widget, also allow to change it on mouse click
unc0rr
parents: 10450
diff changeset
   226
                    width: height
03519fd9f98d Show team color in teams list widget, also allow to change it on mouse click
unc0rr
parents: 10450
diff changeset
   227
                    color: teamColor
03519fd9f98d Show team color in teams list widget, also allow to change it on mouse click
unc0rr
parents: 10450
diff changeset
   228
                    border.width: 2
03519fd9f98d Show team color in teams list widget, also allow to change it on mouse click
unc0rr
parents: 10450
diff changeset
   229
                    border.color: "#eaea00"                    
03519fd9f98d Show team color in teams list widget, also allow to change it on mouse click
unc0rr
parents: 10450
diff changeset
   230
03519fd9f98d Show team color in teams list widget, also allow to change it on mouse click
unc0rr
parents: 10450
diff changeset
   231
                    MouseArea {
03519fd9f98d Show team color in teams list widget, also allow to change it on mouse click
unc0rr
parents: 10450
diff changeset
   232
                        z: 1
03519fd9f98d Show team color in teams list widget, also allow to change it on mouse click
unc0rr
parents: 10450
diff changeset
   233
                        anchors.fill: parent
10454
2b590e7972b1 Allow using right button or wheel to change team color
unc0rr
parents: 10452
diff changeset
   234
                        acceptedButtons: Qt.LeftButton | Qt.RightButton
2b590e7972b1 Allow using right button or wheel to change team color
unc0rr
parents: 10452
diff changeset
   235
                        onClicked: {
2b590e7972b1 Allow using right button or wheel to change team color
unc0rr
parents: 10452
diff changeset
   236
                            if (mouse.button === Qt.LeftButton)
2b590e7972b1 Allow using right button or wheel to change team color
unc0rr
parents: 10452
diff changeset
   237
                                HWEngine.changeTeamColor(name, 1)
2b590e7972b1 Allow using right button or wheel to change team color
unc0rr
parents: 10452
diff changeset
   238
                            else if (mouse.button === Qt.RightButton)
2b590e7972b1 Allow using right button or wheel to change team color
unc0rr
parents: 10452
diff changeset
   239
                                HWEngine.changeTeamColor(name, -1)
2b590e7972b1 Allow using right button or wheel to change team color
unc0rr
parents: 10452
diff changeset
   240
                        }
2b590e7972b1 Allow using right button or wheel to change team color
unc0rr
parents: 10452
diff changeset
   241
                        onWheel: HWEngine.changeTeamColor(name, -wheel.angleDelta.y)
10452
03519fd9f98d Show team color in teams list widget, also allow to change it on mouse click
unc0rr
parents: 10450
diff changeset
   242
                   }
03519fd9f98d Show team color in teams list widget, also allow to change it on mouse click
unc0rr
parents: 10450
diff changeset
   243
                }
03519fd9f98d Show team color in teams list widget, also allow to change it on mouse click
unc0rr
parents: 10450
diff changeset
   244
11443
5182d44fb733 - Hedgehogs number display
unc0rr
parents: 11440
diff changeset
   245
                Text {
5182d44fb733 - Hedgehogs number display
unc0rr
parents: 11440
diff changeset
   246
                    text: name
10452
03519fd9f98d Show team color in teams list widget, also allow to change it on mouse click
unc0rr
parents: 10450
diff changeset
   247
                    MouseArea {
03519fd9f98d Show team color in teams list widget, also allow to change it on mouse click
unc0rr
parents: 10450
diff changeset
   248
                        z: 1
03519fd9f98d Show team color in teams list widget, also allow to change it on mouse click
unc0rr
parents: 10450
diff changeset
   249
                        anchors.fill: parent
03519fd9f98d Show team color in teams list widget, also allow to change it on mouse click
unc0rr
parents: 10450
diff changeset
   250
                        onClicked: HWEngine.tryRemoveTeam(name)
03519fd9f98d Show team color in teams list widget, also allow to change it on mouse click
unc0rr
parents: 10450
diff changeset
   251
                   }
03519fd9f98d Show team color in teams list widget, also allow to change it on mouse click
unc0rr
parents: 10450
diff changeset
   252
                }
11443
5182d44fb733 - Hedgehogs number display
unc0rr
parents: 11440
diff changeset
   253
5182d44fb733 - Hedgehogs number display
unc0rr
parents: 11440
diff changeset
   254
                Text {
5182d44fb733 - Hedgehogs number display
unc0rr
parents: 11440
diff changeset
   255
                    text: hedgehogsNumber
5182d44fb733 - Hedgehogs number display
unc0rr
parents: 11440
diff changeset
   256
                }
10442
c58db813240b Load and show local teams list
unc0rr
parents: 10436
diff changeset
   257
            }
10444
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   258
10452
03519fd9f98d Show team color in teams list widget, also allow to change it on mouse click
unc0rr
parents: 10450
diff changeset
   259
10444
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   260
        }
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   261
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   262
        Connections {
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   263
            target: HWEngine
10452
03519fd9f98d Show team color in teams list widget, also allow to change it on mouse click
unc0rr
parents: 10450
diff changeset
   264
            onPlayingTeamAdded: playingTeamsModel.append({
03519fd9f98d Show team color in teams list widget, also allow to change it on mouse click
unc0rr
parents: 10450
diff changeset
   265
                                                             "aiLevel": aiLevel
03519fd9f98d Show team color in teams list widget, also allow to change it on mouse click
unc0rr
parents: 10450
diff changeset
   266
                                                             , "name": teamName
03519fd9f98d Show team color in teams list widget, also allow to change it on mouse click
unc0rr
parents: 10450
diff changeset
   267
                                                             , "local": isLocal
11443
5182d44fb733 - Hedgehogs number display
unc0rr
parents: 11440
diff changeset
   268
                                                             , "hedgehogsNumber" : 4
10452
03519fd9f98d Show team color in teams list widget, also allow to change it on mouse click
unc0rr
parents: 10450
diff changeset
   269
                                                             , "teamColor": "#000000"
03519fd9f98d Show team color in teams list widget, also allow to change it on mouse click
unc0rr
parents: 10450
diff changeset
   270
                                                         })
10444
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   271
            onPlayingTeamRemoved: {
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   272
                var i = playingTeamsModel.count - 1;
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   273
                while ((i >= 0) && (playingTeamsModel.get(i).name !== teamName)) --i
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   274
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   275
                if(i >= 0) playingTeamsModel.remove(i, 1)
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   276
            }
10452
03519fd9f98d Show team color in teams list widget, also allow to change it on mouse click
unc0rr
parents: 10450
diff changeset
   277
            onTeamColorChanged: {
03519fd9f98d Show team color in teams list widget, also allow to change it on mouse click
unc0rr
parents: 10450
diff changeset
   278
                var i = playingTeamsModel.count - 1;
03519fd9f98d Show team color in teams list widget, also allow to change it on mouse click
unc0rr
parents: 10450
diff changeset
   279
                while ((i >= 0) && (playingTeamsModel.get(i).name !== teamName)) --i
03519fd9f98d Show team color in teams list widget, also allow to change it on mouse click
unc0rr
parents: 10450
diff changeset
   280
03519fd9f98d Show team color in teams list widget, also allow to change it on mouse click
unc0rr
parents: 10450
diff changeset
   281
                if(i >= 0) playingTeamsModel.setProperty(i, "teamColor", colorValue)
03519fd9f98d Show team color in teams list widget, also allow to change it on mouse click
unc0rr
parents: 10450
diff changeset
   282
            }
11443
5182d44fb733 - Hedgehogs number display
unc0rr
parents: 11440
diff changeset
   283
            onHedgehogsNumberChanged: {
5182d44fb733 - Hedgehogs number display
unc0rr
parents: 11440
diff changeset
   284
                var i = playingTeamsModel.count - 1;
5182d44fb733 - Hedgehogs number display
unc0rr
parents: 11440
diff changeset
   285
                while ((i >= 0) && (playingTeamsModel.get(i).name !== teamName)) --i
5182d44fb733 - Hedgehogs number display
unc0rr
parents: 11440
diff changeset
   286
5182d44fb733 - Hedgehogs number display
unc0rr
parents: 11440
diff changeset
   287
                if(i >= 0) playingTeamsModel.setProperty(i, "hedgehogsNumber", hedgehogsNumber)
5182d44fb733 - Hedgehogs number display
unc0rr
parents: 11440
diff changeset
   288
            }
10444
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   289
        }
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   290
    }
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   291
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   292
    ListView {
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   293
        id: localTeamsList
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   294
        x: 440
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   295
        y: 224
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   296
        width: 100
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   297
        height: 192
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   298
        highlight: Rectangle { color: "#eaea00"; radius: 4 }
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   299
        focus: true
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   300
        clip: true
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   301
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   302
        model: ListModel {
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   303
            id: localTeamsModel
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   304
        }
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   305
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   306
        delegate: Rectangle {
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   307
            id: localTeamDelegate
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   308
            height: 24
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   309
            width: parent.width
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   310
            radius: 8
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   311
            border.width: 2
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   312
            border.color: "#eaea00"
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   313
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   314
            Row {
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   315
                Text { text: name }
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   316
            }
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   317
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   318
            MouseArea {
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   319
                 z: 1
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   320
                 anchors.fill: parent
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   321
                 onClicked: HWEngine.tryAddTeam(name)
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   322
            }
10442
c58db813240b Load and show local teams list
unc0rr
parents: 10436
diff changeset
   323
        }
c58db813240b Load and show local teams list
unc0rr
parents: 10436
diff changeset
   324
c58db813240b Load and show local teams list
unc0rr
parents: 10436
diff changeset
   325
        Connections {
c58db813240b Load and show local teams list
unc0rr
parents: 10436
diff changeset
   326
            target: HWEngine
c58db813240b Load and show local teams list
unc0rr
parents: 10436
diff changeset
   327
            onLocalTeamAdded: localTeamsModel.append({"aiLevel": aiLevel, "name": teamName})
10444
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   328
            onLocalTeamRemoved: {
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   329
                var i = localTeamsModel.count - 1;
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   330
                while ((i >= 0) && (localTeamsModel.get(i).name !== teamName)) --i
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   331
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   332
                if(i >= 0) localTeamsModel.remove(i, 1)
47a6231f1fc1 Teams widget now allows to add and remove teams (basic implementation, no checks performed, no colors, no hedgehogs)
unc0rr
parents: 10442
diff changeset
   333
            }
10442
c58db813240b Load and show local teams list
unc0rr
parents: 10436
diff changeset
   334
        }
c58db813240b Load and show local teams list
unc0rr
parents: 10436
diff changeset
   335
    }
c58db813240b Load and show local teams list
unc0rr
parents: 10436
diff changeset
   336
c58db813240b Load and show local teams list
unc0rr
parents: 10436
diff changeset
   337
    Component.onCompleted: {
10450
bf9e30b4ef9b - Store index of color instead of its value
unc0rr
parents: 10448
diff changeset
   338
        HWEngine.resetGameConfig()
10442
c58db813240b Load and show local teams list
unc0rr
parents: 10436
diff changeset
   339
        HWEngine.getTeamsList()
c58db813240b Load and show local teams list
unc0rr
parents: 10436
diff changeset
   340
        HWEngine.getPreview()
c58db813240b Load and show local teams list
unc0rr
parents: 10436
diff changeset
   341
    }
10422
4cf23d4c7624 - Pages
unc0rr
parents:
diff changeset
   342
}