| 51 | } |
| 52 | |
| 53 | void PropertyFieldColour::notifyApplyProperties(MyGUI::Widget* _sender, bool _force) |
| 54 | { |
| 55 | bool goodData = onCheckValue(); |
| 56 | |
| 57 | if (goodData || _force) |
| 58 | { |
| 59 | std::string DEFAULT_VALUE = replaceTags("ColourDefault") + DEFAULT_STRING; |
| 60 | |
| 61 | std::string value = mField->getOnlyText(); |
| 62 | if (value == DEFAULT_STRING && mField->getCaption() == DEFAULT_VALUE) |
| 63 | value.clear(); |
| 64 | |
| 65 | onAction(value, true); |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | void PropertyFieldColour::onAction(std::string_view _value, bool _final) |
| 70 | { |
nothing calls this directly
no test coverage detected