deployment
This commit is contained in:
30
src/ui/__init__.py
Normal file
30
src/ui/__init__.py
Normal file
@@ -0,0 +1,30 @@
|
||||
# Import all UI functionality
|
||||
from .preview import *
|
||||
from .panels import (
|
||||
TEXT_TEXTURE_PT_panel,
|
||||
TEXT_TEXTURE_PT_panel_3d,
|
||||
TEXT_TEXTURE_PT_panel_properties,
|
||||
)
|
||||
|
||||
# Menu functions for Blender integration
|
||||
def menu_func_node_editor(self, context):
|
||||
"""Add menu item to Node Editor's Add menu"""
|
||||
self.layout.operator("text_texture.generate", text="Text Texture", icon='IMAGE_DATA')
|
||||
|
||||
def menu_func_view3d(self, context):
|
||||
"""Add menu item to 3D View's Add menu"""
|
||||
self.layout.operator("text_texture.generate", text="Text Texture", icon='IMAGE_DATA')
|
||||
|
||||
def menu_func_image(self, context):
|
||||
"""Add menu item to Image Editor menu"""
|
||||
self.layout.operator("text_texture.generate", text="Text Texture", icon='IMAGE_DATA')
|
||||
|
||||
# Export all UI functions
|
||||
__all__ = [
|
||||
'TEXT_TEXTURE_PT_panel',
|
||||
'TEXT_TEXTURE_PT_panel_3d',
|
||||
'TEXT_TEXTURE_PT_panel_properties',
|
||||
'menu_func_node_editor',
|
||||
'menu_func_view3d',
|
||||
'menu_func_image'
|
||||
]
|
||||
Reference in New Issue
Block a user