MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / ShowQuickspawnForCable

Method ShowQuickspawnForCable

Source/PatchCable.cpp:494–509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

492}
493
494void PatchCable::ShowQuickspawnForCable()
495{
496 Release();
497
498 TheSynth->GetQuickSpawn()->ShowSpawnCategoriesPopupForCable(this);
499 if (mTarget == nullptr) //if we're currently connected to nothing
500 {
501 mOwner->SetPatchCableTarget(this, TheSynth->GetQuickSpawn()->GetMainContainerFollower(), true);
502 }
503 else //if we're inserting
504 {
505 SetTempDrawTarget(TheSynth->GetQuickSpawn()->GetMainContainerFollower());
506 TheSynth->GetQuickSpawn()->SetTempConnection(mTarget, GetConnectionType());
507 }
508 TheSynth->GetQuickSpawn()->GetMainContainerFollower()->UpdateLocation();
509}
510
511IClickable* PatchCable::GetDropTarget()
512{

Callers 1

KeyPressedMethod · 0.80

Calls 6

GetQuickSpawnMethod · 0.80
SetPatchCableTargetMethod · 0.80
SetTempConnectionMethod · 0.80
UpdateLocationMethod · 0.80

Tested by

no test coverage detected