|
|
|
@ -67,23 +67,12 @@ class PlasmaLayerPanel(TextureButtonsPanel, bpy.types.Panel):
|
|
|
|
|
layout = self.layout |
|
|
|
|
|
|
|
|
|
split = layout.split() |
|
|
|
|
col = split.column() |
|
|
|
|
col.label("Animation:") |
|
|
|
|
col.active = self._has_animation_data(context) and not slot.use_stencil |
|
|
|
|
col.prop(layer_props, "anim_auto_start") |
|
|
|
|
col.prop(layer_props, "anim_loop") |
|
|
|
|
col.separator() |
|
|
|
|
col.label("SDL Animation:") |
|
|
|
|
col.prop(layer_props, "anim_sdl_var", text="") |
|
|
|
|
|
|
|
|
|
col = split.column() |
|
|
|
|
col.label("Miscellaneous:") |
|
|
|
|
col.active = not slot.use_stencil |
|
|
|
|
col.prop(layer_props, "opacity", text="Opacity") |
|
|
|
|
col.separator() |
|
|
|
|
|
|
|
|
|
col = col.column() |
|
|
|
|
col.enabled = True |
|
|
|
|
col = split.column() |
|
|
|
|
col.label("Z Depth:") |
|
|
|
|
col.prop(layer_props, "alpha_halo") |
|
|
|
|
col.prop(layer_props, "skip_depth_write") |
|
|
|
@ -104,6 +93,18 @@ class PlasmaLayerPanel(TextureButtonsPanel, bpy.types.Panel):
|
|
|
|
|
col.prop(layer_props, "detail_opacity_start") |
|
|
|
|
col.prop(layer_props, "detail_opacity_stop") |
|
|
|
|
|
|
|
|
|
split = layout.split() |
|
|
|
|
col = split.column() |
|
|
|
|
col.label("Animation:") |
|
|
|
|
col.active = self._has_animation_data(context) and not slot.use_stencil |
|
|
|
|
col.prop(layer_props, "anim_auto_start") |
|
|
|
|
col.prop(layer_props, "anim_loop") |
|
|
|
|
col = split.column() |
|
|
|
|
col.label("") |
|
|
|
|
col.label("SDL Animation:") |
|
|
|
|
col.active = self._has_animation_data(context) and not slot.use_stencil |
|
|
|
|
col.prop(layer_props, "anim_sdl_var", text="") |
|
|
|
|
|
|
|
|
|
def _has_animation_data(self, context): |
|
|
|
|
tex = getattr(context, "texture", None) |
|
|
|
|
if tex is not None: |
|
|
|
|