Sound cue nodes and bottom graph type right text

This commit is contained in:
barsdeveloper
2025-04-04 23:48:34 +03:00
parent fb7fc9fc66
commit 9c0e172630
14 changed files with 170 additions and 25 deletions

View File

@@ -6,7 +6,7 @@ const p = Configuration.paths
/** @param {ObjectEntity} entity */
export default function nodeIcon(entity) {
if (entity.isMaterial() || entity.isPcg() || entity.isNiagara()) {
if (entity.isMaterial() || entity.isPcg() || entity.isSoundCue() || entity.isNiagara()) {
return null
}
switch (entity.getType()) {

View File

@@ -268,6 +268,13 @@ export default function nodeTitle(entity) {
return "Input"
case p.pcgEditorGraphNodeOutput:
return "Output"
case p.soundNodeWavePlayer:
return `Wave Player : ${entity.getSounCueSubobject()
?.SoundWaveAssetPtr
?.type
.match(/([^.]+)$/)
?.[0]
?? "NONE"}`
case p.spawnActorFromClass:
let className = entity.getCustomproperties()
.find(pinEntity => pinEntity.PinName.toString() == "ReturnValue")
@@ -323,6 +330,10 @@ export default function nodeTitle(entity) {
let result = pcgSubobject.NodeTitle ? pcgSubobject.NodeTitle.toString() : nodeTitle(pcgSubobject)
return result
}
const soundCueSubobject = entity.getSounCueSubobject()
if (soundCueSubobject) {
return Utility.formatStringName(soundCueSubobject.getObjectName(true).replace(/^SoundNode/, ""))
}
const subgraphObject = entity.getSubgraphObject()
if (subgraphObject) {
return subgraphObject.Graph.getName()