Add files via upload

This commit is contained in:
Bottinator22 2024-12-18 22:28:39 -08:00 committed by GitHub
parent 0c4682d304
commit bf6969dc7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 44 additions and 0 deletions

View File

@ -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();
}
}

View File

@ -0,0 +1,22 @@
#pragma once
#include "StarBaseScriptPane.hpp"
#include "StarUniverseClient.hpp"
namespace Star {
STAR_CLASS(ShadersMenu);
class ShadersMenu : public BaseScriptPane {
public:
ShadersMenu(Json const& config, UniverseClientPtr client);
virtual void show() override;
void displayed() override;
void dismissed() override;
private:
UniverseClientPtr m_client;
};
}