mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-05-14 07:47:29 +08:00
Pin name small adjustment
This commit is contained in:
17
dist/ueblueprint.js
vendored
17
dist/ueblueprint.js
vendored
@@ -1854,6 +1854,7 @@ class PinTypeEntity extends IEntity {
|
||||
/** @type {Boolean} */ this.bIsWeakPointer;
|
||||
/** @type {Boolean} */ this.bIsUObjectWrapper;
|
||||
/** @type {Boolean} */ this.bIsUObjectWrapper;
|
||||
/** @type {Boolean} */ this.bSerializeAsSinglePrecisionFloat;
|
||||
}
|
||||
|
||||
/** @param {PinTypeEntity} other */
|
||||
@@ -2122,18 +2123,18 @@ class PinEntity extends IEntity {
|
||||
}
|
||||
|
||||
getDisplayName() {
|
||||
let matchResult = null;
|
||||
let result = Utility.formatStringName(this.PinFriendlyName?.toString() ?? this.PinName);
|
||||
let match;
|
||||
if (
|
||||
this.PinToolTip
|
||||
// Match up until the first \n excluded or last character
|
||||
&& (matchResult = this.PinToolTip.match(/\s*(.+?(?=\n)|.+\S)\s*/))
|
||||
&& (match = this.PinToolTip.match(/\s*(.+?(?=\n)|.+\S)\s*/))
|
||||
) {
|
||||
return matchResult[1]
|
||||
if (match[1].toLowerCase() === result.toLowerCase()) {
|
||||
return match[1]
|
||||
}
|
||||
}
|
||||
if (this.PinFriendlyName) {
|
||||
return Utility.formatStringName(this.PinFriendlyName.toString())
|
||||
}
|
||||
return Utility.formatStringName(this.PinName)
|
||||
return result
|
||||
}
|
||||
|
||||
/** @param {PinEntity} other */
|
||||
@@ -2148,7 +2149,7 @@ class PinEntity extends IEntity {
|
||||
this.PinType.bIsConst = other.PinType.bIsConst;
|
||||
this.PinType.bIsWeakPointer = other.PinType.bIsWeakPointer;
|
||||
this.PinType.bIsUObjectWrapper = other.PinType.bIsUObjectWrapper;
|
||||
this.PinType$bSerializeAsSinglePrecisionFloat = other.PinType$bSerializeAsSinglePrecisionFloat;
|
||||
this.PinType.bSerializeAsSinglePrecisionFloat = other.PinType.bSerializeAsSinglePrecisionFloat;
|
||||
}
|
||||
|
||||
getDefaultValue(maybeCreate = false) {
|
||||
|
||||
2
dist/ueblueprint.min.js
vendored
2
dist/ueblueprint.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user