33 lines
637 B
C++
33 lines
637 B
C++
#pragma once
|
|
|
|
#include "StarBaseScriptPane.hpp"
|
|
|
|
namespace Star {
|
|
|
|
STAR_CLASS(CanvasWidget);
|
|
STAR_CLASS(ScriptPane);
|
|
STAR_CLASS(UniverseClient);
|
|
|
|
class ScriptPane : public BaseScriptPane {
|
|
public:
|
|
ScriptPane(UniverseClientPtr client, Json config, EntityId sourceEntityId = NullEntityId);
|
|
|
|
void displayed() override;
|
|
void dismissed() override;
|
|
|
|
void tick(float dt) override;
|
|
|
|
PanePtr createTooltip(Vec2I const& screenPosition) override;
|
|
|
|
bool openWithInventory() const;
|
|
|
|
EntityId sourceEntityId() const;
|
|
|
|
LuaCallbacks makePaneCallbacks() override;
|
|
private:
|
|
UniverseClientPtr m_client;
|
|
EntityId m_sourceEntityId;
|
|
};
|
|
|
|
}
|