Godot_bridge/addon/menus/panel_main.py
2023-03-29 12:43:53 +02:00

31 lines
745 B
Python

import bpy
from ..operators import readthedocs, export2godot
from ..common import icons
class KH_PT_panel_main(bpy.types.Panel):
"""
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()