Added basic graphic settings.

This commit is contained in:
armored-dragon 2024-09-05 02:15:24 -05:00
parent 5b1f332bfe
commit ae198ea1ee
No known key found for this signature in database
GPG key ID: C7207ACC3382AD8B
2 changed files with 82 additions and 7 deletions

View file

@ -12,10 +12,6 @@
/* global Script Tablet */
// TODO: Bind Target frame Rate to Graphics Preset
// TODO: Refresh rates
// TODO: Rendering scale
// TODO: FOV
// TODO: Anti-Aliasing
// TODO: Fullscreen display?
(() => {

View file

@ -35,7 +35,6 @@ Rectangle {
}
}
// Graphics
ColumnLayout {
width: parent.width - 10
@ -68,7 +67,6 @@ Rectangle {
ListElement { text: "High" }
ListElement { text: "Custom" }
}
onCurrentIndexChanged: console.debug(cbItems.get(currentIndex).text + ", " + cbItems.get(currentIndex).color)
}
}
@ -89,10 +87,13 @@ Rectangle {
id: rendering_effects_state
}
}
// FIXME: Height is hardcoded
// Rendering Effects sub options
Item {
Layout.fillWidth: true
visible: rendering_effects_state.checked == true
height: 100
Rectangle {
color: "#333333"
@ -102,7 +103,7 @@ Rectangle {
GridLayout {
columns: 2
height: implicitHeight + 10
height: 100
width: parent.width - 10
anchors.horizontalCenter: parent.horizontalCenter
@ -152,6 +153,84 @@ Rectangle {
validator: RegExpValidator { regExp: /[0-9]*/ }
}
}
// Resolution Scale
RowLayout {
width: parent.width
Text {
text: "Resolution Scale"
color: "white"
height: parent.height
width: parent.width - 150
font.pointSize: 14
Layout.fillWidth: true
}
Text {
text: parent.children[2].value.toFixed(1)
color: "white"
}
Slider {
id: resolution_slider
from: 0.1
to: 2
value: 1
stepSize: 0.1
}
}
// FOV
RowLayout {
width: parent.width
Text {
text: "FOV"
color: "white"
height: parent.height
width: parent.width - 150
font.pointSize: 14
Layout.fillWidth: true
}
Text {
text: parent.children[2].value.toFixed(1)
color: "white"
}
Slider {
id: fov_slider
from: 20
to: 130
value: 90 // TODO: Need to set to Overte default
stepSize: 1
}
}
// Graphics Presets
RowLayout {
width: parent.width
Text {
text: "Anti-Aliasing"
color: "white"
height: parent.height
width: parent.width - 150
font.pointSize: 14
Layout.fillWidth: true
}
ComboBox {
currentIndex: 2
Layout.fillWidth: true
model: ListModel {
ListElement { text: "None" }
ListElement { text: "TAA" }
ListElement { text: "FXAA" }
}
}
}
}
// Templates