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

Method commandCreateImageData

Tools/SkinEditor/SkinListControl.cpp:40–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 }
39
40 void SkinListControl::commandCreateImageData(const MyGUI::UString& _commandName, bool& _result)
41 {
42 if (!checkCommand(_result))
43 return;
44
45 DataPtr data = DataUtility::getSelectedDataByType(getParentType());
46 if (data != nullptr)
47 {
48 CreateSkinDataAction* command = new CreateSkinDataAction();
49 command->setType(getCurrentType());
50 command->setParent(data);
51 command->setUniqueProperty(getPropertyForUnique());
52
53 ActionManager::getInstance().doAction(command);
54 }
55
56 _result = true;
57 }
58
59}

Callers

nothing calls this directly

Calls 4

setTypeMethod · 0.45
setParentMethod · 0.45
setUniquePropertyMethod · 0.45
doActionMethod · 0.45

Tested by

no test coverage detected