diff options
author | Joshua Leung <aligorith@gmail.com> | 2009-06-13 15:21:02 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2009-06-13 15:21:02 +0400 |
commit | cd3c52db0334950f85911cca9f7b834647950f7b (patch) | |
tree | 89bff7bc80671e829e0421be02849be370538ddc /release/ui | |
parent | eed13b43b19c619ccdcda67b17c0da65ad44879c (diff) |
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.
Diffstat (limited to 'release/ui')
-rw-r--r-- | release/ui/buttons_data_armature.py | 6 |
1 files changed, 3 insertions, 3 deletions
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" |