-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuimessages.py
40 lines (37 loc) · 1.28 KB
/
uimessages.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
### UI Messages
import variables as var
import ui
uimixer = {
"Stop": "Ready to arm mixer tracks!",
"Solo": "Ready to solo mixer tracks!",
"Mute": "Ready to mute mixer tracks!",
"" : "Special mixer controls disabled!"
}
uichanrack = {
"Stop" : "Ready to step-sequence the selected channel! ",
"Solo" : "Ready to solo channels!",
"Mute" : "Ready to mute channels!",
"" : "Special Channel rack controls disabled"
}
uieditor = {
"Stop": "Monitoring insert peaks",
"Solo": "Not implemented (Solo)",
"Mute": "Not implemented (Mute)",
"": "Editing mode"
}
def SceneMsg(scenesel, mode):
if scenesel == var.SCENE_SEL:
for x,y in var.scmodes.items():
if x == mode:
if scenesel == "Mixer":
for a,b in uimixer.items():
if y == a:
ui.setHintMsg(b)
elif scenesel == "Channel rack":
for a,b in uichanrack.items():
if y == a:
ui.setHintMsg(b)
elif scenesel == "Editor":
for a,b in uieditor.items():
if y == a:
ui.setHintMsg(b)