mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-04 05:55:47 -07:00
Also right-click-and-drag to rotate the camera vertically. Fixed LookAt code (the algorithm in the gluLookAt man page seems to be wrong). This was SVN commit r4394.
43 lines
1.1 KiB
C++
43 lines
1.1 KiB
C++
#include "Windows/AtlasWindow.h"
|
|
|
|
#include "GameInterface/Messages.h"
|
|
#include "General/Observable.h"
|
|
#include "ScenarioEditor/Tools/Common/ObjectSettings.h"
|
|
|
|
class wxTreeCtrl;
|
|
|
|
class ActorViewer : public wxFrame
|
|
{
|
|
public:
|
|
ActorViewer(wxWindow* parent);
|
|
|
|
private:
|
|
void SetActorView(bool flushCache = false);
|
|
void OnClose(wxCloseEvent& event);
|
|
void OnTreeSelection(wxTreeEvent& event);
|
|
void OnAnimationSelection(wxCommandEvent& event);
|
|
void OnSpeedButton(wxCommandEvent& event);
|
|
void OnEditButton(wxCommandEvent& event);
|
|
void OnWireframeButton(wxCommandEvent& event);
|
|
void OnBackgroundButton(wxCommandEvent& event);
|
|
void OnWalkingButton(wxCommandEvent& event);
|
|
|
|
void OnActorEdited();
|
|
ObservableScopedConnections m_ActorConns;
|
|
|
|
wxTreeCtrl* m_TreeCtrl;
|
|
wxComboBox* m_AnimationBox;
|
|
wxString m_CurrentActor;
|
|
float m_CurrentSpeed;
|
|
|
|
Observable<std::vector<AtlasMessage::ObjectID> > m_ObjectSelection;
|
|
Observable<ObjectSettings> m_ObjectSettings;
|
|
bool m_Wireframe;
|
|
wxColour m_BackgroundColour;
|
|
bool m_Walking;
|
|
|
|
Observable<AtlasMessage::sEnvironmentSettings> m_EnvironmentSettings;
|
|
ObservableScopedConnection m_EnvConn;
|
|
|
|
DECLARE_EVENT_TABLE();
|
|
};
|