| 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 | } |
nothing calls this directly
no test coverage detected