PlayerProfile.fxml 28.1 KB
Newer Older
Xuhao Lin's avatar
Xuhao Lin committed
1 2
<?xml version="1.0" encoding="UTF-8"?>

Peining's avatar
Peining committed
3
<?import javafx.geometry.*?>
Peining's avatar
Peining committed
4 5 6
<?import javafx.scene.chart.*?>
<?import javafx.scene.image.*?>
<?import javafx.scene.shape.*?>
Xuhao Lin's avatar
Xuhao Lin committed
7 8 9 10 11
<?import java.lang.*?>
<?import java.util.*?>
<?import javafx.scene.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
12
<!--
Peining's avatar
Peining committed
13
<GridPane alignment="CENTER" prefHeight="600.0" prefWidth="800.0" style="-fx-background-color: #061f30;" stylesheets="@../../styles/ihmmain.css" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.utclo23.ihmmain.controller.PlayerProfileController">
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
    <children>
        <GridPane alignment="CENTER" prefHeight="0.0" prefWidth="800.0" GridPane.halignment="CENTER" GridPane.valignment="CENTER">
            <children>
                <Label fx:id="pageTitleLabel" alignment="CENTER" prefHeight="27.0" prefWidth="268.0" text="User Profile" GridPane.halignment="CENTER" GridPane.valignment="CENTER" />
                <Line fx:id="lineDesign" endX="100.0" startX="-100.0" stroke="#cde862" styleClass="lineDesign" GridPane.halignment="CENTER" GridPane.rowIndex="1" GridPane.valignment="CENTER" />
                <HBox alignment="CENTER" prefHeight="100.0" prefWidth="200.0" GridPane.halignment="CENTER" GridPane.rowIndex="2" GridPane.valignment="CENTER">
                    <children>
                        <VBox prefHeight="261.0" prefWidth="274.0">
                            <children>
                                <HBox alignment="CENTER_LEFT" prefHeight="203.0" prefWidth="250.0">
                                    <children>
                                        <ImageView fx:id="image" fitHeight="150.0" fitWidth="200.0" pickOnBounds="true" preserveRatio="true" />
                                    </children>
                                </HBox>
                                <HBox alignment="CENTER_LEFT" prefHeight="100.0" prefWidth="200.0">
                                    <children>
                                        <Button fx:id="avatar" mnemonicParsing="false" onAction="#editAvatar" text="Modify">
                                            <opaqueInsets>
                                                <Insets />
                                            </opaqueInsets>
                                        <HBox.margin>
                                            <Insets left="20.0" />
                                        </HBox.margin></Button>
                                    </children>
                                </HBox>
                            </children>
                        </VBox>
                        <VBox prefHeight="261.0" prefWidth="291.0">
                            <children>
                                <GridPane alignment="CENTER" prefHeight="257.0" prefWidth="282.0">
                                    <children>
                                        <Label alignment="CENTER" text="Nickname" />
                                        <Label fx:id="userID" text="" GridPane.columnIndex="1" />
                                        <Label text="First Name" GridPane.rowIndex="1" />
                                        <Label fx:id="firstNameText" text="" GridPane.columnIndex="1" GridPane.rowIndex="1" />
                                        <Label text="Last Name" GridPane.rowIndex="2" />
                                        <Label fx:id="lastNameText" text="" GridPane.columnIndex="1" GridPane.rowIndex="2" />
                                        <Label text="Birthday" GridPane.rowIndex="3" />
                                        <Label fx:id="birthdayText" text="" GridPane.columnIndex="1" GridPane.rowIndex="3" />
                                        <Label text="Password" GridPane.rowIndex="4" />
                                        <Button fx:id="playerName" mnemonicParsing="false" onAction="#edit" text="edit" GridPane.columnIndex="2" />
                                        <Button fx:id="firstName" mnemonicParsing="false" onAction="#edit" text="edit" GridPane.columnIndex="2" GridPane.rowIndex="1" />
                                        <Button fx:id="lastName" mnemonicParsing="false" onAction="#edit" text="edit" GridPane.columnIndex="2" GridPane.rowIndex="2" />
                                        <Button fx:id="birthday" mnemonicParsing="false" onAction="#edit" text="edit" GridPane.columnIndex="2" GridPane.rowIndex="3" />
                                        <Button fx:id="password" mnemonicParsing="false" onAction="#edit" text="edit" GridPane.columnIndex="2" GridPane.rowIndex="4" />
                                        <Label />
                                        <Label text="Nickname" />
                                        <Label fx:id="birthday1" text="********" GridPane.columnIndex="1" GridPane.rowIndex="4" />
                                    </children>
                                    <columnConstraints>
                                        <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
                                        <ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
                                        <ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
                                    </columnConstraints>
                                    <rowConstraints>
                                        <RowConstraints minHeight="10.0" prefHeight="30.0" valignment="CENTER" vgrow="SOMETIMES" />
                                        <RowConstraints minHeight="10.0" prefHeight="30.0" valignment="CENTER" vgrow="SOMETIMES" />
                                        <RowConstraints minHeight="10.0" prefHeight="30.0" valignment="CENTER" vgrow="SOMETIMES" />
                                        <RowConstraints minHeight="10.0" prefHeight="30.0" valignment="CENTER" vgrow="SOMETIMES" />
                                        <RowConstraints minHeight="10.0" prefHeight="30.0" valignment="CENTER" vgrow="SOMETIMES" />
                                    </rowConstraints>
                                </GridPane>
                            </children>
                        </VBox>
                    </children>
                </HBox>
            </children>
            <columnConstraints>
