50 lines
2.5 KiB
XML
50 lines
2.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<?import com.jfoenix.controls.JFXButton?>
|
|
<?import javafx.scene.layout.StackPane?>
|
|
<?import javafx.scene.control.Label?>
|
|
<?import javafx.scene.layout.VBox?>
|
|
<?import javafx.scene.shape.Rectangle?>
|
|
<?import org.jackhuang.hmcl.ui.FXUtils?>
|
|
<?import javafx.geometry.Insets?>
|
|
<?import org.jackhuang.hmcl.ui.construct.TwoLineListItem?>
|
|
<?import javafx.scene.layout.HBox?>
|
|
<fx:root type="StackPane" pickOnBounds="false"
|
|
xmlns="http://javafx.com/javafx/8.0.112" xmlns:fx="http://javafx.com/fxml/1">
|
|
<StackPane fx:id="main" style="-fx-padding: 25;">
|
|
<StackPane fx:id="updatePane" styleClass="bubble" FXUtils.limitWidth="230" FXUtils.limitHeight="55"
|
|
onMouseClicked="#onUpgrade" StackPane.alignment="TOP_RIGHT">
|
|
<HBox StackPane.alignment="CENTER_LEFT" alignment="CENTER_LEFT" spacing="12">
|
|
<Label fx:id="lblIcon" />
|
|
<TwoLineListItem titleFill="white" subtitleFill="white" subtitle="%update.bubble.subtitle" fx:id="lblLatestVersion" pickOnBounds="false"
|
|
style="-jfx-title-font-weight: BOLD;" />
|
|
|
|
<StackPane.margin>
|
|
<Insets left="16" top="9" right="12" bottom="9" />
|
|
</StackPane.margin>
|
|
</HBox>
|
|
|
|
<JFXButton fx:id="closeUpdateButton" StackPane.alignment="TOP_RIGHT" styleClass="toggle-icon-tiny">
|
|
<StackPane.margin>
|
|
<Insets topRightBottomLeft="5" />
|
|
</StackPane.margin>
|
|
</JFXButton>
|
|
</StackPane>
|
|
|
|
<StackPane maxWidth="230" maxHeight="55" StackPane.alignment="BOTTOM_RIGHT">
|
|
<JFXButton prefWidth="230" prefHeight="55" buttonType="RAISED" styleClass="jfx-button-raised"
|
|
onMouseClicked="#launch" fx:id="btnLaunch">
|
|
<graphic>
|
|
<VBox alignment="CENTER" translateX="-7" maxWidth="200">
|
|
<Label style="-fx-font-size: 16;" text="%version.launch"/>
|
|
<Label style="-fx-font-size: 12px;" fx:id="lblCurrentGame"/>
|
|
</VBox>
|
|
</graphic>
|
|
</JFXButton>
|
|
<Rectangle fx:id="separator" translateX="95" height="57" styleClass="darker-fill" width="1" mouseTransparent="true"/>
|
|
<JFXButton prefWidth="230" prefHeight="55" buttonType="RAISED" styleClass="jfx-button-raised"
|
|
style="-fx-font-size: 15;" onMouseClicked="#onMenu" fx:id="btnMenu" />
|
|
</StackPane>
|
|
</StackPane>
|
|
</fx:root>
|