Navigation:  Reference >

SystemDataConfig Class

Previous pageReturn to chapter overviewNext page

SystemDataConfig objects contain information about the fields that are displayed for a body in the System Data display.  Normally, the fields that are displayed are done so based on the type of the object, and how the fields are defined for that type of body at the entire sector level.  By creating a SystemDataConfig object, defining fields for it, and assigning it to a body, you can override the default field definitions for that specific body.

 

To alter the fields for a type of body across the entire sector map, assign the fields using the sector properties window.

 

'Simple example that defines a single field for a star.

oSector = GetCurrentSector()

 

If oSector.SelectedCount > 0 Then

       b = oSector.GetSelected( 0)

 

       sdc = CreateSystemDataConfig()

       sdc.AddField "The spectral class is", "spectral", "", False

 

       b.SetSystemDataConfig( sdc)

End If

RefreshScene