| 35 | } |
| 36 | |
| 37 | void PropertyFieldEditBox::notifyApplyProperties(MyGUI::Widget* _sender, bool _force) |
| 38 | { |
| 39 | std::string DEFAULT_VALUE = replaceTags("ColourDefault") + DEFAULT_STRING; |
| 40 | |
| 41 | std::string value = mField->getOnlyText(); |
| 42 | if (value == DEFAULT_STRING && mField->getCaption() == DEFAULT_VALUE) |
| 43 | value.clear(); |
| 44 | |
| 45 | bool goodData = onCheckValue(); |
| 46 | |
| 47 | if (goodData || _force) |
| 48 | { |
| 49 | onAction(value, true); |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | void PropertyFieldEditBox::onAction(std::string_view _value, bool _final) |
| 54 | { |
nothing calls this directly
no test coverage detected