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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
|
{
"uid": "07DDB06171811126",
"isLoaded": true,
"lastModificationTime": 1424120014491,
"items": {
"windowTitle": "$$EEA25494K169FA4A27S878CE9CDED783DF23",
"type": "event_command",
"id": "gs.PlayMusic",
"displayName": "$$EEA25494K169FA4A27S878CE9CDED783DF23",
"group": "$$42B163D5K15C1A4737SA896EB7D0DDAA19AC",
"subGroup": "$$P136",
"color": "purple",
"windowSize": {
"w": 400
},
"nodes": [
{
"name": "return fmt(lcs('48DF9A16K231AA4C6DSBD10E22EC33B79F55')+' [%s]%s', isVar(p.music) ? fmtStrVar(p.music) : p.music.name || lcs('P9'), !p.fadeInDuration ? '' : ', '+fmtNumVar(p.fadeInDuration)+'f')",
"id": "gs.PlayMusic"
}
],
"defaultValue": {
"layer": 0,
"music": {
"volume": 100,
"playbackRate": 100
},
"fadeInDuration": 0,
"playTime": {
"min": 10,
"max": 30
},
"playRange": {
"start": 10,
"end": 20
},
"playType": 0
},
"quickItems": [
{
"label": "$$P61",
"valueFormula": "return fmtResource(p.music);",
"variableButton": {
"dataSource": "strings"
},
"attribute": "music",
"type": "GSQPopupField",
"dialog": {
"uid": "dialog.selectAudioResource",
"parameters": {
"folder": "Audio/Music"
}
},
"icon": {
"name": "listen-01"
}
},
{
"label": "$$P141",
"lockable": true,
"valueFormula": "return p.music.volume + '%';",
"attribute": "music.volume",
"minimum": 0,
"maximum": 100,
"type": "GSQSlider"
},
{
"label": "$$P142",
"lockable": true,
"valueFormula": "return p.music.playbackRate + '%';",
"attribute": "music.playbackRate",
"minimum": 50,
"maximum": 150,
"type": "GSQSlider"
},
{
"label": "$$C391D8A187BE754D3C48CC54E73980E75EB9",
"lockable": true,
"valueFormula": "return fmtDuration(p.fadeInDuration)",
"valueTranslator": {
"write": "return v / 1000 * GS.CONST.GAME_FRAME_RATE",
"read": "return ROUND(v / GS.CONST.GAME_FRAME_RATE * 1000)"
},
"attribute": "fadeInDuration",
"minimum": 0,
"maximum": 999999999,
"type": "GSQStepper"
}
],
"expandedView": {
"columns": [
{
"sections": [
{
"label": "$$9FEB895376A9F34CF86B5494DBD692B58693",
"rows": [
{
"items": [
{
"label": "$$272673AEKE288A48D0SB8D7EEFF528276A59",
"variableButton": {
"dataSource": "numbers"
},
"type": "GSQStepper",
"attribute": "layer",
"minimum": 0,
"maximum": 999999999
},
{
"type": "GSQPopupField",
"label": "$$2D13E13B48733748922BE0661BEA7C56969D",
"dataSource": [
"$$P155",
"$$AF03E39FK6E5DA4AC1SA59CEE656A02E67B8"
],
"attribute": "playType",
"valueFormula": "return GS.CONST.AUDIO_PLAY_TYPES[p.playType]",
"showItems": [
[],
[
"playTime.min",
"playTime.max",
"playRange.start",
"playRange.end"
]
]
},
{
"type": "GSQStepper",
"label": "$$B413DADC4A5BF849644A4C12EF5E85E4FEE8",
"attribute": "playTime.min",
"valueFormula": "return p.playTime.min + 's'",
"minimum": 0,
"maximum": 999999999
},
{
"type": "GSQStepper",
"label": "$$A656990A40DCB745BA199F53B74826F4B323",
"attribute": "playTime.max",
"valueFormula": "return p.playTime.max + 's'",
"minimum": 0,
"maximum": 999999999
},
{
"type": "GSQStepper",
"label": "$$533692415AAF7749C76B0788EDCF407D5A18",
"attribute": "playRange.start",
"valueFormula": "return p.playRange.start + 's'",
"minimum": 0,
"maximum": 999999999
},
{
"type": "GSQStepper",
"label": "$$0BB08C7B26984045683905F29CEE9D90D4A7",
"attribute": "playRange.end",
"valueFormula": "return p.playRange.end + 's'",
"minimum": 0,
"maximum": 999999999
}
]
}
]
}
]
}
]
},
"sections": [],
"rawContent": "{\n \"windowTitle\": \"$$EEA25494K169FA4A27S878CE9CDED783DF23\",\n \"type\": \"event_command\",\n \"id\": \"gs.PlayMusic\",\n \"displayName\": \"$$EEA25494K169FA4A27S878CE9CDED783DF23\",\n \"group\": \"$$42B163D5K15C1A4737SA896EB7D0DDAA19AC\",\n \"subGroup\": \"$$P136\",\n \"color\": \"purple\",\n \"windowSize\": {\n \"w\": 400\n },\n \"nodes\": [\n {\n \"name\": \"return fmt(lcs('48DF9A16K231AA4C6DSBD10E22EC33B79F55')+' [%s]%s', isVar(p.music) ? fmtStrVar(p.music) : p.music.name || lcs('P9'), !p.fadeInDuration ? '' : ', '+fmtNumVar(p.fadeInDuration)+'f')\",\n \"id\": \"gs.PlayMusic\"\n }\n ],\n \"defaultValue\": { \"layer\": 0, \"music\": { \"volume\": 100, \"playbackRate\": 100 }, \"fadeInDuration\": 0, \"playTime\": { \"min\": 10, \"max\": 30 }, \"playRange\": { \"start\": 10, \"end\": 20 }, \"playType\": 0 },\n \"quickItems\": [\n {\n \"label\": \"$$P61\",\n \"valueFormula\": \"return fmtResource(p.music);\",\n \"variableButton\": { \"dataSource\": \"strings\" },\n \"attribute\": \"music\",\n \"type\": \"GSQPopupField\",\n \"dialog\": { \"uid\": \"dialog.selectAudioResource\", \"parameters\": { \"folder\": \"Audio/Music\" } },\n \"icon\": { \"name\": \"listen-01\" }\n },\n {\n \"label\": \"$$P141\",\n \"lockable\": true,\n \"valueFormula\": \"return p.music.volume + '%';\",\n \"attribute\": \"music.volume\",\n \"minimum\": 0,\n \"maximum\": 100,\n \"type\": \"GSQSlider\"\n },\n {\n \"label\": \"$$P142\",\n \"lockable\": true,\n \"valueFormula\": \"return p.music.playbackRate + '%';\",\n \"attribute\": \"music.playbackRate\",\n \"minimum\": 50,\n \"maximum\": 150,\n \"type\": \"GSQSlider\"\n },\n GSQ.CONTROLS.AUDIO_FADE_IN\n ],\n \"expandedView\": {\n \"columns\": [\n {\n \"sections\": [\n {\n \"label\": \"$$9FEB895376A9F34CF86B5494DBD692B58693\",\n \"rows\": [\n {\n \"items\": [\n GSQ.CONTROLS.AUDIO_LAYER,\n {\n \"type\": \"GSQPopupField\",\n \"label\": \"$$2D13E13B48733748922BE0661BEA7C56969D\",\n \"dataSource\": GS.CONST.AUDIO_PLAY_TYPES,\n \"attribute\": \"playType\",\n \"valueFormula\": \"return GS.CONST.AUDIO_PLAY_TYPES[p.playType]\", \n \"showItems\": [[], [\"playTime.min\",\"playTime.max\", \"playRange.start\", \"playRange.end\"]]\n },\n {\n \"type\": \"GSQStepper\",\n \"label\": \"$$B413DADC4A5BF849644A4C12EF5E85E4FEE8\",\n \"attribute\": \"playTime.min\",\n \"valueFormula\": \"return p.playTime.min + 's'\",\n \"minimum\": 0,\n \"maximum\": GS.CONST.MAX_NUMBER_VALUE\n },\n {\n \"type\": \"GSQStepper\",\n \"label\": \"$$A656990A40DCB745BA199F53B74826F4B323\",\n \"attribute\": \"playTime.max\",\n \"valueFormula\": \"return p.playTime.max + 's'\",\n \"minimum\": 0,\n \"maximum\": GS.CONST.MAX_NUMBER_VALUE\n },\n {\n \"type\": \"GSQStepper\",\n \"label\": \"$$533692415AAF7749C76B0788EDCF407D5A18\",\n \"attribute\": \"playRange.start\",\n \"valueFormula\": \"return p.playRange.start + 's'\",\n \"minimum\": 0,\n \"maximum\": GS.CONST.MAX_NUMBER_VALUE\n },\n {\n \"type\": \"GSQStepper\",\n \"label\": \"$$0BB08C7B26984045683905F29CEE9D90D4A7\",\n \"attribute\": \"playRange.end\",\n \"valueFormula\": \"return p.playRange.end + 's'\",\n \"minimum\": 0,\n \"maximum\": GS.CONST.MAX_NUMBER_VALUE\n }\n ]\n }\n ]\n } \n ]\n }\n ]\n \n },\n \"sections\": [\n ]\n}",
"name": "Play Music",
"parentId": "4F83188DK2895A4449SBAF7E09712D75291C",
"order": 0
},
"summary": [
"name",
"type"
]
}
|