#pragma once #include "../GuiComponent.h" class ImageComponent; class TextureResource; class ComponentGrid; class HelpComponent : public GuiComponent { public: HelpComponent(Window* window); void clearPrompts(); void setPrompts(const std::vector& prompts); void render(const Eigen::Affine3f& parent) override; private: std::shared_ptr getIconTexture(const char* name); std::map< std::string, std::shared_ptr > mIconCache; std::shared_ptr mGrid; void updateGrid(); std::vector mPrompts; };