Slight ui cleanup
This commit is contained in:
@@ -318,20 +318,6 @@ MyStackViewPage {
|
||||
}
|
||||
}
|
||||
|
||||
GroupBox {
|
||||
Layout.fillWidth: true
|
||||
|
||||
label: MyText {
|
||||
leftPadding: 10
|
||||
text: "Space Drag Binding"
|
||||
bottomPadding: -10
|
||||
}
|
||||
background: Rectangle {
|
||||
color: "transparent"
|
||||
border.color: "#ffffff"
|
||||
radius: 8
|
||||
}
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
RowLayout {
|
||||
|
||||
@@ -47,7 +47,7 @@ GroupBox {
|
||||
MyText {
|
||||
text: "Gravity Strength (+ is down):"
|
||||
horizontalAlignment: Text.AlignRight
|
||||
Layout.rightMargin: 10
|
||||
Layout.rightMargin: 2
|
||||
}
|
||||
|
||||
MyTextField {
|
||||
@@ -118,14 +118,14 @@ GroupBox {
|
||||
}
|
||||
|
||||
MyText {
|
||||
text: "Fling Strength"
|
||||
text: "Fling Strength:"
|
||||
horizontalAlignment: Text.AlignRight
|
||||
Layout.rightMargin: 10
|
||||
Layout.rightMargin: 2
|
||||
}
|
||||
|
||||
MyTextField {
|
||||
id: flingStrengthText
|
||||
text: "1.00"
|
||||
text: "1.0"
|
||||
keyBoardUID: 153
|
||||
Layout.preferredWidth: 120
|
||||
Layout.leftMargin: 10
|
||||
@@ -134,14 +134,46 @@ GroupBox {
|
||||
function onInputEvent(input) {
|
||||
var val = parseFloat(input)
|
||||
if (!isNaN(val)) {
|
||||
MoveCenterTabController.flingStrength = val.toFixed(2)
|
||||
text = MoveCenterTabController.flingStrength.toFixed(2)
|
||||
MoveCenterTabController.flingStrength = val.toFixed(1)
|
||||
text = MoveCenterTabController.flingStrength.toFixed(1)
|
||||
} else {
|
||||
text = MoveCenterTabController.flingStrength.toFixed(2)
|
||||
text = MoveCenterTabController.flingStrength.toFixed(1)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
MyPushButton2 {
|
||||
Layout.preferredWidth: 50
|
||||
text: "1x"
|
||||
onClicked: {
|
||||
MoveCenterTabController.flingStrength = 1.0
|
||||
}
|
||||
}
|
||||
|
||||
MyPushButton2 {
|
||||
Layout.preferredWidth: 50
|
||||
text: "2x"
|
||||
onClicked: {
|
||||
MoveCenterTabController.flingStrength = 2.0
|
||||
}
|
||||
}
|
||||
|
||||
MyPushButton2 {
|
||||
Layout.preferredWidth: 50
|
||||
text: "3x"
|
||||
onClicked: {
|
||||
MoveCenterTabController.flingStrength = 3.0
|
||||
}
|
||||
}
|
||||
|
||||
MyPushButton2 {
|
||||
Layout.preferredWidth: 50
|
||||
text: "4x"
|
||||
onClicked: {
|
||||
MoveCenterTabController.flingStrength = 4.0
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ GroupBox {
|
||||
MyText {
|
||||
text: "Height Offset (+ is down):"
|
||||
horizontalAlignment: Text.AlignRight
|
||||
Layout.rightMargin: 10
|
||||
Layout.rightMargin: 2
|
||||
}
|
||||
|
||||
MyTextField {
|
||||
@@ -64,7 +64,7 @@ GroupBox {
|
||||
MoveCenterTabController.heightToggleOffset = val.toFixed(2)
|
||||
text = MoveCenterTabController.heightToggleOffset.toFixed(2)
|
||||
} else {
|
||||
text = MoveCenterTabController.heighToggleOffset.toFixed(2)
|
||||
text = MoveCenterTabController.heightToggleOffset.toFixed(2)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,30 +8,18 @@ GroupBox {
|
||||
id: snapTurnGroupBox
|
||||
Layout.fillWidth: true
|
||||
|
||||
label: MyText {
|
||||
leftPadding: 10
|
||||
text: "Snap Turn Angle"
|
||||
bottomPadding: -10
|
||||
}
|
||||
background: Rectangle {
|
||||
color: "transparent"
|
||||
border.color: "#ffffff"
|
||||
radius: 8
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
anchors.fill: parent
|
||||
|
||||
Rectangle {
|
||||
color: "#ffffff"
|
||||
height: 1
|
||||
Layout.fillWidth: true
|
||||
Layout.bottomMargin: 5
|
||||
}
|
||||
|
||||
RowLayout {
|
||||
Layout.fillWidth: true
|
||||
|
||||
MyText {
|
||||
text: "Snap Turn Angle:"
|
||||
horizontalAlignment: Text.AlignRight
|
||||
Layout.rightMargin: 2
|
||||
}
|
||||
|
||||
MyTextField {
|
||||
id: snapTurnAngleText
|
||||
text: "45°"
|
||||
|
||||
Reference in New Issue
Block a user