| 91 | } |
| 92 | |
| 93 | void BaseWidget::SetBackgroundColor(const Nz::Color& color) |
| 94 | { |
| 95 | m_backgroundColor = color; |
| 96 | |
| 97 | if (m_backgroundSprite) |
| 98 | { |
| 99 | m_backgroundSprite->SetColor(color); |
| 100 | m_backgroundSprite->GetMaterial()->Configure((color.IsOpaque()) ? "Basic2D" : "Translucent2D"); //< Our sprite has its own material (see EnableBackground) |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | void BaseWidget::SetCursor(Nz::SystemCursor systemCursor) |
| 105 | { |