MCPcopy Create free account
hub / github.com/benkuper/Chataigne / finishCreateTransition

Method finishCreateTransition

Source/StateMachine/ui/StateMachineView.cpp:169–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169void StateMachineView::finishCreateTransition(StateViewUI * destUI)
170{
171 transitionCreationMode = false;
172
173 if (transitionCreationSourceUI != nullptr && destUI != nullptr && destUI != transitionCreationSourceUI)
174 {
175 manager->stm.addItem(manager->stm.createItem(transitionCreationSourceUI->item, destUI->item));
176 }
177
178 for (auto &sui : itemsUI)
179 {
180 sui->setTransitionReceptionMode(StateViewUI::NONE);
181 }
182
183 repaint();
184}
185
186void StateMachineView::cancelCreateTransition()
187{

Callers

nothing calls this directly

Calls 2

createItemMethod · 0.45

Tested by

no test coverage detected