score
score copied to clipboard
Labels on timenodes with toggleable display
@bltzr so I added label displaying... however it seems that labels were already set to "TimeNode" by default for Timenode, so when loading a score now every TimeNode has a "TimeNode" text displayed next to it.
Do you want me to add a quick if text == "TimeNode" then text.clear()
for a few releases to remove them from the save files ? since I don't think this adds valuable information...
good idea, thanks
I was more thinking about a toggle button, by default on false, which would allow to display labels for some of the timenode.
Because you’d want to have some nodes with labels, but undisplayed ?
A display toggle button is not much more complex to implement than hiding the default name. And yes, it can be usefull to be able to display or not nodes labels. For exemple, during the creation, I do want labels on most nodes to know what is where. Then for the show, I would prefer to display label only for the trigged node and a few others.
makes sense
This implies :
- Adding a "LabelShown" attribute to the ModelMetadata class.
- Adding the information serialization in ModelMetadataSerialization.cpp
- Creating a Command class similar to the one in ChangeElementLabel.hpp
- Modifying MetadataWidget.cpp to show a little checkbox next to the label line (see around line 53) and send the command when it is checked
This would be really usefull