| 45 | } |
| 46 | |
| 47 | void FontTextureController::notifyChangeDataSelector(DataPtr _data, bool _changeOnlySelection) |
| 48 | { |
| 49 | mParentData = _data; |
| 50 | if (mParentData != nullptr && mParentData->getType()->getName() != mParentTypeName) |
| 51 | mParentData = nullptr; |
| 52 | |
| 53 | std::string_view texture; |
| 54 | PropertyPtr property = PropertyUtility::getPropertyByName("Font", "FontName"); |
| 55 | if (property != nullptr) |
| 56 | { |
| 57 | texture = property->getValue(); |
| 58 | } |
| 59 | |
| 60 | updateTexture(texture); |
| 61 | } |
| 62 | |
| 63 | // void FontTextureController::notifyChangeProperty(PropertyPtr _sender) |
| 64 | // { |