LineParticle3DSection.qml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. // Copyright (C) 2021 The Qt Company Ltd.
  2. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
  3. import QtQuick 2.15
  4. import QtQuick.Layouts 1.15
  5. import HelperWidgets 2.0
  6. import StudioTheme 1.0 as StudioTheme
  7. Section {
  8. caption: qsTr("Line Particle")
  9. width: parent.width
  10. SectionLayout {
  11. PropertyLabel {
  12. text: qsTr("Segments")
  13. tooltip: qsTr("Sets the segment count of the line.")
  14. }
  15. SecondColumnLayout {
  16. SpinBox {
  17. minimumValue: 1
  18. maximumValue: 999999
  19. decimals: 0
  20. backendValue: backendValues.segmentCount
  21. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  22. + StudioTheme.Values.actionIndicatorWidth
  23. }
  24. ExpandingSpacer {}
  25. }
  26. PropertyLabel {
  27. text: qsTr("Alpha Fade")
  28. tooltip: qsTr("Sets the line fade amount per segment.")
  29. }
  30. SecondColumnLayout {
  31. SpinBox {
  32. minimumValue: 0.0
  33. maximumValue: 1.0
  34. stepSize: 0.01
  35. decimals: 2
  36. backendValue: backendValues.alphaFade
  37. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  38. + StudioTheme.Values.actionIndicatorWidth
  39. }
  40. ExpandingSpacer {}
  41. }
  42. PropertyLabel {
  43. text: qsTr("Scale Multiplier")
  44. tooltip: qsTr("Sets the scale multiplier per segment.")
  45. }
  46. SecondColumnLayout {
  47. SpinBox {
  48. minimumValue: 0.0
  49. maximumValue: 2.0
  50. decimals: 2
  51. stepSize: 0.01
  52. backendValue: backendValues.scaleMultiplier
  53. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  54. + StudioTheme.Values.actionIndicatorWidth
  55. }
  56. ExpandingSpacer {}
  57. }
  58. PropertyLabel {
  59. text: qsTr("Texcoord Multiplier")
  60. tooltip: qsTr("Sets the texture coordinate multiplier of the line.")
  61. }
  62. SecondColumnLayout {
  63. SpinBox {
  64. minimumValue: -99999.0
  65. maximumValue: 99999.0
  66. decimals: 2
  67. backendValue: backendValues.texcoordMultiplier
  68. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  69. + StudioTheme.Values.actionIndicatorWidth
  70. }
  71. ExpandingSpacer {}
  72. }
  73. PropertyLabel {
  74. text: qsTr("Texcoord Mode")
  75. tooltip: qsTr("Sets the texture coordinate mode of the line.")
  76. }
  77. SecondColumnLayout {
  78. ComboBox {
  79. scope: "LineParticle3D"
  80. model: ["Absolute", "Relative", "Fill"]
  81. backendValue: backendValues.texcoordMode
  82. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  83. + StudioTheme.Values.actionIndicatorWidth
  84. }
  85. ExpandingSpacer {}
  86. }
  87. PropertyLabel {
  88. text: qsTr("Line Length")
  89. tooltip: qsTr("Sets the length of the line.")
  90. }
  91. SecondColumnLayout {
  92. SpinBox {
  93. minimumValue: 0.0
  94. maximumValue: 99999.0
  95. decimals: 2
  96. backendValue: backendValues.length
  97. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  98. + StudioTheme.Values.actionIndicatorWidth
  99. }
  100. ExpandingSpacer {}
  101. }
  102. PropertyLabel {
  103. text: qsTr("Line Length Variation")
  104. tooltip: qsTr("Sets the length variation of the line.")
  105. }
  106. SecondColumnLayout {
  107. SpinBox {
  108. minimumValue: 0.0
  109. maximumValue: 99999.0
  110. decimals: 2
  111. backendValue: backendValues.lengthVariation
  112. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  113. + StudioTheme.Values.actionIndicatorWidth
  114. }
  115. ExpandingSpacer {}
  116. }
  117. PropertyLabel {
  118. text: qsTr("Min Segment Length")
  119. tooltip: qsTr("Sets the minimum length between line segments.")
  120. }
  121. SecondColumnLayout {
  122. SpinBox {
  123. minimumValue: 0.0
  124. maximumValue: 99999.0
  125. decimals: 2
  126. backendValue: backendValues.lengthDeltaMin
  127. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  128. + StudioTheme.Values.actionIndicatorWidth
  129. }
  130. ExpandingSpacer {}
  131. }
  132. PropertyLabel {
  133. text: qsTr("EOL Fade Out")
  134. tooltip: qsTr("Sets the fade out duration after the end of particle lifetime.")
  135. }
  136. SecondColumnLayout {
  137. SpinBox {
  138. minimumValue: 0.0
  139. maximumValue: 99999.0
  140. decimals: 2
  141. backendValue: backendValues.eolFadeOutDuration
  142. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  143. + StudioTheme.Values.actionIndicatorWidth
  144. }
  145. ExpandingSpacer {}
  146. }
  147. }
  148. }