Re: [nbos] [AS2][AS3] SetDefaultSystemDataConfigNBOS Support Sun Sep 23rd, 2012
Try just this:
sector = GetCurrentSector()
config = CreateSystemDataConfig()
config.AddField "The spectral class is", "spectral", "", False
holder = sector.GetSystemDataConfigHolder()
holder.SetConfigForType config, BODY_TYPE_STAR
You dont need SetDefaultSystemDataConfig - that actually resets the the
system data fields back to their defaults.
At 04:38 PM 9/22/2012, Alan Bartholet wrote:
>I'm working on some updating of my GURPS plugin and I've run into an
>issue I haven't been able to resolve.
>Instead of setting the display of the fields on a per body basis I
>want to set them in the sector defaults.
>Unfortunately I haven't been able to make it work so either I'm
>missing something or it's a bug, I've tried this in both AS2 and AS3.
>Here is a basic example of what I am trying to accomplish:
>sector = GetCurrentSector()
>config = CreateSystemDataConfig()
>config.AddField "The spectral class is", "spectral", "", False
>holder = sector.GetSystemDataConfigHolder()
>holder.SetConfigForType config, BODY_TYPE_STAR
>Anybody have any ideas?
>Nbossoftware mailing list
Nbossoftware mailing list