[nbos] [AS2][AS3] SetDefaultSystemDataConfig
Alan Bartholet
Sat Sep 22nd, 2012
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


Copyright © 2003-2007, NBOS Software. All rights reserved. 'Fractal Mapper', 'ScreenMonkey', 'Character Sketcher', 'Inspiration Pad', 'Fractal World Explorer', 'Goblin API', 'AstroSynthesis' are trademarks of NBOS Software. 'Dwarven Beserker' art by V. Shane.
Member contributed resources