|
|
@ -17,6 +17,7 @@ import bpy |
|
|
|
from bpy.props import * |
|
|
|
from bpy.props import * |
|
|
|
from PyHSPlasma import * |
|
|
|
from PyHSPlasma import * |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class PlasmaFni(bpy.types.PropertyGroup): |
|
|
|
class PlasmaFni(bpy.types.PropertyGroup): |
|
|
|
bl_idname = "world.plasma_fni" |
|
|
|
bl_idname = "world.plasma_fni" |
|
|
|
|
|
|
|
|
|
|
@ -29,10 +30,10 @@ class PlasmaFni(bpy.types.PropertyGroup): |
|
|
|
("linear", "Linear", "Linear Fog"), |
|
|
|
("linear", "Linear", "Linear Fog"), |
|
|
|
("exp2", "Exponential", "Exponential Fog"), |
|
|
|
("exp2", "Exponential", "Exponential Fog"), |
|
|
|
("none", "None", "Use fog from the previous age") |
|
|
|
("none", "None", "Use fog from the previous age") |
|
|
|
]) |
|
|
|
]) |
|
|
|
fog_start = FloatProperty(name="Start", |
|
|
|
fog_start = FloatProperty(name="Start", |
|
|
|
description="", |
|
|
|
description="", |
|
|
|
default= -1500.0) |
|
|
|
default=-1500.0) |
|
|
|
fog_end = FloatProperty(name="End", |
|
|
|
fog_end = FloatProperty(name="End", |
|
|
|
description="", |
|
|
|
description="", |
|
|
|
default=20000.0) |
|
|
|
default=20000.0) |
|
|
@ -49,6 +50,7 @@ class PlasmaFni(bpy.types.PropertyGroup): |
|
|
|
soft_min=100, |
|
|
|
soft_min=100, |
|
|
|
min=1) |
|
|
|
min=1) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class PlasmaPage(bpy.types.PropertyGroup): |
|
|
|
class PlasmaPage(bpy.types.PropertyGroup): |
|
|
|
def _check_suffix(self, context): |
|
|
|
def _check_suffix(self, context): |
|
|
|
"""Verifies that a suffix change does not conflict""" |
|
|
|
"""Verifies that a suffix change does not conflict""" |
|
|
@ -95,8 +97,8 @@ class PlasmaPage(bpy.types.PropertyGroup): |
|
|
|
update=_rename_page) |
|
|
|
update=_rename_page) |
|
|
|
seq_suffix = IntProperty(name="ID", |
|
|
|
seq_suffix = IntProperty(name="ID", |
|
|
|
description="A numerical ID for this page", |
|
|
|
description="A numerical ID for this page", |
|
|
|
soft_min=0, # Negatives indicate global--advanced users only |
|
|
|
soft_min=0, # Negatives indicate global--advanced users only |
|
|
|
default=0, # The add operator will autogen a default |
|
|
|
default=0, # The add operator will autogen a default |
|
|
|
update=_check_suffix) |
|
|
|
update=_check_suffix) |
|
|
|
auto_load = BoolProperty(name="Auto Load", |
|
|
|
auto_load = BoolProperty(name="Auto Load", |
|
|
|
description="Load this page on link-in", |
|
|
|
description="Load this page on link-in", |
|
|
@ -137,7 +139,7 @@ class PlasmaAge(bpy.types.PropertyGroup): |
|
|
|
min=0) |
|
|
|
min=0) |
|
|
|
seq_prefix = IntProperty(name="Sequence Prefix", |
|
|
|
seq_prefix = IntProperty(name="Sequence Prefix", |
|
|
|
description="A unique numerical ID for this age", |
|
|
|
description="A unique numerical ID for this age", |
|
|
|
soft_min=0, # Negative indicates global--advanced users only |
|
|
|
soft_min=0, # Negative indicates global--advanced users only |
|
|
|
default=100) |
|
|
|
default=100) |
|
|
|
pages = CollectionProperty(name="Pages", |
|
|
|
pages = CollectionProperty(name="Pages", |
|
|
|
description="Registry pages for this age", |
|
|
|
description="Registry pages for this age", |
|
|
|