osb/source/frontend/StarScriptPane.hpp
Kae 4b0bc220e4 Support for changing the game's timescale
Context-specific (like per-world) timescales can also be added later
2023-07-21 00:58:49 +10:00

34 lines
654 B
C++

#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(float dt) override;
PanePtr createTooltip(Vec2I const& screenPosition) override;
bool openWithInventory() const;
LuaCallbacks makePaneCallbacks() override;
private:
UniverseClientPtr m_client;
EntityId m_sourceEntityId;
};
}
#endif