Files
lightspeed64/fast64_internal/sm64/tools/panels.py
T
Lila 8853a484fd [SM64] Animations Rewrite/Rework (#467)
* [SM64] Animations Rewrite/Rework

* [SM64] Animations Rewrite/Rework

* Remove animation docs from README until I write new ones in fast64_docs

* remove accidental exports

* merge conflicts?

* Fix level export includes dups

* Fixed comment adjust function

* change table properties to only have elements

* Update properties.py

* Rename

* bounds check

* keep default action name consistent with blender

* as_posix fix and clean up

* designated is include in repo settings, include in tooltip

* Fix empty text files

* fix peach's address

* Some attempts at tasteful comments

Verbose documentation like docstrings is.. not my strong suite

* allow str, use path in f3d writer

* better valid filename func

* fix things!

* review and a personal nit

* Add docs link
2025-08-21 21:39:33 +01:00

45 lines
1.2 KiB
Python

from bpy.utils import register_class, unregister_class
from typing import TYPE_CHECKING
from ...panels import SM64_Panel
from .operators import SM64_CreateSimpleLevel, SM64_AddWaterBox, SM64_AddBoneGroups, SM64_CreateMetarig
if TYPE_CHECKING:
from ..settings.properties import SM64_Properties
class SM64_ToolsPanel(SM64_Panel):
bl_idname = "SM64_PT_tools"
bl_label = "SM64 Tools"
def draw(self, context):
col = self.layout.column()
col.label(text="Misc Tools", icon="TOOL_SETTINGS")
SM64_CreateSimpleLevel.draw_props(col)
SM64_AddWaterBox.draw_props(col)
col.label(text="Armature Tools", icon="ARMATURE_DATA")
SM64_AddBoneGroups.draw_props(col)
SM64_CreateMetarig.draw_props(col)
sm64_props: SM64_Properties = context.scene.fast64.sm64
if not sm64_props.show_importing_menus:
return
col.label(text="Address Converter", icon="MEMORY")
sm64_props.address_converter.draw_props(col.box(), sm64_props.import_rom)
classes = (SM64_ToolsPanel,)
def tools_panels_register():
for cls in classes:
register_class(cls)
def tools_panels_unregister():
for cls in classes:
unregister_class(cls)