This commit is contained in:
Daveo 2001-03-31 15:40:20 +00:00
parent 337d6965ba
commit 9f1e03e8fc
10 changed files with 153 additions and 115 deletions

View file

@ -30,8 +30,11 @@ CLayerItem::CLayerItem(sLayerDef &Def)
/*****************************************************************************/
void CLayerItem::InitLayer(sLayerDef &Def)
{
ThingBank=new CElemBank(-1,-1,false,CElem::CentreModeLR || CElem::CentreModeTB);
CLayerThing::InitLayer(Def);
LoadThingScript(theApp.GetConfigStr("LayerScript","ItemScript"));
DrawPoints=false;
}
/*****************************************************************************/
@ -82,10 +85,17 @@ CComboBox &List=GUI.m_List;
}
/*****************************************************************************/
void CLayerItem::GUIThingUpdate()
void CLayerItem::GUIThingUpdate(bool OnlySel)
{
int i,ListSize;
CComboBox &List=GUI.m_LevelList;
if (OnlySel)
{
List.SetCurSel(CurrentThing);
return;
}
// Setup ThingList
ListSize=ThingList.size();
TRACE1("%i\n",ListSize);