2024-02-25 15:46:47 +01:00
|
|
|
#pragma once
|
2023-06-20 14:33:09 +10:00
|
|
|
|
2023-07-02 17:19:54 +10:00
|
|
|
#include "StarBaseScriptPane.hpp"
|
2023-06-20 14:33:09 +10:00
|
|
|
|
|
|
|
namespace Star {
|
|
|
|
|
|
|
|
STAR_CLASS(CanvasWidget);
|
|
|
|
STAR_CLASS(ScriptPane);
|
|
|
|
STAR_CLASS(UniverseClient);
|
|
|
|
|
2023-07-02 17:19:54 +10:00
|
|
|
class ScriptPane : public BaseScriptPane {
|
2023-06-20 14:33:09 +10:00
|
|
|
public:
|
|
|
|
ScriptPane(UniverseClientPtr client, Json config, EntityId sourceEntityId = NullEntityId);
|
|
|
|
|
|
|
|
void displayed() override;
|
|
|
|
void dismissed() override;
|
|
|
|
|
2023-07-21 00:58:49 +10:00
|
|
|
void tick(float dt) override;
|
2023-06-20 14:33:09 +10:00
|
|
|
|
|
|
|
PanePtr createTooltip(Vec2I const& screenPosition) override;
|
|
|
|
|
|
|
|
bool openWithInventory() const;
|
2024-05-23 12:12:07 +10:00
|
|
|
bool closeWithInventory() const;
|
2023-06-20 14:33:09 +10:00
|
|
|
|
2023-07-29 02:12:03 +10:00
|
|
|
EntityId sourceEntityId() const;
|
|
|
|
|
2023-07-02 17:19:54 +10:00
|
|
|
LuaCallbacks makePaneCallbacks() override;
|
2023-07-04 22:36:27 +10:00
|
|
|
private:
|
2023-06-20 14:33:09 +10:00
|
|
|
UniverseClientPtr m_client;
|
|
|
|
EntityId m_sourceEntityId;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|