2023-03-21 20:39:30 +00:00
|
|
|
import bpy
|
|
|
|
|
2023-03-29 10:43:53 +00:00
|
|
|
class KH_OT_readthedocs(bpy.types.Operator):
|
|
|
|
"""Check online documentation for development"""
|
2023-03-21 20:39:30 +00:00
|
|
|
|
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-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):
|
|
|
|
bpy.ops.wm.url_open("INVOKE_DEFAULT", url="https://git.numenaute.org/khaganat/mmorpg_khanat/khanat_gamedev_guide")
|
|
|
|
return {"FINISHED"}
|
|
|
|
|