From cd3c52db0334950f85911cca9f7b834647950f7b Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Sat, 13 Jun 2009 11:21:02 +0000 Subject: 2.5 - Armature Buttons + UI-Templates Added a new template for layer-buttons, which auto-determines the layout of the buttons instead of relying on some hardcoded pattern for n-layers (i.e. 16 or 20 currently). This is a still bit rough, and could do with some refining to allow us to define what extra info (icons) should get drawn on the buttons or so. Currently, this is only used in the Armature buttons to allow showing/hiding layers. --- release/ui/buttons_data_armature.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'release/ui/buttons_data_armature.py') diff --git a/release/ui/buttons_data_armature.py b/release/ui/buttons_data_armature.py index fd317baf861..0b02eee9f7b 100644 --- a/release/ui/buttons_data_armature.py +++ b/release/ui/buttons_data_armature.py @@ -45,9 +45,9 @@ class DATA_PT_skeleton(DataButtonsPanel): sub = split.column() sub.itemL(text="Layers:") - sub.itemL(text="LAYERS") - #sub.itemR(arm, "layer") - #sub.itemR(arm, "layer_protection") + sub.template_layers(arm, "layer") + sub.itemL(text="Protected Layers:") + sub.template_layers(arm, "layer_protection") class DATA_PT_display(DataButtonsPanel): __idname__ = "DATA_PT_display" -- cgit v1.2.3