This repository has been archived on 2020-09-21. You can view files and clone it, but cannot push or open issues or pull requests.
FRC2016-old/wpilib/tools/plugins/built-in/bool/BadBool.fxml
2016-01-28 11:33:19 -05:00

31 lines
920 B
XML

<?xml version="1.0" encoding="UTF-8"?>
<?import java.lang.*?>
<?import java.util.*?>
<?import javafx.geometry.*?>
<?import javafx.scene.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.shape.*?>
<?language javascript?>
<dashfx.controls.bases.BooleanControlBase fx:id="base" xmlns:fx="http://javafx.com/fxml">
<fx:script>
function moused(e)
{
base.setValue(!base.getValue());
}
</fx:script>
<ui>
<HBox alignment="CENTER_LEFT" prefHeight="-1.0" prefWidth="-1.0" onMouseClicked="moused(event)">
<children>
<StackPane prefHeight="-1.0" prefWidth="-1.0" style="-fx-background-color: #df0040;" HBox.hgrow="ALWAYS">
<children>
<StackPane prefHeight="16.0" prefWidth="16.0" style="-fx-background-color: #60dc00;" visible="${base.value}" />
</children>
</StackPane>
</children>
</HBox>
</ui>
</dashfx.controls.bases.BooleanControlBase>