blob: e583d517ef08b2b62098a12c7518702e654bb79f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#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;
bool closeWithInventory() const;
EntityId sourceEntityId() const;
LuaCallbacks makePaneCallbacks() override;
private:
UniverseClientPtr m_client;
EntityId m_sourceEntityId;
};
}
|