mirror of
https://github.com/overte-org/overte.git
synced 2025-04-16 15:02:10 +02:00
Added description for each event
This commit is contained in:
parent
07cb1c1f9e
commit
648e6a6c9b
1 changed files with 15 additions and 0 deletions
|
@ -75,6 +75,14 @@ Rectangle {
|
|||
}
|
||||
}
|
||||
onCurrentIndexChanged: {
|
||||
var descriptions = [
|
||||
"Time based threshold, gradients centered on object",
|
||||
"Fixed threshold, gradients centered on owner avatar",
|
||||
"Position based threshold (increases when trespasser moves closer to avatar), gradients centered on trespasser avatar",
|
||||
"Time based threshold, gradients centered on bottom of object",
|
||||
"UNSUPPORTED"
|
||||
]
|
||||
description.text = descriptions[currentIndex]
|
||||
root.config["editedCategory"] = currentIndex;
|
||||
// This is a hack to be sure the widgets below properly reflect the change of category: delete the Component
|
||||
// by setting the loader source to Null and then recreate it 100ms later
|
||||
|
@ -98,6 +106,13 @@ Rectangle {
|
|||
}
|
||||
}
|
||||
|
||||
HifiControls.Label {
|
||||
id: description
|
||||
text: "..."
|
||||
Layout.fillWidth: true
|
||||
wrapMode: Text.WordWrap
|
||||
}
|
||||
|
||||
RowLayout {
|
||||
spacing: 20
|
||||
height: 36
|
||||
|
|
Loading…
Reference in a new issue