Peining's avatar
Peining committed
82
                <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
83 84 85 86 87 88 89 90 91
            </columnConstraints>
            <rowConstraints>
                <RowConstraints maxHeight="143.0" minHeight="10.0" prefHeight="29.0" vgrow="SOMETIMES" />
                <RowConstraints maxHeight="143.0" minHeight="0.0" prefHeight="0.0" vgrow="SOMETIMES" />
                <RowConstraints maxHeight="280.0" minHeight="10.0" prefHeight="273.0" vgrow="SOMETIMES" />
            </rowConstraints>
        </GridPane>
        <GridPane alignment="CENTER" GridPane.halignment="CENTER" GridPane.rowIndex="1" GridPane.valignment="CENTER">
            <columnConstraints>
Peining's avatar
Peining committed
92 93
                <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
                <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393
            </columnConstraints>
            <rowConstraints>
                <RowConstraints maxHeight="139.71987915039062" minHeight="10.0" prefHeight="38.387481689453125" vgrow="SOMETIMES" />
                <RowConstraints maxHeight="261.6125183105469" minHeight="10.0" prefHeight="204.0" valignment="CENTER" vgrow="SOMETIMES" />
                <RowConstraints maxHeight="261.6125183105469" minHeight="10.0" prefHeight="67.0" vgrow="SOMETIMES" />
            </rowConstraints>
            <children>
                <Label text="Statistics" GridPane.halignment="LEFT">
                    <GridPane.margin>
                        <Insets left="90.0" />
                    </GridPane.margin>
                </Label>
                <GridPane fx:id="stat" prefHeight="125.0" prefWidth="368.0" GridPane.halignment="RIGHT" GridPane.rowIndex="1" GridPane.valignment="CENTER">
                    <children>
                        <Label GridPane.columnIndex="1" />
                        <Label text="Classical" GridPane.rowIndex="1" />
                        <Label text="Belgian" GridPane.rowIndex="2" />
                        <Label text="Total" GridPane.rowIndex="3" />
                        <Label text="Win" GridPane.columnIndex="1" />
                        <Label text="Loss" GridPane.columnIndex="2" />
                        <Label text="Abandoned" GridPane.columnIndex="3" />
                        <Label text="Played" GridPane.columnIndex="4" />
                    </children>
                    <columnConstraints>
                        <ColumnConstraints hgrow="SOMETIMES" maxWidth="121.50106811523438" minWidth="10.0" prefWidth="106.39501953125" />
                        <ColumnConstraints hgrow="SOMETIMES" maxWidth="85.50106811523438" minWidth="10.0" prefWidth="43.0" />
                        <ColumnConstraints hgrow="SOMETIMES" maxWidth="103.73809814453125" minWidth="10.0" prefWidth="40.0" />
                        <ColumnConstraints hgrow="SOMETIMES" maxWidth="99.23699951171875" minWidth="10.0" prefWidth="81.0" />
                        <ColumnConstraints hgrow="SOMETIMES" maxWidth="108.71102905273438" minWidth="10.0" prefWidth="56.0" />
                    </columnConstraints>
                    <rowConstraints>
                        <RowConstraints maxHeight="30.0" minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
                        <RowConstraints maxHeight="63.0" minHeight="10.0" prefHeight="61.0" vgrow="SOMETIMES" />
                        <RowConstraints maxHeight="68.0" minHeight="10.0" prefHeight="53.0" vgrow="SOMETIMES" />
                        <RowConstraints maxHeight="74.0" minHeight="10.0" prefHeight="57.0" vgrow="SOMETIMES" />
                    </rowConstraints>
                    <GridPane.margin>
                        <Insets left="80.0" />
                    </GridPane.margin>
                </GridPane>
                <GridPane GridPane.rowIndex="2">
                    <columnConstraints>
                        <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
                        <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
                    </columnConstraints>
                    <rowConstraints>
                        <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
                    </rowConstraints>
                    <children>
                        <Button fx:id="backButton" mnemonicParsing="false" onAction="#back" text="RETURN" GridPane.halignment="LEFT" GridPane.valignment="TOP">
                            <GridPane.margin>
                                <Insets left="80.0" />
                            </GridPane.margin></Button>
                        <Button fx:id="playerList" mnemonicParsing="false" onAction="#toPlayerList" text="Other Player" GridPane.columnIndex="1" GridPane.valignment="TOP" />
                    </children>
                </GridPane>
                <GridPane GridPane.columnIndex="1" GridPane.rowIndex="1">
                    <columnConstraints>
                        <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
                        <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
                        <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
                    </columnConstraints>
                    <rowConstraints>
                        <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
                    </rowConstraints>
                    <children>
                        <PieChart fx:id="allMode" labelsVisible="false" legendVisible="false" minHeight="-Infinity" minWidth="-Infinity" prefHeight="238.0" prefWidth="152.0" stylesheets="@../../styles/ihmmain.css" title="All Mode" titleSide="BOTTOM" />
                        <PieChart fx:id="classical" labelsVisible="false" legendVisible="false" minHeight="-Infinity" minWidth="-Infinity" prefHeight="235.0" prefWidth="156.0" stylesheets="@../../styles/ihmmain.css" title="Classical" titleSide="BOTTOM" GridPane.columnIndex="1" />
                        <PieChart fx:id="belge" labelsVisible="false" legendVisible="false" minHeight="-Infinity" minWidth="-Infinity" prefHeight="234.0" prefWidth="146.0" stylesheets="@../../styles/ihmmain.css" title="Belgian" titleSide="BOTTOM" GridPane.columnIndex="2" />
                    </children>
                </GridPane>
                <GridPane GridPane.columnIndex="1">
                    <columnConstraints>
                        <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
                        <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
                        <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
                    </columnConstraints>
                    <rowConstraints>
                        <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
                    </rowConstraints>
                    <children>
                        <Label fx:id="rateClassic" text="win rate:" GridPane.columnIndex="1" GridPane.halignment="CENTER" />
                        <Label fx:id="rateAll" text="win  rate:" GridPane.halignment="CENTER" GridPane.valignment="CENTER" />
                        <Label fx:id="rateBelgian" text="win rate:" GridPane.columnIndex="2" GridPane.halignment="CENTER" />
                    </children>
                </GridPane>
            </children>
        </GridPane>
    </children>
    <columnConstraints>
        <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
    </columnConstraints>
    <rowConstraints>
        <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
        <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
    </rowConstraints>
