Skip to content

Commit d6c5271

Browse files
committed
track export part 1
1 parent 569b9d4 commit d6c5271

13 files changed

Lines changed: 1915 additions & 5 deletions

File tree

Minecraft Note Block Studio.yyp

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/block_other/block_other.gml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ function block_other(argument0, argument1, argument2, argument3, argument4) {
22
// block_other(x, y, z, id, data)
33
sch_block_write(argument0, argument1, argument2, argument3)
44
sch_data_write(argument0, argument1, argument2, argument4)
5+
totalblocksc++
56

67

78

scripts/control_create/control_create.gml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ function control_create() {
5656
icon_time = -1
5757
last_icon = -1
5858
icon_display = 1
59+
minus = 0
5960

6061
font_table =
6162
[

scripts/control_draw/control_draw.gml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,13 @@ function control_draw() {
122122
else set_msg("全屏模式 => 关闭")
123123
}
124124
}
125+
if (keyboard_check_pressed(ord("M"))) {
126+
minus -= 1
127+
}
128+
if (keyboard_check_pressed(ord("N"))) {
129+
minus += 1
130+
}
131+
//show_debug_message(minus)
125132
}
126133

127134
if (theme = 0) window_background = 15790320
@@ -1466,6 +1473,7 @@ function control_draw() {
14661473
inactive(selected = 0)+"Export pattern...|"+"Import from MIDI...|Import from schematic...|-|"+
14671474
inactive(totalblocks = 0) + "Export as audio track...|"+
14681475
inactive(totalblocks = 0) + "Export as schematic...|"+
1476+
inactive(totalblocks = 0) + "Export as track schematic...|"+
14691477
inactive(totalblocks = 0) + "Export as branch schematic...|"+
14701478
inactive(totalblocks = 0) + "Export as data pack...|-|" +
14711479
"Alt + F4$Exit")
@@ -1552,6 +1560,7 @@ function control_draw() {
15521560
"导入片段......|"+"导出片段......|"+"从 MIDI 文件导入......|从 Schematic 文件导入......|-|"+
15531561
inactive(totalblocks = 0) + "导出音频文件......|"+
15541562
inactive(totalblocks = 0) + "导出为 schematic......|"+
1563+
inactive(totalblocks = 0) + "导出为直轨 schematic......|"+
15551564
inactive(totalblocks = 0) + "导出为分支 schematic......|"+
15561565
inactive(totalblocks = 0) + "导出为数据包......|-|" +
15571566
"Alt + F4$退出")

scripts/draw_window_schematic_export/draw_window_schematic_export.gml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function draw_window_schematic_export() {
9898
if (draw_radiobox(x1 + 32, y1 + 240, sch_exp_layout = 1, "Simple walkway", "Generate a simple walkway that stretches\nas far as the length of the song.")) sch_exp_layout = 1
9999
if (draw_radiobox(x1 + 32, y1 + 260, sch_exp_layout = 0, "Circular walkway", "Generate a walkway where the\nplayer travels back and forth.")) sch_exp_layout = 0
100100
draw_text_dynamic(x1 + 16, y1 + 280, "For Minecraft version:")
101-
if (draw_radiobox(x1 + 32, y1 + 300, structure, "1.13+", "Create a Structure block file that is compatible with 1.13+.\nOnly the default block choice is supported.")) structure = true
101+
if (draw_radiobox(x1 + 32, y1 + 300, structure, "1.13+", "Create a Structure block file that is compatible with 1.13+.")) structure = true
102102
if (draw_radiobox(x1 + 32, y1 + 320, (!sch_exp_minecraft_old && !structure), "1.11-1.12", "Create a Schematic that is compatible with 1.11 or 1.12.")) {sch_exp_minecraft_old = false structure = false}
103103
if (draw_radiobox(x1 + 32, y1 + 340, (sch_exp_minecraft_old && !structure), "pre 1.11", "Create a Schematic that is compatible with\nold Minecraft versions only, before 1.11.")) {sch_exp_minecraft_old = true structure = false}
104104
draw_text_dynamic(x1 + 170, y1 + 220, "Repeaters per row:")
@@ -137,7 +137,7 @@ function draw_window_schematic_export() {
137137
if (draw_radiobox(x1 + 32, y1 + 240, sch_exp_layout = 1, "普通过道", "生成过道延伸到歌曲末尾。")) sch_exp_layout = 1
138138
if (draw_radiobox(x1 + 32, y1 + 260, sch_exp_layout = 0, "环形过道", "生成让玩家来回走的过道。")) sch_exp_layout = 0
139139
draw_text_dynamic(x1 + 16, y1 + 280, "导出为 Minecraft 版本:")
140-
if (draw_radiobox(x1 + 32, y1 + 300, structure, "1.13+", "创建一个兼容 1.13+ 的结构方块文件。只兼容默认方块。")) structure = true
140+
if (draw_radiobox(x1 + 32, y1 + 300, structure, "1.13+", "创建一个兼容 1.13+ 的结构方块文件。")) structure = true
141141
if (draw_radiobox(x1 + 32, y1 + 320, (!sch_exp_minecraft_old && !structure), "1.11-1.12", "创建一个兼容 1.11 和 1.12 的 Schematic 文件。")) {sch_exp_minecraft_old = false structure = false}
142142
if (draw_radiobox(x1 + 32, y1 + 340, (sch_exp_minecraft_old && !structure), "pre 1.11", "创建一个只兼容 1.11 之前旧版本的 Schematic 文件。")) {sch_exp_minecraft_old = true structure = false}
143143
draw_text_dynamic(x1 + 170, y1 + 220, "每行中继器个数:")

0 commit comments

Comments
 (0)