Browse Source

Hide metadata when mouse leaves ModelItem

tags/v0.5.0
Andrew Belt 7 years ago
parent
commit
b702fb5e8a
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      src/app/AddModuleWindow.cpp

+ 4
- 1
src/app/AddModuleWindow.cpp View File

@@ -120,6 +120,10 @@ struct ModelItem : MenuItem {
sModel = model;
MenuItem::onMouseEnter(e);
}
void onMouseLeave(EventMouseLeave &e) override {
sModel = NULL;
MenuItem::onMouseLeave(e);
}
};


@@ -283,7 +287,6 @@ AddModuleWindow::AddModuleWindow() {

// NVGcolor c = bndTransparent(nvgRGB(0, 0, 0));
NVGcolor c = bndGetTheme()->nodeTheme.nodeBackdropColor;
printf("%f %f %f %f\n", c.r, c.g, c.b, c.a);
}




Loading…
Cancel
Save