osb/source/frontend/StarScriptPane.hpp

35 lines
647 B
C++
Raw Normal View History

2023-06-20 04:33:09 +00:00
#ifndef STAR_SCRIPT_PANE_HPP
#define STAR_SCRIPT_PANE_HPP
2023-07-02 07:19:54 +00:00
#include "StarBaseScriptPane.hpp"
2023-06-20 04:33:09 +00:00
namespace Star {
STAR_CLASS(CanvasWidget);
STAR_CLASS(ScriptPane);
STAR_CLASS(UniverseClient);
2023-07-02 07:19:54 +00:00
class ScriptPane : public BaseScriptPane {
2023-06-20 04:33:09 +00:00
public:
ScriptPane(UniverseClientPtr client, Json config, EntityId sourceEntityId = NullEntityId);
void displayed() override;
void dismissed() override;
void tick() override;
PanePtr createTooltip(Vec2I const& screenPosition) override;
bool openWithInventory() const;
private:
2023-07-02 07:19:54 +00:00
LuaCallbacks makePaneCallbacks() override;
2023-06-20 04:33:09 +00:00
UniverseClientPtr m_client;
EntityId m_sourceEntityId;
};
}
#endif