| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176 |
- // Copyright (C) 2021 The Qt Company Ltd.
- // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
- import QtQuick 2.15
- import QtQuick.Layouts 1.15
- import HelperWidgets 2.0
- import StudioTheme 1.0 as StudioTheme
- Section {
- caption: qsTr("Line Particle")
- width: parent.width
- SectionLayout {
- PropertyLabel {
- text: qsTr("Segments")
- tooltip: qsTr("Sets the segment count of the line.")
- }
- SecondColumnLayout {
- SpinBox {
- minimumValue: 1
- maximumValue: 999999
- decimals: 0
- backendValue: backendValues.segmentCount
- implicitWidth: StudioTheme.Values.singleControlColumnWidth
- + StudioTheme.Values.actionIndicatorWidth
- }
- ExpandingSpacer {}
- }
- PropertyLabel {
- text: qsTr("Alpha Fade")
- tooltip: qsTr("Sets the line fade amount per segment.")
- }
- SecondColumnLayout {
- SpinBox {
- minimumValue: 0.0
- maximumValue: 1.0
- stepSize: 0.01
- decimals: 2
- backendValue: backendValues.alphaFade
- implicitWidth: StudioTheme.Values.singleControlColumnWidth
- + StudioTheme.Values.actionIndicatorWidth
- }
- ExpandingSpacer {}
- }
- PropertyLabel {
- text: qsTr("Scale Multiplier")
- tooltip: qsTr("Sets the scale multiplier per segment.")
- }
- SecondColumnLayout {
- SpinBox {
- minimumValue: 0.0
- maximumValue: 2.0
- decimals: 2
- stepSize: 0.01
- backendValue: backendValues.scaleMultiplier
- implicitWidth: StudioTheme.Values.singleControlColumnWidth
- + StudioTheme.Values.actionIndicatorWidth
- }
- ExpandingSpacer {}
- }
- PropertyLabel {
- text: qsTr("Texcoord Multiplier")
- tooltip: qsTr("Sets the texture coordinate multiplier of the line.")
- }
- SecondColumnLayout {
- SpinBox {
- minimumValue: -99999.0
- maximumValue: 99999.0
- decimals: 2
- backendValue: backendValues.texcoordMultiplier
- implicitWidth: StudioTheme.Values.singleControlColumnWidth
- + StudioTheme.Values.actionIndicatorWidth
- }
- ExpandingSpacer {}
- }
- PropertyLabel {
- text: qsTr("Texcoord Mode")
- tooltip: qsTr("Sets the texture coordinate mode of the line.")
- }
- SecondColumnLayout {
- ComboBox {
- scope: "LineParticle3D"
- model: ["Absolute", "Relative", "Fill"]
- backendValue: backendValues.texcoordMode
- implicitWidth: StudioTheme.Values.singleControlColumnWidth
- + StudioTheme.Values.actionIndicatorWidth
- }
- ExpandingSpacer {}
- }
- PropertyLabel {
- text: qsTr("Line Length")
- tooltip: qsTr("Sets the length of the line.")
- }
- SecondColumnLayout {
- SpinBox {
- minimumValue: 0.0
- maximumValue: 99999.0
- decimals: 2
- backendValue: backendValues.length
- implicitWidth: StudioTheme.Values.singleControlColumnWidth
- + StudioTheme.Values.actionIndicatorWidth
- }
- ExpandingSpacer {}
- }
- PropertyLabel {
- text: qsTr("Line Length Variation")
- tooltip: qsTr("Sets the length variation of the line.")
- }
- SecondColumnLayout {
- SpinBox {
- minimumValue: 0.0
- maximumValue: 99999.0
- decimals: 2
- backendValue: backendValues.lengthVariation
- implicitWidth: StudioTheme.Values.singleControlColumnWidth
- + StudioTheme.Values.actionIndicatorWidth
- }
- ExpandingSpacer {}
- }
- PropertyLabel {
- text: qsTr("Min Segment Length")
- tooltip: qsTr("Sets the minimum length between line segments.")
- }
- SecondColumnLayout {
- SpinBox {
- minimumValue: 0.0
- maximumValue: 99999.0
- decimals: 2
- backendValue: backendValues.lengthDeltaMin
- implicitWidth: StudioTheme.Values.singleControlColumnWidth
- + StudioTheme.Values.actionIndicatorWidth
- }
- ExpandingSpacer {}
- }
- PropertyLabel {
- text: qsTr("EOL Fade Out")
- tooltip: qsTr("Sets the fade out duration after the end of particle lifetime.")
- }
- SecondColumnLayout {
- SpinBox {
- minimumValue: 0.0
- maximumValue: 99999.0
- decimals: 2
- backendValue: backendValues.eolFadeOutDuration
- implicitWidth: StudioTheme.Values.singleControlColumnWidth
- + StudioTheme.Values.actionIndicatorWidth
- }
- ExpandingSpacer {}
- }
- }
- }
|