| 149 | } |
| 150 | |
| 151 | void Minimap::DrawModuleOnMinimap(ofRectangle& boundingBox, IDrawableModule* module) |
| 152 | { |
| 153 | ofRectangle moduleRect = module->GetRect(); |
| 154 | ofColor moduleColor(IDrawableModule::GetColor(module->GetModuleCategory())); |
| 155 | if (!module->GetChildren().empty()) |
| 156 | moduleColor.a = 127; |
| 157 | ofSetColor(moduleColor); |
| 158 | ofFill(); |
| 159 | ofRect(CoordsToMinimap(boundingBox, moduleRect)); |
| 160 | } |
| 161 | |
| 162 | void Minimap::RectUnion(ofRectangle& target, ofRectangle& unionRect) |
| 163 | { |
nothing calls this directly
no test coverage detected