2023-03-21 20:39:30 +00:00
|
|
|
import bpy
|
|
|
|
|
2024-05-18 11:09:47 +00:00
|
|
|
class GB_OT_readthedocs(bpy.types.Operator):
|
|
|
|
"""Check online documentation about the addon"""
|
2023-03-21 20:39:30 +00:00
|
|
|
|
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-21 20:39:30 +00:00
|
|
|
|
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"}
|
|
|
|
|