Godot_bridge/addon/operators/readthedocs.py

17 lines
540 B
Python
Raw Normal View History

import bpy
2023-03-29 10:43:53 +00:00
class KH_OT_readthedocs(bpy.types.Operator):
"""Check online documentation for development"""
2023-03-29 10:43:53 +00:00
bl_idname="kh.readthedocs"
bl_label="Online documentation"
bl_description="Go to Khanat Development Guide"
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):
bpy.ops.wm.url_open("INVOKE_DEFAULT", url="https://git.numenaute.org/khaganat/mmorpg_khanat/khanat_gamedev_guide")
return {"FINISHED"}