MCPcopy Create free account
hub / github.com/StrongPC123/Far-Cry-1-Source-Full / SetShape

Method SetShape

Editor/ShapePanel.cpp:328–343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326}
327
328void CShapePanel::SetShape( CShapeObject *shape )
329{
330 assert( shape );
331 m_shape = shape;
332
333 if (shape->GetPointCount() > 1)
334 m_editShapeButton.SetToolClass( RUNTIME_CLASS(CEditShapeObjectTool),m_shape );
335 else
336 m_editShapeButton.EnableWindow( FALSE );
337
338 ReloadEntities();
339
340 CString str;
341 str.Format( "Num Points: %d",shape->GetPointCount() );
342 GetDlgItem(IDC_NUM_POINTS)->SetWindowText( str );
343}
344
345//////////////////////////////////////////////////////////////////////////
346void CShapePanel::OnPick( CBaseObject *picked )

Callers 3

BeginEditParamsMethod · 0.80
EndCreationMethod · 0.80
SerializeMethod · 0.80

Calls 5

GetPointCountMethod · 0.80
SetToolClassMethod · 0.80
EnableWindowMethod · 0.80
FormatMethod · 0.80
SetWindowTextMethod · 0.45

Tested by

no test coverage detected