</GridPane>
-->

<GridPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="600" minWidth="800" prefHeight="768" prefWidth="1368" id="generalGrid"  stylesheets="@../../styles/ihmmain.css" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.utclo23.ihmmain.controller.PlayerProfileController">   
    <columnConstraints>
        <ColumnConstraints hgrow="SOMETIMES" />
    </columnConstraints>
    <rowConstraints>
        <RowConstraints percentHeight="10.0" vgrow="SOMETIMES" />
        <RowConstraints percentHeight="10.0" vgrow="SOMETIMES" />
        <RowConstraints percentHeight="70.0" vgrow="SOMETIMES" />
        <RowConstraints percentHeight="10.0" vgrow="SOMETIMES" />
    </rowConstraints>  
    <children>
        
        <!-- Title -->
        <Label fx:id="pageTitleLabel" textAlignment="CENTER" text="User Profile" GridPane.columnIndex="0" GridPane.halignment="CENTER" GridPane.rowIndex="0" GridPane.valignment="CENTER" />
        <Line fx:id="lineDesign" endX="100.0" startX="-100.0" styleClass="lineDesign" GridPane.halignment="CENTER" GridPane.valignment="BOTTOM" />
        
        <!-- Body -->
        <GridPane GridPane.rowIndex = "2">
            <columnConstraints>
                <ColumnConstraints percentWidth="100.0" hgrow="SOMETIMES"/>
            </columnConstraints>
            <rowConstraints>
                <RowConstraints percentHeight="50.0" vgrow="SOMETIMES" />
                <RowConstraints percentHeight="50.0" vgrow="SOMETIMES" />
            </rowConstraints>
            <children>
                <!-- First row ( picture, edit ) -->
                <GridPane GridPane.rowIndex = "0">
                    <columnConstraints>
                        <ColumnConstraints percentWidth="50.0" hgrow="SOMETIMES"/>
                        <ColumnConstraints percentWidth="50.0" hgrow="SOMETIMES"/>
                    </columnConstraints>
                    <rowConstraints>
                        <RowConstraints percentHeight="100.0" vgrow="SOMETIMES" />
                    </rowConstraints>
                    <children>
                        <!-- Picture -->
                        <GridPane GridPane.columnIndex = "0">
                            <columnConstraints>
                                <ColumnConstraints percentWidth="100.0" hgrow="SOMETIMES"/>
                            </columnConstraints>
                            <rowConstraints>
                                <RowConstraints percentHeight="90.0" vgrow="SOMETIMES" />
                                <RowConstraints percentHeight="10.0" vgrow="SOMETIMES" />
                            </rowConstraints>
                            <children>
                                <ImageView GridPane.rowIndex="0" GridPane.halignment="center" GridPane.valignment="center" fx:id="image" fitHeight="150.0" fitWidth="200.0" pickOnBounds="true" preserveRatio="true" />
                                <GridPane GridPane.rowIndex="1">
                                    <columnConstraints>
                                        <ColumnConstraints percentWidth="35.0" hgrow="SOMETIMES"/>
                                        <ColumnConstraints percentWidth="30.0" hgrow="SOMETIMES"/>
                                        <ColumnConstraints percentWidth="35.0" hgrow="SOMETIMES"/>
                                    </columnConstraints>
                                    <rowConstraints>
                                        <RowConstraints percentHeight="100.0" vgrow="SOMETIMES" />
                                    </rowConstraints>
                                    <children>
                                        <Button GridPane.columnIndex="1" maxWidth="Infinity" fx:id="avatar" mnemonicParsing="false" onAction="#editAvatar" text="Modify"/>
                                    </children>
                                </GridPane>
                            </children>
                        </GridPane>

                        <!-- Edit -->
                        <GridPane GridPane.columnIndex = "1">
                            <columnConstraints>
                                <ColumnConstraints percentWidth="40.0" hgrow="SOMETIMES"/>
                                <ColumnConstraints percentWidth="40.0" hgrow="SOMETIMES"/>
                                <ColumnConstraints percentWidth="20.0" hgrow="SOMETIMES"/>
                            </columnConstraints>
                            <rowConstraints>
                                <RowConstraints percentHeight="20.0" vgrow="SOMETIMES" />
                                <RowConstraints percentHeight="20.0" vgrow="SOMETIMES" />
                                <RowConstraints percentHeight="20.0" vgrow="SOMETIMES" />
                                <RowConstraints percentHeight="20.0" vgrow="SOMETIMES" />
                                <RowConstraints percentHeight="20.0" vgrow="SOMETIMES" />                                
                            </rowConstraints>
                            <children>
                                <Label alignment="CENTER" text="Nickname" GridPane.columnIndex="0" GridPane.rowIndex="0" />
                                <Label fx:id="userID" text="" GridPane.columnIndex="1" GridPane.rowIndex="0" />
                                <Label text="First Name" GridPane.columnIndex="0" GridPane.rowIndex="1" />
                                <Label fx:id="firstNameText" text="" GridPane.columnIndex="1" GridPane.rowIndex="1" />
                                <Label text="Last Name" GridPane.columnIndex="0" GridPane.rowIndex="2" />
                                <Label fx:id="lastNameText" text="" GridPane.columnIndex="1" GridPane.rowIndex="2" />
                                <Label text="Birthday" GridPane.columnIndex="0" GridPane.rowIndex="3" />
                                <Label fx:id="birthdayText" text="" GridPane.columnIndex="1" GridPane.rowIndex="3" />
                                <Label text="Password" GridPane.columnIndex="0" GridPane.rowIndex="4" />
                                <Label fx:id="birthday1" text="******" GridPane.columnIndex="1" GridPane.rowIndex="4" />
                                <Button fx:id="playerName" mnemonicParsing="false" onAction="#edit" text="edit" GridPane.columnIndex="2" />
                                <Button fx:id="firstName" mnemonicParsing="false" onAction="#edit" text="edit" GridPane.columnIndex="2" GridPane.rowIndex="1" />
                                <Button fx:id="lastName" mnemonicParsing="false" onAction="#edit" text="edit" GridPane.columnIndex="2" GridPane.rowIndex="2" />
                                <Button fx:id="birthday" mnemonicParsing="false" onAction="#edit" text="edit" GridPane.columnIndex="2" GridPane.rowIndex="3" />
                                <Button fx:id="password" mnemonicParsing="false" onAction="#edit" text="edit" GridPane.columnIndex="2" GridPane.rowIndex="4" />
                            </children>
                        </GridPane>
                    </children>
                </GridPane>   
                                  
                <!-- Second row ( stats and chart ) -->
                <GridPane GridPane.rowIndex = "1">
                    <columnConstraints>
                        <ColumnConstraints percentWidth="5.0" hgrow="SOMETIMES"/>
                        <ColumnConstraints percentWidth="40.0" hgrow="SOMETIMES"/>
                        <ColumnConstraints percentWidth="10.0" hgrow="SOMETIMES"/>
                        <ColumnConstraints percentWidth="40.0" hgrow="SOMETIMES"/>
                        <ColumnConstraints percentWidth="5.0" hgrow="SOMETIMES"/>
                    </columnConstraints>
                    <rowConstraints>
                        <RowConstraints percentHeight="7.0" vgrow="SOMETIMES" />
                        <RowConstraints percentHeight="90.0" vgrow="SOMETIMES" />
                        <RowConstraints percentHeight="3.0" vgrow="SOMETIMES" />
                    </rowConstraints>
                    <children>
                        <!-- Stats -->
                        <GridPane fx:id="stat"  GridPane.columnIndex = "1" GridPane.rowIndex = "1">
                            <columnConstraints>
                                <ColumnConstraints percentWidth="20.0" hgrow="SOMETIMES"/>
                                <ColumnConstraints halignment="CENTER" percentWidth="20.0" hgrow="SOMETIMES"/>
                                <ColumnConstraints halignment="CENTER" percentWidth="20.0" hgrow="SOMETIMES"/>
                                <ColumnConstraints halignment="CENTER" percentWidth="20.0" hgrow="SOMETIMES"/>
                                <ColumnConstraints halignment="CENTER" percentWidth="20.0" hgrow="SOMETIMES"/>
                            </columnConstraints>
                            <rowConstraints>
                                <RowConstraints percentHeight="25.0" vgrow="SOMETIMES" />
                                <RowConstraints percentHeight="25.0" vgrow="SOMETIMES" />
                                <RowConstraints percentHeight="25.0" vgrow="SOMETIMES" />
                                <RowConstraints percentHeight="25.0" vgrow="SOMETIMES" />
                            </rowConstraints>
                            <children>
                                <Label text=" Classical" GridPane.rowIndex="1"/>
                                <Label text=" Belgian" GridPane.rowIndex="2"/>
                                <Label text=" Total" GridPane.rowIndex="3"/>
                                <Label text="Win" GridPane.columnIndex="1" />
                                <Label text="Loss" GridPane.columnIndex="2" />
                                <Label text="Abandoned" GridPane.columnIndex="3" />
                                <Label text="Played" GridPane.columnIndex="4" />
                            </children>
                        </GridPane>
                    
                        <!-- Charts -->        
                        <GridPane fx:id="gridBorderChart" GridPane.columnIndex="3" GridPane.rowIndex="1">
                            <columnConstraints>
                                <ColumnConstraints hgrow="SOMETIMES" minWidth="33.0" prefWidth="100.0" />
                                <ColumnConstraints hgrow="SOMETIMES" minWidth="34.0" prefWidth="100.0" />
                                <ColumnConstraints hgrow="SOMETIMES" minWidth="33.0" prefWidth="100.0" />
                            </columnConstraints>
                            <rowConstraints>
                                <RowConstraints percentHeight="8.0" vgrow="SOMETIMES" />
                                <RowConstraints percentHeight="92.0" vgrow="SOMETIMES" />
                            </rowConstraints>
                            <children>
                               <!-- <PieChart fx:id="allMode" minHeight="-Infinity" minWidth="-Infinity" prefHeight="120.0" prefWidth="120.0" title="All Mode" titleSide="BOTTOM" />
                                <PieChart fx:id="classical" minHeight="-Infinity" minWidth="-Infinity" prefHeight="120.0" prefWidth="120.0" title="Classical" titleSide="BOTTOM" GridPane.columnIndex="1" />
                                <PieChart fx:id="belge" minHeight="-Infinity" minWidth="-Infinity" prefHeight="120.0" prefWidth="120.0" title="Belge" titleSide="BOTTOM" GridPane.columnIndex="2" /> -->
                                <Label fx:id="rateAll" text="win  rate:" GridPane.halignment="CENTER" GridPane.valignment="CENTER" />
                                <Label fx:id="rateClassic" text="win rate:" GridPane.columnIndex="1" GridPane.halignment="CENTER" />
                                <Label fx:id="rateBelgian" text="win rate:" GridPane.columnIndex="2" GridPane.halignment="CENTER" />
                            
                            
                                <PieChart fx:id="allMode" labelsVisible="false" legendVisible="false" minHeight="-Infinity" minWidth="-Infinity" prefHeight="238.0" prefWidth="152.0" stylesheets="@../../styles/ihmmain.css" title="All Mode" titleSide="BOTTOM" GridPane.rowIndex="1" />
                                <PieChart fx:id="classical" labelsVisible="false" legendVisible="false" minHeight="-Infinity" minWidth="-Infinity" prefHeight="235.0" prefWidth="156.0" stylesheets="@../../styles/ihmmain.css" title="Classical" titleSide="BOTTOM" GridPane.columnIndex="1" GridPane.rowIndex="1" />
                                <PieChart fx:id="belge" labelsVisible="false" legendVisible="false" minHeight="-Infinity" minWidth="-Infinity" prefHeight="234.0" prefWidth="146.0" stylesheets="@../../styles/ihmmain.css" title="Belgian" titleSide="BOTTOM" GridPane.columnIndex="2" GridPane.rowIndex="1" />
               
                            
                            
                            </children>
                        </GridPane>        
                                
                    </children>
                </GridPane>            
                                       
                            
                            
                            
            </children>
        </GridPane>
    
                    
                
  
        
        
        <!-- Button -->    
        <GridPane GridPane.rowIndex = "3">
                <columnConstraints>
                    <ColumnConstraints percentWidth="30.0" hgrow="SOMETIMES"/>
                    <ColumnConstraints percentWidth="15.0" hgrow="SOMETIMES"/>
                    <ColumnConstraints percentWidth="10.0" hgrow="SOMETIMES"/>
                    <ColumnConstraints percentWidth="15.0" hgrow="SOMETIMES"/>
                    <ColumnConstraints percentWidth="30.0" hgrow="SOMETIMES"/>
                </columnConstraints>
                <rowConstraints>
                    <RowConstraints percentHeight="100.0" vgrow="SOMETIMES" />
                </rowConstraints>
                <children>
                    <Button GridPane.columnIndex="3" maxWidth="Infinity" fx:id="backButton" mnemonicParsing="false" onAction="#back" text="Return" GridPane.halignment="LEFT" GridPane.valignment="CENTER"/>
                    <Button GridPane.columnIndex="1" maxWidth="Infinity" fx:id="playerList" mnemonicParsing="false" onAction="#toPlayerList" text="Other Player" GridPane.valignment="CENTER" />   
                </children>
            </GridPane>    
        
    </children>
Peining's avatar
Peining committed
394
</GridPane>