mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
feat: Added tutorials view
This commit is contained in:
35
plugins/builtin/include/content/views/view_tutorials.hpp
Normal file
35
plugins/builtin/include/content/views/view_tutorials.hpp
Normal file
@@ -0,0 +1,35 @@
|
||||
#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({ 400, 300 });
|
||||
}
|
||||
|
||||
ImVec2 getMaxSize() const override {
|
||||
return this->getMinSize();
|
||||
}
|
||||
|
||||
ImGuiWindowFlags getWindowFlags() const override {
|
||||
return Floating::getWindowFlags() | ImGuiWindowFlags_NoResize;
|
||||
}
|
||||
|
||||
private:
|
||||
const TutorialManager::Tutorial *m_selectedTutorial = nullptr;
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user