forked from IQ.Lvbs/IQ.Pilot
IQ.Pilot Release Commit @ 0b96bd5
This commit is contained in:
24
iqpilot/tools/cabana/ui/helpoverlay.h
Normal file
24
iqpilot/tools/cabana/ui/helpoverlay.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "imgui_internal.h"
|
||||
|
||||
|
||||
|
||||
|
||||
class HelpOverlay {
|
||||
public:
|
||||
void toggle();
|
||||
bool visible() const { return visible_; }
|
||||
|
||||
void add(const std::string &text, const ImRect &rect);
|
||||
void draw();
|
||||
|
||||
private:
|
||||
std::vector<std::pair<std::string, ImRect>> texts_;
|
||||
bool visible_ = false;
|
||||
int opened_frame_ = -1;
|
||||
};
|
||||
Reference in New Issue
Block a user