21 lines
484 B
Python
21 lines
484 B
Python
|
import bpy
|
||
|
|
||
|
|
||
|
class KH_OP_readthedocs(bpy.types.Operator):
|
||
|
"""Check online documentation"""
|
||
|
|
||
|
bl_idname = "kh.readthedocs"
|
||
|
bl_label = "Online documentation"
|
||
|
bl_description = "Go to Khanat Development Guide"
|
||
|
bl_options = {"REGISTER", "UNDO"}
|
||
|
|
||
|
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"}
|
||
|
|
||
|
|