UI:
[blender.git] / release / ui / buttons_particle.py
1
2 import bpy
3
4 class ParticleButtonsPanel(bpy.types.Panel):
5         __space_type__ = "BUTTONS_WINDOW"
6         __region_type__ = "WINDOW"
7         __context__ = "particle"
8
9         def poll(self, context):
10                 return (context.particle_system != None)
11
12 class PARTICLE_PT_particles(ParticleButtonsPanel):
13         __idname__= "PARTICLE_PT_particles"
14         __label__ = "Particles"
15
16         def draw(self, context):
17                 layout = self.layout
18
19                 psys = context.particle_system
20                 part = psys.settings
21
22                 layout.itemR(part, "amount")
23
24 bpy.types.register(PARTICLE_PT_particles)
25