blob: 229ebbb164fd6141422c713b4c0bef28054db233 (
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
|
#ifndef STAR_SCRIPT_PANE_HPP
#define STAR_SCRIPT_PANE_HPP
#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() override;
PanePtr createTooltip(Vec2I const& screenPosition) override;
bool openWithInventory() const;
LuaCallbacks makePaneCallbacks() override;
private:
UniverseClientPtr m_client;
EntityId m_sourceEntityId;
};
}
#endif
|