2023-03-21 20:39:30 +00:00
|
|
|
import bpy
|
2023-03-29 10:43:53 +00:00
|
|
|
|
2023-03-21 20:39:30 +00:00
|
|
|
from ..operators import readthedocs, export2godot
|
2023-03-29 10:43:53 +00:00
|
|
|
from ..common import icons
|
|
|
|
|
2023-03-21 20:39:30 +00:00
|
|
|
|
|
|
|
class KH_PT_panel_main(bpy.types.Panel):
|
2023-03-29 10:43:53 +00:00
|
|
|
"""
|
|
|
|
Main panel in 3D View
|
|
|
|
"""
|
|
|
|
|
|
|
|
bl_label = 'Khanat tools'
|
|
|
|
bl_space_type = 'VIEW_3D'
|
|
|
|
bl_region_type = 'UI'
|
|
|
|
bl_context = ''
|
|
|
|
bl_category = 'Khanat'
|
|
|
|
|
|
|
|
def draw_header(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
layout.label(icon_value=icons.get_icon_id("khanat"))
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
row = layout.row()
|
|
|
|
row.operator(export2godot.KH_OT_export2godot.bl_idname)
|
|
|
|
layout.separator()
|
|
|
|
|
|
|
|
row = layout.row()
|
|
|
|
row.operator(readthedocs.KH_OT_readthedocs.bl_idname, icon_value=72)
|
|
|
|
layout.separator()
|