This revealed to me that It’s possible to create a Tree, with an incremental/decrement option. In the Image, there is a Tree with a Sub-tree where I can chance the value “8.8” by clicking up or down.
But I can’t find out how to make that myself ? I searched everywhere…
Thanks everyone for the suggestions. And thanks for looking it up @gertkeno
Can this be done without code? I’m wondering if I can just add a Tree and then add some elements as children and set the mode to CELL_MODE_RANGE as you point out.
extends Node2D
func _ready():
extends Node2D
func _ready():
# get the tree
var quest_tree = $Tree
# create root and rename it
var root = quest_tree.create_item()
root.set_text(0, "Settings")
# create some sections and rename them
var section1 = quest_tree.create_item(root)
section1.set_text(0, "Speed")
var section2 = quest_tree.create_item(root)
section2.set_text(0, "Loudness")
Okay I managed to fix the issue of expanding the Tree automatically when mouse enters the tree. (Pointer was not recorded, so it looks a bit confusing)
Now I would really really love your help on how to make that set_cell_mode with range. PLEASE
Just to clarify, it’s the increment/decrement in the subtree showed in this example: