DynamicBurst3DSection.qml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. // Copyright (C) 2022 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("Particle Dynamic Burst")
  9. width: parent.width
  10. SectionLayout {
  11. PropertyLabel {
  12. text: qsTr("Trigger Mode")
  13. tooltip: qsTr("Sets the triggering mode used for emitting the particles.")
  14. }
  15. SecondColumnLayout {
  16. ComboBox {
  17. scope: "DynamicBurst3D"
  18. model: ["TriggerTime", "TriggerStart", "TriggerEnd"]
  19. backendValue: backendValues.triggerMode
  20. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  21. + StudioTheme.Values.actionIndicatorWidth
  22. }
  23. ExpandingSpacer {}
  24. }
  25. PropertyLabel {
  26. text: qsTr("Amount Variation")
  27. tooltip: qsTr("Sets the random variation in particle emit amount.")
  28. }
  29. SecondColumnLayout {
  30. SpinBox {
  31. minimumValue: 0
  32. maximumValue: 999999
  33. decimals: 0
  34. backendValue: backendValues.amountVariation
  35. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  36. + StudioTheme.Values.actionIndicatorWidth
  37. }
  38. ExpandingSpacer {}
  39. }
  40. PropertyLabel {
  41. text: qsTr("Enabled")
  42. tooltip: qsTr("If set to false, this burst will not emit any particles. Usually this is used to conditionally turn a burst on or off.")
  43. }
  44. SecondColumnLayout {
  45. CheckBox {
  46. id: enabledCheckBox
  47. text: backendValues.enabled.valueToString
  48. backendValue: backendValues.enabled
  49. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  50. + StudioTheme.Values.actionIndicatorWidth
  51. }
  52. ExpandingSpacer {}
  53. }
  54. }
  55. }