Add ability to control property display name via the 'descriptor' of the property info

This commit is contained in:
RobTheFiveNine
2020-10-05 17:45:06 +01:00
parent e9fd6af6a9
commit 99b7e93f2d
3 changed files with 22 additions and 22 deletions

View File

@@ -9453,7 +9453,7 @@ LGraphNode.prototype.executeAction = function(action)
entries.push({
content:
"<span class='property_name'>" +
i +
(info.descriptor ? info.descriptor : i) +
"</span>" +
"<span class='property_value'>" +
value +
@@ -10051,7 +10051,7 @@ LGraphNode.prototype.executeAction = function(action)
var dialog = this.createDialog(
"<span class='name'>" +
property +
(info.descriptor ? info.descriptor : property) +
"</span>" +
input_html +
"<button>OK</button>",