Godot_bridge/addon/operators/readthedocs.py

17 lines
522 B
Python
Raw Permalink Normal View History

import bpy
2024-05-18 11:09:47 +00:00
class GB_OT_readthedocs(bpy.types.Operator):
"""Check online documentation about the addon"""
2024-05-18 11:09:47 +00:00
bl_idname="gb.readthedocs"
2023-03-29 10:43:53 +00:00
bl_label="Online documentation"
2024-05-18 11:09:47 +00:00
bl_description="Go to Godot bridge documentation"
2023-03-29 10:43:53 +00:00
bl_options= {"REGISTER", "UNDO"}
2023-03-29 10:43:53 +00:00
def invoke (self, context, event):
return self.execute(context)
def execute(self, context):
2024-05-18 11:09:47 +00:00
bpy.ops.wm.url_open("INVOKE_DEFAULT", url="https://git.numenaute.org/YannK/Godot_bridge_docs")
2023-03-29 10:43:53 +00:00
return {"FINISHED"}