Fork of Tangara with customizations
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
/*
|
|
|
|
* Copyright 2023 jacqueline <me@jacqueline.id.au>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "lua.hpp"
|
|
|
|
|
|
|
|
#include "screen.hpp"
|
|
|
|
|
|
|
|
namespace ui {
|
|
|
|
namespace screens {
|
|
|
|
|
|
|
|
class Lua : public Screen {
|
|
|
|
public:
|
|
|
|
Lua();
|
|
|
|
~Lua();
|
|
|
|
|
|
|
|
auto onShown() -> void override;
|
|
|
|
auto onHidden() -> void override;
|
|
|
|
|
|
|
|
auto canPop() -> bool override;
|
|
|
|
|
|
|
|
auto SetObjRef(lua_State*) -> void;
|
|
|
|
|
|
|
|
private:
|
|
|
|
lua_State* s_;
|
|
|
|
std::optional<int> obj_ref_;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace screens
|
|
|
|
} // namespace ui
|