Skip to content

Layout Documentation Button

BleuRaven edited this page Jan 29, 2024 · 3 revisions

This page is still in progress...

  1. Import and register bbpl.
from . import bbpl
def register():
    bbpl.register()

def unregister():
    bbpl.unregister()
  1. 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:
image

Clone this wiki locally