|
3 | 3 | import os |
4 | 4 |
|
5 | 5 |
|
6 | | -# === PIPE DEFAULTS === |
| 6 | +# === PIPE === |
7 | 7 |
|
8 | | -#: Draw thickness size for connection pipes. |
9 | 8 | PIPE_WIDTH = 1.2 |
10 | 9 | PIPE_STYLE_DEFAULT = 'line' |
11 | 10 | PIPE_STYLE_DASHED = 'dashed' |
12 | 11 | PIPE_STYLE_DOTTED = 'dotted' |
13 | | -#: The draw color for connection pipes. |
14 | 12 | PIPE_DEFAULT_COLOR = (146, 69, 39, 255) |
15 | | -#: The draw color for when a connection pipe is selected. |
16 | 13 | PIPE_ACTIVE_COLOR = (70, 255, 220, 255) |
17 | | -#: The draw color for when a node is selected. |
18 | 14 | PIPE_HIGHLIGHT_COLOR = (232, 184, 13, 255) |
19 | 15 | #: The draw the connection pipes as straight lines. |
20 | 16 | PIPE_LAYOUT_STRAIGHT = 0 |
21 | 17 | #: The draw the connection pipes as curved lines. |
22 | 18 | PIPE_LAYOUT_CURVED = 1 |
23 | 19 |
|
24 | | -# === PORT DEFAULTS === |
| 20 | +# === PORT === |
25 | 21 |
|
26 | 22 | #: Connection type for input ports. |
27 | 23 | IN_PORT = 'in' |
28 | 24 | #: Connection type for output ports. |
29 | 25 | OUT_PORT = 'out' |
30 | | -# : The draw color for node ports. |
31 | 26 | PORT_ACTIVE_COLOR = (29, 80, 84, 255) |
32 | | -# : The draw color for node ports when connected. |
33 | 27 | PORT_ACTIVE_BORDER_COLOR = (45, 215, 255, 255) |
34 | 28 | PORT_HOVER_COLOR = (17, 96, 20, 255) |
35 | 29 | PORT_HOVER_BORDER_COLOR = (136, 255, 35, 255) |
36 | 30 |
|
37 | | -# === NODE DEFAULTS === |
| 31 | +# === NODE === |
38 | 32 |
|
39 | 33 | NODE_WIDTH = 100 |
40 | 34 | NODE_HEIGHT = 80 |
41 | 35 | NODE_ICON_SIZE = 24 |
42 | | -#: The draw overlay color for selected nodes. |
43 | 36 | NODE_SEL_COLOR = (255, 255, 255, 30) |
44 | | -#: The draw border color for selected nodes. |
45 | 37 | NODE_SEL_BORDER_COLOR = (254, 207, 42, 255) |
46 | 38 |
|
47 | | -# === NODE PROPERTY TYPES === |
| 39 | +# === NODE PROPERTY === |
48 | 40 |
|
49 | 41 | #: Property type will hidden in the properties bin (default). |
50 | 42 | NODE_PROP = 0 |
|
63 | 55 | #: Property type represented with a Slider widget in the properties bin. |
64 | 56 | NODE_PROP_SLIDER = 7 |
65 | 57 |
|
66 | | -# === NODE VIEWER DEFAULTS === |
| 58 | +# === NODE VIEWER === |
67 | 59 |
|
68 | 60 | #: Node graph background color. |
69 | 61 | VIEWER_BG_COLOR = (35, 35, 35) |
|
72 | 64 |
|
73 | 65 | SCENE_AREA = 8000.0 |
74 | 66 |
|
75 | | -# === GRAPH PATHS === |
| 67 | +# === PATHS === |
76 | 68 |
|
77 | 69 | BASE_PATH = os.path.dirname(os.path.abspath(__file__)) |
78 | 70 | ICON_PATH = os.path.join(BASE_PATH, 'widgets', 'icons') |
|
0 commit comments