1
0
mirror of synced 2024-12-01 10:47:19 +01:00
ImHex/plugins/builtin/include/content/views/view_tutorials.hpp
2023-12-13 23:03:39 +01:00

35 lines
874 B
C++

#pragma once
#include <hex/ui/view.hpp>
#include <hex/api/tutorial_manager.hpp>
namespace hex::plugin::builtin {
class ViewTutorials : public View::Floating {
public:
ViewTutorials();
~ViewTutorials() override = default;
void drawContent() override;
[[nodiscard]] bool shouldDraw() const override { return true; }
[[nodiscard]] bool hasViewMenuItemEntry() const override { return false; }
ImVec2 getMinSize() const override {
return scaled({ 600, 400 });
}
ImVec2 getMaxSize() const override {
return this->getMinSize();
}
ImGuiWindowFlags getWindowFlags() const override {
return Floating::getWindowFlags() | ImGuiWindowFlags_NoResize;
}
private:
const TutorialManager::Tutorial *m_selectedTutorial = nullptr;
};
}