Skip to content

Commit 32138c1

Browse files
authored
Merge pull request #48 from OmooLab/feature/dev
feat: add help menu
2 parents 928b15c + 86fc18a commit 32138c1

File tree

8 files changed

+30
-8
lines changed

8 files changed

+30
-8
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:991e02177a1f2c9c6b3f83b016bacb38801381ae0c3e21fba60967e0d6a84073
3-
size 9143436
2+
oid sha256:b414fcab2662c6bc12abecd318421e5389a9871579d0f98c1954c1d26b54ed17
3+
size 9232450

bioxelnodes/blender_manifest.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
schema_version = "1.0.0"
22

33
id = "bioxelnodes"
4-
version = "1.0.3"
4+
version = "1.0.4"
55
name = "Bioxel Nodes"
66
tagline = "For scientific volumetric data visualization in Blender"
77
maintainer = "Ma Nan <[email protected]>"

bioxelnodes/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from pathlib import Path
22

3-
VERSIONS = [{"label": "Latest", "node_version": (1, 0, 3)},
3+
VERSIONS = [{"label": "Latest", "node_version": (1, 0, 4)},
44
{"label": "v0.3.x", "node_version": (0, 3, 3)},
55
{"label": "v0.2.x", "node_version": (0, 2, 9)}]
66

bioxelnodes/menus.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
ExtractNodeMesh, ExtractNodeBboxWire, ExtractNodeShapeWire)
2020

2121
from .operators.io import (ImportAsLabel, ImportAsScalar, ImportAsColor)
22-
from .operators.misc import (CleanTemp,
22+
from .operators.misc import (CleanTemp, Help,
2323
ReLinkNodeLib, RemoveAllMissingLayers,
2424
RenderSettingPreset, SaveAllLayersCache,
2525
SaveNodeLib, SliceViewer)
@@ -57,6 +57,10 @@ def draw(self, context):
5757
layout.separator()
5858
layout.menu(RenderSettingMenu.bl_idname)
5959

60+
layout.separator()
61+
layout.operator(Help.bl_idname,
62+
icon=Help.bl_icon)
63+
6064

6165
class FetchLayerMenu(bpy.types.Menu):
6266
bl_idname = "BIOXELNODES_MT_ADD_LAYER"
@@ -210,6 +214,10 @@ def draw(self, context):
210214
layout.separator()
211215
layout.menu(RenderSettingMenu.bl_idname)
212216

217+
layout.separator()
218+
layout.operator(Help.bl_idname,
219+
icon=Help.bl_icon)
220+
213221

214222
def TOPBAR(self, context):
215223
layout = self.layout

bioxelnodes/operators/misc.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import webbrowser
12
import bpy
23
from pathlib import Path
34
import shutil
@@ -260,3 +261,16 @@ def invoke(self, context, event):
260261
event,
261262
message=f"Are you sure to remove all **Missing** layers?")
262263
return {'RUNNING_MODAL'}
264+
265+
266+
class Help(bpy.types.Operator):
267+
bl_idname = "bioxelnodes.help"
268+
bl_label = "Need Help?"
269+
bl_description = "Online Manual for Beginner"
270+
bl_icon = "HELP"
271+
272+
def execute(self, context):
273+
webbrowser.open(
274+
'https://omoolab.github.io/BioxelNodes/latest/', new=2)
275+
276+
return {'FINISHED'}

docs/qa.md renamed to docs/faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Q & A
1+
# FAQ
22

33
## Nothing in the scene when rendering?
44

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ nav:
1414
- Advanced Usage: advanced_usage.md
1515
- Support Format: support_format.md
1616
- Improve Performance: improve_performance.md
17-
- Q & A: qa.md
17+
- FAQ: faq.md
1818
- Tutorials:
1919
- SARS-Cov-2: SARS-Cov-2.md
2020

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "bioxelnodes"
3-
version = "1.0.3"
3+
version = "1.0.4"
44
description = ""
55
authors = ["Ma Nan <[email protected]>"]
66
license = "MIT"

0 commit comments

Comments
 (0)