ModelBlendParticle3DSection.qml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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("Model Blend Particle")
  9. width: parent.width
  10. SectionLayout {
  11. PropertyLabel {
  12. text: qsTr("Delegate")
  13. tooltip: qsTr("The delegate provides a template defining the model for the ModelBlendParticle3D.")
  14. }
  15. SecondColumnLayout {
  16. ItemFilterComboBox {
  17. typeFilter: "Component"
  18. backendValue: backendValues.delegate
  19. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  20. + StudioTheme.Values.actionIndicatorWidth
  21. }
  22. ExpandingSpacer {}
  23. }
  24. PropertyLabel {
  25. text: qsTr("End Node")
  26. tooltip: qsTr("Sets the node that specifies the transformation for the model at the end of particle effect.")
  27. }
  28. SecondColumnLayout {
  29. ItemFilterComboBox {
  30. typeFilter: "QtQuick3D.Node"
  31. backendValue: backendValues.endNode
  32. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  33. + StudioTheme.Values.actionIndicatorWidth
  34. }
  35. ExpandingSpacer {}
  36. }
  37. PropertyLabel {
  38. text: qsTr("Model Blend Mode")
  39. tooltip: qsTr("Sets blending mode for the particle effect.")
  40. }
  41. SecondColumnLayout {
  42. ComboBox {
  43. scope: "ModelBlendParticle3D"
  44. model: ["Explode", "Construct", "Transfer"]
  45. backendValue: backendValues.modelBlendMode
  46. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  47. + StudioTheme.Values.actionIndicatorWidth
  48. }
  49. ExpandingSpacer {}
  50. }
  51. PropertyLabel {
  52. text: qsTr("End Time")
  53. tooltip: qsTr("Sets the end time of the particle in milliseconds.")
  54. }
  55. SecondColumnLayout {
  56. SpinBox {
  57. minimumValue: 0
  58. maximumValue: 999999
  59. decimals: 0
  60. backendValue: backendValues.endTime
  61. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  62. + StudioTheme.Values.actionIndicatorWidth
  63. }
  64. ExpandingSpacer {}
  65. }
  66. PropertyLabel {
  67. text: qsTr("Activation Node")
  68. tooltip: qsTr("Sets a node that activates particles.")
  69. }
  70. SecondColumnLayout {
  71. ItemFilterComboBox {
  72. typeFilter: "QtQuick3D.Node"
  73. backendValue: backendValues.activationNode
  74. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  75. + StudioTheme.Values.actionIndicatorWidth
  76. }
  77. ExpandingSpacer {}
  78. }
  79. PropertyLabel {
  80. text: qsTr("Emit Mode")
  81. tooltip: qsTr("Sets emit mode of the particles.")
  82. }
  83. SecondColumnLayout {
  84. ComboBox {
  85. id: randomCheckBox
  86. model: ["Sequential", "Random", "Activation"]
  87. backendValue: backendValues.emitMode
  88. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  89. + StudioTheme.Values.actionIndicatorWidth
  90. }
  91. ExpandingSpacer {}
  92. }
  93. }
  94. }