26 lines
No EOL
625 B
Python
26 lines
No EOL
625 B
Python
import bpy
|
|
from ..operators import readthedocs, export2godot
|
|
from ..icons import get_icon_id
|
|
|
|
class KH_PT_panel_main(bpy.types.Panel):
|
|
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=get_icon_id("khanat"))
|
|
|
|
def draw(self, context):
|
|
layout = self.layout
|
|
|
|
row = layout.row()
|
|
row.operator(export2godot.KH_OP_export2godot.bl_idname)
|
|
layout.separator()
|
|
|
|
row = layout.row()
|
|
row.operator(readthedocs.KH_OP_readthedocs.bl_idname, icon_value=72)
|
|
layout.separator() |