-
Notifications
You must be signed in to change notification settings - Fork 2
Layout Documentation Button
BleuRaven edited this page Jan 29, 2024
·
3 revisions
This page is still in progress...
- Import and register bbpl.
from . import bbpl
def register():
bbpl.register()
def unregister():
bbpl.unregister()
- Add your documentation buttons in a draw dunction.
from .bbpl.blender_layout import layout_doc_button
def draw(self, context):
layout: bpy.types.UILayout = self.layout
layout_doc_button.add_doc_page_operator(layout, text="My doc URL", url="https://github.com/xavier150/Blender-For-UnrealEngine-Addons/wiki/Cameras")
layout_doc_button.add_right_doc_page_operator(layout, text="My doc URL", url="https://github.com/xavier150/Blender-For-UnrealEngine-Addons/wiki/Cameras")
layout_doc_button.add_left_doc_page_operator(layout, text="My doc URL", url="https://github.com/xavier150/Blender-For-UnrealEngine-Addons/wiki/Cameras")
result: