@@ -52,24 +52,24 @@ function map_load(_file = "") {
52
52
if (_file == " " ) return ;
53
53
54
54
if (!file_exists (_file)) {
55
- announcement_error (" 谱面文件不存在。导入中止。 " );
55
+ announcement_error (i18n_get ( " anno_chart_not_exists " ) );
56
56
return ;
57
57
}
58
58
59
- var _confirm = _direct? true :show_question ( " 确认导入谱面?所有操作将不可撤销。 " );
59
+ var _confirm = _direct? true :show_question_i18n ( " box_q_import_confirm " );
60
60
if (!_confirm) return ;
61
- var _clear = _direct? true :show_question ( " 是否清除所有原谱面物件? " );
61
+ var _clear = _direct? true :show_question_i18n ( " box_q_import_clear " );
62
62
if (_clear) note_delete_all ();
63
63
64
- var _import_info = show_question ( " 是否导入谱面信息(标题、难度、Timing等)? " );
64
+ var _import_info = show_question_i18n ( " box_q_import_info " );
65
65
66
66
if (filename_ext (_file) == " .xml" )
67
67
map_import_xml (_file, _import_info);
68
68
69
69
objManager.chartPath = _file;
70
70
71
71
show_debug_message (" Import map sucessfully." );
72
- announcement_play (" 导入谱面完毕。 " );
72
+ announcement_play (" anno_import_chart_complete " );
73
73
}
74
74
75
75
function map_import_xml (_file, _import_info) {
@@ -120,7 +120,7 @@ function map_import_xml(_file, _import_info) {
120
120
_import_fun (_main.m_notesRight .m_notes .CMapNoteAsset , 2 );
121
121
122
122
if (variable_struct_exists (_main, " m_argument" )) {
123
- _import_tp = show_question ( " 是否导入 Dynamaker Modified 谱面文件中的变 BPM 数据? " );
123
+ _import_tp = show_question_i18n ( i18n_get ( " box_q_import_dymm_bpm " ) );
124
124
var _bpms = _main.m_argument .m_bpmchange .CBpmchange ;
125
125
if (!is_array (_bpms)) _bpms = [_bpms];
126
126
for (var i=0 , l=array_length (_bpms); i<l; i++) {
@@ -212,8 +212,8 @@ function map_import_osu() {
212
212
213
213
if (_file == " " ) return ;
214
214
215
- var _import_hitobj = show_question ( " 是否导入 .osu 中的物件?(要进行转谱吗?) " );
216
- var _clear_notes = show_question ( " 是否清除所有原谱面物件?此操作不可撤销! " );
215
+ var _import_hitobj = show_question_i18n ( i18n_get ( " box_q_osu_import_objects " ) );
216
+ var _clear_notes = show_question_i18n ( i18n_get ( " box_q_clear_objects " ) );
217
217
if (_clear_notes) note_delete_all ();
218
218
var _delay_time = 0 ;
219
219
@@ -283,11 +283,11 @@ function map_import_osu() {
283
283
timing_point_sort ();
284
284
note_sort_all ();
285
285
286
- announcement_play (" 导入谱面信息完毕。 " , 1000 );
286
+ announcement_play (" anno_import_info_complete " , 1000 );
287
287
}
288
288
289
289
function map_set_title () {
290
- var _title = get_string ( " 请输入新的谱面标题: " , objMain.chartTitle );
290
+ var _title = get_string_i18n ( i18n_get ( " box_set_chart_title " ) + " : " , objMain.chartTitle );
291
291
292
292
if (_title == " " ) return ;
293
293
@@ -315,7 +315,7 @@ function music_load(_file = "") {
315
315
// music = FMODGMS_Snd_LoadSound(_file);
316
316
if (music < 0 ) {
317
317
show_error (" Load Music Failed. \n FMOD Error Message: " + FMODGMS_Util_GetErrorMessage (), false );
318
- announcement_error (" 音乐文件加载失败,可能原因为类型不支持或文件损坏。 \n FMOD 错误信息: " +FMODGMS_Util_GetErrorMessage ());
318
+ announcement_error (i18n_get ( " anno_music_load_err " ) +FMODGMS_Util_GetErrorMessage ());
319
319
music = undefined;
320
320
return ;
321
321
}
@@ -334,7 +334,7 @@ function music_load(_file = "") {
334
334
objManager.musicPath = _file;
335
335
show_debug_message (" Load sucessfully." );
336
336
337
- announcement_play (" 音乐加载完毕。 " , 1000 );
337
+ announcement_play (" anno_music_load_complete " , 1000 );
338
338
}
339
339
340
340
function image_load (_file = " " ) {
@@ -345,13 +345,13 @@ function image_load(_file = "") {
345
345
if (_file == " " ) return ;
346
346
347
347
if (!file_exists (_file)) {
348
- announcement_error (" 图片文件不存在。 \n [scale, 0.8]路径: " +_file);
348
+ announcement_error (i18n_get ( " anno_graph_not_exists " ) +_file);
349
349
return ;
350
350
}
351
351
352
352
var _spr = sprite_add (_file, 1 , 0 , 0 , 0 , 0 );
353
353
if (_spr < 0 ) {
354
- announcement_error (" 图片文件读取失败。图片可能过大或损坏。 " );
354
+ announcement_error (" anno_graph_load_err " );
355
355
return ;
356
356
}
357
357
@@ -451,7 +451,7 @@ function map_export_xml() {
451
451
452
452
objManager.chartPath = _file;
453
453
454
- announcement_play (" 谱面导出完毕。 " );
454
+ announcement_play (" anno_export_complete " );
455
455
}
456
456
457
457
function map_get_struct () {
@@ -532,10 +532,10 @@ function map_get_alt_title() {
532
532
533
533
function map_set_global_bar () {
534
534
535
- var _barpm = get_string ( " 请输入自定义的全局 Bar Per Minute :" , " " );
535
+ var _barpm = get_string_i18n ( i18n_get ( " box_set_global_bar_1 " )+ " :" , " " );
536
536
_barpm = string_real (_barpm);
537
537
if (_barpm == " " ) return ;
538
- var _offset = string_digits (get_string ( " 请输入用于 Bar 显示与导出的全局 Offset (毫秒) :" , " " ));
538
+ var _offset = string_digits (get_string_i18n ( i18n_get ( " box_set_global_bar_2 " )+ " :" , " " ));
539
539
if (_offset == " " ) return ;
540
540
with (objMain) {
541
541
chartBarPerMin = real (_barpm);
@@ -544,15 +544,15 @@ function map_set_global_bar() {
544
544
chartBarOffset = time_to_bar (chartTimeOffset);
545
545
}
546
546
547
- announcement_play (" 已更改全局 BarPM 与 Offset 至: " +_barpm+" /" +string (_offset));
547
+ announcement_play (i18n_get ( " anno_set_global_bar_complete " ) + " : " +_barpm+" /" +string (_offset));
548
548
549
549
}
550
550
551
551
function map_add_offset (_offset = " " , record = false ) {
552
552
var _record = false ;
553
553
if (_offset == " " ) {
554
554
var _nega = 1 ;
555
- _offset = get_string ( " 请输入你想要添加的全局时间偏移量(以毫秒记,正数代表增加延迟)。这将会影响所有的 Timing Points 和 Notes 所在的时间。 " , " " );
555
+ _offset = get_string_i18n ( i18n_get ( " box_add_offset " ) , " " );
556
556
if (_offset == " " ) return ;
557
557
if (string_char_at (_offset, 1 ) == " -" )
558
558
_nega = -1 ;
@@ -573,7 +573,7 @@ function map_add_offset(_offset = "", record = false) {
573
573
}
574
574
notes_array_update ();
575
575
576
- announcement_play (" 全局时间偏移添加完毕。 " );
576
+ announcement_play (" anno_add_offset_complete " );
577
577
578
578
if (record)
579
579
operation_step_add (OPERATION_TYPE.OFFSET , _offset, -1 );
@@ -622,14 +622,14 @@ function project_load(_file = "") {
622
622
// /// Old version workaround
623
623
624
624
if (_contents.version < " v0.1.5" ) {
625
- var _question = show_question ( " 检测到来自特定旧版本的项目。 \n 该谱面是否使用了从 .osu 中导入校时信息并添加了 64ms 的延迟? \n 这个延迟在新的版本中建议被撤销。如果你选择“是”,则所有放置的 Note 和 Timing Point 都会被提前 64ms 。 \n 在调整之前我们建议你先对 .dyn 文件进行备份。你也可以在之后手动进行调整。 \n 这个警告不会出现第二遍。 " );
625
+ var _question = show_question_i18n ( i18n_get ( " old_version_warn_1 " ) );
626
626
if (_question)
627
627
map_add_offset (-64 , true );
628
628
}
629
629
630
630
// ///
631
631
632
- announcement_play (" 打开项目完毕。 " );
632
+ announcement_play (" anno_project_load_complete " );
633
633
634
634
return 1 ;
635
635
}
@@ -663,14 +663,14 @@ function project_save_as(_file = "") {
663
663
664
664
objManager.projectPath = _file;
665
665
666
- announcement_play (" 项目保存完毕。 " );
666
+ announcement_play (" anno_project_save_complete " );
667
667
668
668
return 1 ;
669
669
}
670
670
671
671
function project_new () {
672
672
673
- var _confirm = show_question ( " 确定要创建新的工程吗?所有未保存的更改都将丢失。 " );
673
+ var _confirm = show_question_i18n ( i18n_get ( " new_project_warn " ) );
674
674
if (!_confirm) return ;
675
675
676
676
with (objManager) {
@@ -740,7 +740,7 @@ function theme_next() {
740
740
if (instance_exists (objMain))
741
741
objMain.themeColor = global.themes [global.themeAt ].color ;
742
742
743
- announcement_play (" 已切换到主题 [[" + global.themes [global.themeAt ].title + " ]" , 1000 );
743
+ announcement_play (i18n_get ( " anno_switch_theme_to " ) + " [[" + global.themes [global.themeAt ].title + " ]" , 1000 );
744
744
}
745
745
746
746
function theme_get () {
@@ -772,7 +772,7 @@ function announcement_error(str, time = 8000) {
772
772
773
773
function announcement_adjust (str, val) {
774
774
str = i18n_get (str);
775
- announcement_play (str + " :" + (val?" 开启 " :" 关闭 " ));
775
+ announcement_play (str + " :" + i18n_get (val?" anno_adjust_enabled " :" anno_adjust_disabled " ));
776
776
}
777
777
778
778
#endregion
@@ -826,18 +826,18 @@ function save_config() {
826
826
function switch_debug_info () {
827
827
with (objMain) {
828
828
showDebugInfo = !showDebugInfo;
829
- announcement_play ( " 调试信息: " +( showDebugInfo? " 打开 " : " 关闭 " ) );
829
+ announcement_adjust ( " anno_debug_info " , showDebugInfo);
830
830
}
831
831
}
832
832
833
833
function switch_autosave () {
834
834
with (objManager) {
835
835
if (!global.autosave ) {
836
- announcement_play (" 自动保存已开启。 " , 2000 );
836
+ announcement_play (" autosave_enable " , 2000 );
837
837
time_source_start (tsAutosave);
838
838
}
839
839
else {
840
- announcement_play (" 自动保存已关闭。 " , 2000 );
840
+ announcement_play (" autosave_disable " , 2000 );
841
841
time_source_stop (tsAutosave);
842
842
}
843
843
global.autosave = !global.autosave ;
0 commit comments