1 #ifndef EDITOR_COMPONENTS_RENDER_CONVERSATIONTREECOMPONENT_HPP
2 #define EDITOR_COMPONENTS_RENDER_CONVERSATIONTREECOMPONENT_HPP
4 #include <BLIB/Graphics/BatchCircle.hpp>
5 #include <BLIB/Graphics/BatchIcon.hpp>
6 #include <BLIB/Graphics/BatchedShapes2D.hpp>
7 #include <BLIB/Graphics/Rectangle.hpp>
8 #include <BLIB/Graphics/Text.hpp>
9 #include <BLIB/Interfaces/GUI/Renderer/Component.hpp>
43 bl::gfx::Rectangle background;
44 bl::gfx::BatchedShapes2D shapeBatch;
45 std::vector<bl::gfx::BatchCircle> nodeCircles;
46 std::vector<bl::gfx::BatchIcon> nodeArrows;
47 std::vector<std::unique_ptr<bl::gfx::Text>> nodeLabels;
49 bl::engine::Engine* enginePtr;
50 bl::rc::Overlay* currentOverlay;
51 unsigned int lastTreeVersion;
54 virtual void setVisible(
bool visible)
override;
55 virtual void onElementUpdated()
override;
56 virtual void onRenderSettingChange()
override;
57 virtual bl::ecs::Entity getEntity()
const override;
58 virtual void doCreate(bl::engine::Engine& engine, bl::gui::rdr::Renderer& renderer)
override;
59 virtual void doSceneAdd(bl::rc::Overlay* overlay)
override;
60 virtual void doSceneRemove()
override;
61 virtual void handleAcquisition()
override;
62 virtual void handleMove()
override;
All classes and functionality used for implementing the game editor.
GUI renderer component for the conversation tree.
ConversationTreeComponent()
Creates the component.
virtual ~ConversationTreeComponent()=default
Destroys the component.