/**********************/ /*** Layer Platform ***/ /**********************/ #include "stdafx.h" #include #include #include #include "GLEnabledView.h" #include "MapEdit.h" #include "MapEditDoc.h" #include "MapEditView.h" #include "MainFrm.h" #include "Core.h" #include "LayerThing.h" #include "LayerPlatform.h" #include "Utils.h" #include "Export.h" /*****************************************************************************/ /*****************************************************************************/ /*****************************************************************************/ CLayerPlatform::CLayerPlatform(sLayerDef &Def) { InitLayer(Def); } /*****************************************************************************/ void CLayerPlatform::InitLayer(sLayerDef &Def) { ThingBank=new CElemBank(-1,-1,false,0); CLayerThing::InitLayer(Def); LoadThingScript(theApp.GetConfigStr("LayerScript","PlatformScript")); } /*****************************************************************************/ void CLayerPlatform::InitSubView(CCore *Core) { } /*****************************************************************************/ /*** Gui *********************************************************************/ /*****************************************************************************/ void CLayerPlatform::GUIInit(CCore *Core) { // GUI.DisableCallback(true); // Core->GUIAdd(GUI,IDD_LAYER_Platform); // GUI.DisableCallback(false); } /*****************************************************************************/ void CLayerPlatform::GUIKill(CCore *Core) { // Core->GUIRemove(GUI,IDD_LAYER_Platform); } /*****************************************************************************/ void CLayerPlatform::GUIUpdate(CCore *Core) { /* int i,ListSize; CComboBox &List=GUI.m_List; // Setup Def Platform List ListSize=DefList.size(); List.ResetContent(); for (i=0; i