mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-19 06:43:58 -07:00
Added modified version of wxJavaScript. Added Atlas script interface. Rewrote the Map sidebar in JS. This was SVN commit r5144.
17 lines
518 B
C++
17 lines
518 B
C++
#include "stdafx.h"
|
|
|
|
#include "Map.h"
|
|
|
|
#include "General/Datafile.h"
|
|
#include "ScenarioEditor/Tools/Common/Tools.h"
|
|
|
|
#include "AtlasScript/ScriptInterface.h"
|
|
|
|
#include "wx/filename.h"
|
|
|
|
MapSidebar::MapSidebar(ScenarioEditor& scenarioEditor, wxWindow* sidebarContainer, wxWindow* bottomBarContainer)
|
|
: Sidebar(scenarioEditor, sidebarContainer, bottomBarContainer)
|
|
{
|
|
wxPanel* panel = m_ScenarioEditor.GetScriptInterface().LoadScriptAsPanel(_T("section/map"), this);
|
|
m_MainSizer->Add(panel, wxSizerFlags().Expand());
|
|
}
|