| 1030 | } |
| 1031 | |
| 1032 | Color UINode::getDroppableHoveringColor() { |
| 1033 | const PropertyDefinition* def = |
| 1034 | StyleSheetSpecification::instance()->getProperty( "droppable-hovering-color" ); |
| 1035 | Color color = Color::fromString( def->getDefaultValue() ); |
| 1036 | if ( isWidget() ) { |
| 1037 | UIWidget* widget = asType<UIWidget>(); |
| 1038 | std::string colorString = widget->getPropertyString( def ); |
| 1039 | if ( !colorString.empty() ) { |
| 1040 | color = Color::fromString( colorString ); |
| 1041 | } else { |
| 1042 | colorString = mUISceneNode->getRoot()->getPropertyString( def ); |
| 1043 | if ( !colorString.empty() ) |
| 1044 | color = Color::fromString( colorString ); |
| 1045 | } |
| 1046 | } |
| 1047 | return color; |
| 1048 | } |
| 1049 | |
| 1050 | void UINode::nodeDraw() { |
| 1051 | if ( mVisible ) { |
nothing calls this directly
no test coverage detected