|
|
@@ -29,19 +29,6 @@ void RackScrollWidget::step() { |
|
|
|
|
|
|
|
void RackScrollWidget::draw(const DrawContext &ctx) { |
|
|
|
ScrollWidget::draw(ctx); |
|
|
|
|
|
|
|
if (app()->scene->rackWidget->isEmpty()) { |
|
|
|
math::Rect b; |
|
|
|
b.size = math::Vec(600, 300); |
|
|
|
b.pos = box.size.minus(b.size).div(2); |
|
|
|
NVGcolor bg = nvgRGBAf(0, 0, 0, 0.4); |
|
|
|
bndInnerBox(ctx.vg, b.pos.x, b.pos.y, b.size.x, b.size.y, |
|
|
|
0, 0, 0, 0, bg, bg); |
|
|
|
|
|
|
|
NVGcolor fg = nvgRGBAf(1, 1, 1, 0.25); |
|
|
|
std::string text = "Right-click or press Enter to add modules"; |
|
|
|
bndIconLabelValue(ctx.vg, b.pos.x, b.pos.y + 80, b.size.x, b.size.y, -1, fg, BND_CENTER, 80, text.c_str(), NULL); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|