forked from mirrors/0ad
397a350e45
Territories: Fixed memory leaks. Atlas: New section-toolbar. Fixed colour of brush grid. Moved open/save into File menu. Added 3D-ish lighting control. Added 'busy' notifications. This was SVN commit r4079.
27 lines
602 B
C++
27 lines
602 B
C++
#ifndef LIGHTCONTROL_H__
|
|
#define LIGHTCONTROL_H__
|
|
|
|
#include "GameInterface/Messages.h"
|
|
#include "GameInterface/Shareable.h"
|
|
#include "General/Observable.h"
|
|
|
|
class LightSphere;
|
|
|
|
class LightControl : public wxPanel
|
|
{
|
|
public:
|
|
LightControl(wxWindow* parent, Observable<AtlasMessage::sEnvironmentSettings>& environment);
|
|
~LightControl();
|
|
|
|
void OnSettingsChange(const AtlasMessage::sEnvironmentSettings& settings);
|
|
|
|
void NotifyOtherObservers();
|
|
|
|
private:
|
|
Observable<AtlasMessage::sEnvironmentSettings>& m_Environment;
|
|
ObservableConnection m_Conn;
|
|
LightSphere* m_Sphere;
|
|
};
|
|
|
|
#endif // LIGHTCONTROL_H__
|