// 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 {} } } }