📋 Metadata
- Author: roaoao
- Date: 2019-01-16 11:38:09
- Type:
answer - Reply to: post_01846
- Replies (1): post_01848
💬 Content
panosz:
is it possible the button that enables a pie menu to show if it is enabled or not?
Yes, use this code in Property tab:
prefs().pie_menus["Pie Name"].enabled
Or this in Custom tab:
pie = "Pie Name"; L.prop(prefs().pie_menus[pie], "enabled", text=pie, toggle=True)
Blender 2.80 has a new way to highlight buttons by using depress parameter (Custom tab):
pie = "Pie Name"; L.operator("pme.pm_toggle", text=pie, depress=prefs().pie_menus[pie].enabled).name = pie