diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-12-19 19:08:59 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-19 19:08:59 +1100 |
commit | 63903276e5e1c3f96629d87cdaab9e868368b343 (patch) | |
tree | e335b36c27fba80e56605b95e6fd3f4993bd6f58 /source/frontend/StarShadersMenu.cpp | |
parent | 2bf5be1af36fa53fc686bb893dc97e5ed10ddaa4 (diff) | |
parent | 300b8f2dbae631fdddeafaee683f450418e5cc57 (diff) |
Merge pull request #157 from Bottinator22/main
Allow post process shaders to be grouped up and enabled/disabled via Lua or a shaders menu
Diffstat (limited to 'source/frontend/StarShadersMenu.cpp')
-rw-r--r-- | source/frontend/StarShadersMenu.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/source/frontend/StarShadersMenu.cpp b/source/frontend/StarShadersMenu.cpp new file mode 100644 index 0000000..4e15b66 --- /dev/null +++ b/source/frontend/StarShadersMenu.cpp @@ -0,0 +1,22 @@ +#include "StarShadersMenu.hpp" + +namespace Star { + +ShadersMenu::ShadersMenu(Json const& config, UniverseClientPtr client) : BaseScriptPane(config) { + m_client = std::move(client); +} + +void ShadersMenu::show() { + BaseScriptPane::show(); +} + +void ShadersMenu::displayed() { + m_script.setLuaRoot(m_client->luaRoot()); + BaseScriptPane::displayed(); +} + +void ShadersMenu::dismissed() { + BaseScriptPane::dismissed(); +} + +} |