]> git.localhorst.tv Git - blobs.git/blobdiff - src/ui/RecordsPanel.hpp
track top ten for each record
[blobs.git] / src / ui / RecordsPanel.hpp
index 032ad5664d0970b25739b9801d8228d257fe690f..150a7a0d3c4ed3c53fb4200e98cf452f66798f9d 100644 (file)
@@ -24,12 +24,19 @@ public:
 public:
        void Draw(graphics::Viewport &) noexcept;
 
+       void Show() noexcept { shown = true; }
+       void Hide() noexcept { shown = false; }
+       void Toggle() noexcept { shown = !shown; }
+       bool Shown() const noexcept { return shown; }
+
+       void ZIndex(float z) noexcept { panel.ZIndex(z); }
+
 private:
        world::Simulation ∼
-       Label *live;
        std::vector<Label *> records;
        std::vector<Label *> holders;
        Panel panel;
+       bool shown;
 
 };