Files
PlanetFleet/tooltip.h
T
2026-08-07 10:30:44 +03:00

38 lines
793 B
C++

#ifndef TOOLTIP_H
#define TOOLTIP_H
#include <vector.h>
#include <vector>
#include <utility>
#include <string>
namespace vb01{
class Quad;
class Text;
}
namespace battleship{
class Tooltip{
public:
struct LineData{
std::wstring entryText;
vb01::Vector4 textColor;
std::vector<std::pair<int, std::string>> iconsData;
LineData(std::wstring et, vb01::Vector4 tc, std::vector<std::pair<int, std::string>> id) : entryText(et), textColor(tc), iconsData(id){};
};
Tooltip(vb01::Vector3, vb01::Vector2, std::vector<LineData>, std::string);
~Tooltip();
void update();
inline vb01::Quad* getBackground(){return background;}
private:
vb01::Vector3 pos;
vb01::Vector2 size;
vb01::Quad *background = nullptr;
};
}
#endif