Re: [nbos] [AS2][AS3] SetDefaultSystemDataConfigCarl Hess Sun Sep 23rd, 2012
Your logic looks ok. Assuming your inputs are correct and you're calling the proper functions, this seems like it would work. Are you seeing any error messages?
On Sep 22, 2012, at 1:46 PM, "Alan Bartholet" <alan.bartholet-at-gmail.com> wrote:
> Hello Everyone,
> 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:
> ----------start code----------
> sector = GetCurrentSector()
> config = CreateSystemDataConfig()
> config.AddField "The spectral class is", "spectral", "", False
> holder = sector.GetSystemDataConfigHolder()
> holder.SetConfigForType config, BODY_TYPE_STAR
> sector.SetDefaultSystemDataConfig holder
> ----------end code----------
> Anybody have any ideas?
> Best Regards,
> Alan Bartholet
> Nbossoftware mailing list
Nbossoftware mailing list