Add files via upload
This commit is contained in:
parent
0c4682d304
commit
bf6969dc7d
22
source/frontend/StarShadersMenu.cpp
Normal file
22
source/frontend/StarShadersMenu.cpp
Normal 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();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
22
source/frontend/StarShadersMenu.hpp
Normal file
22
source/frontend/StarShadersMenu.hpp
Normal 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;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user