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

Method doAction

Tools/SkinEditor/CreateSkinDataAction.cpp:24–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22 }
23
24 void CreateSkinDataAction::doAction()
25 {
26 if (mData == nullptr)
27 {
28 mData = Data::CreateInstance();
29 mData->setType(DataTypeManager::getInstance().getType(mType));
30 SkinDataUtility::CreateSkinData(mData);
31 SkinDataUtility::ShowRegions(mData);
32 }
33
34 mParent->addChild(mData);
35
36 DataSelectorManager::getInstance().changeParent(mParent);
37
38 if (!mUniqueProperty.empty())
39 PropertyUtility::storeUniqueNameProperty("Name", mUniqueProperty, mParent, mOldValues);
40 }
41
42 void CreateSkinDataAction::undoAction()
43 {

Callers

nothing calls this directly

Calls 5

changeParentMethod · 0.80
setTypeMethod · 0.45
getTypeMethod · 0.45
addChildMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected