|
|
|
@ -169,7 +169,7 @@ class ExportManager:
|
|
|
|
|
"or the game may crash!" |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
def create_page(self, age, name, id, *, builtin=False, external=False): |
|
|
|
|
def create_page(self, age, name, id, *, builtin=False, external=False, auto_load=True, local_only=False): |
|
|
|
|
location = plLocation(self.mgr.getVer()) |
|
|
|
|
location.prefix = bpy.context.scene.world.plasma_age.seq_prefix |
|
|
|
|
if builtin: |
|
|
|
@ -192,7 +192,12 @@ class ExportManager:
|
|
|
|
|
self.mgr.AddPage(info) |
|
|
|
|
|
|
|
|
|
if not builtin: |
|
|
|
|
self._age_info.addPage((name, id, 0)) |
|
|
|
|
flags = 0 |
|
|
|
|
if not auto_load: |
|
|
|
|
flags |= plAgeInfo.kFlagPreventAutoLoad |
|
|
|
|
if local_only: |
|
|
|
|
flags |= plAgeInfo.kFlagIsLocalOnly |
|
|
|
|
self._age_info.addPage((name, id, flags)) |
|
|
|
|
if not external: |
|
|
|
|
if self.getVer() <= pvPots: |
|
|
|
|
node = plSceneNode(f"{age}_District_{name}") |
|
|
|
|