MCPcopy Create free account
hub / github.com/MyGUI/mygui / commandTest

Method commandTest

Tools/SkinEditor/TestState.cpp:79–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77 }
78
79 void TestState::commandTest(const MyGUI::UString& _commandName, bool& _result)
80 {
81 if (DialogManager::getInstance().getAnyDialog())
82 return;
83
84 if (MessageBoxManager::getInstance().hasAny())
85 return;
86
87 DataPtr data = DataUtility::getSelectedDataByType("Skin");
88 if (data == nullptr)
89 return;
90
91 StateManager::getInstance().stateEvent("EditorState", "Test");
92
93 _result = true;
94 }
95
96 void TestState::commandQuit(const MyGUI::UString& _commandName, bool& _result)
97 {

Callers

nothing calls this directly

Calls 3

hasAnyMethod · 0.80
stateEventMethod · 0.80
getAnyDialogMethod · 0.45

Tested by

no test coverage detected