@@ -37,25 +37,35 @@ function draw_window_update() {
3737 }
3838
3939 draw_theme_font (font_main)
40- if (language != 1 ) {if (window = w_update) draw_text_dynamic (x1 + 32 , y1 + 32 , " Thank you for upgrading to version " + version + " !" )}
41- else {if (window = w_update) draw_text_dynamic (x1 + 32 , y1 + 32 , " 感谢你更新到" + version + " 版本!" )}
42- draw_area (x1 + 16 , y1 + 58 , x1 + 487 , y1 + 310 )
40+ if (language != 1 ) {
41+ if (window = w_update) {
42+ draw_text_dynamic (x1 + 32 , y1 + 32 , " Thank you for upgrading to version " + version + " !" )
43+ }
44+ } else {
45+ if (window = w_update) {
46+ draw_text_dynamic (x1 + 32 , y1 + 32 , " 感谢你更新到" + version + " 版本!" )
47+ }
48+ }
49+ draw_area (x1 + 16 , y1 + 58 , x1 + 487 , y1 + 357 )
4350 n = string_count (" \n " , fullstr)
4451 for (a = 0 ; a < n; a += 1 ) {
4552 str[a] = string_copy (fullstr, 1 , string_pos (" \n " , fullstr) - 1 )
4653 strb[a] = 0
4754 if (string_char_at (str[a], 1 ) = " C" ) strb[a] = 1
4855 fullstr = string_delete (fullstr, 1 , string_pos (" \n " , fullstr))
4956 }
50- for (a = sb_val[update_scrollbar]; a < sb_val[update_scrollbar] + 15 ; a += 1 ) {
57+ for (a = sb_val[update_scrollbar]; a < sb_val[update_scrollbar] + 18 ; a += 1 ) {
5158 if (a >= n) break
5259 if (strb[a]) draw_theme_font (font_main_bold)
5360 else draw_theme_font (font_main)
5461 draw_text (x1 + 32 , y1 + 64 + 16 * (a - sb_val[update_scrollbar]), str[a])
5562 }
5663 draw_theme_font (font_main)
57- draw_scrollbar (update_scrollbar, x1 + 470 , y1 + 60 , 12 , 18 , n, 0 , 1 )
58- if (draw_button2 (x1 + 220 , y1 + 340 , 72 , condstr (language != 1 , " OK" , " 确认" )) && (windowopen = 1 || theme != 3 )) {
64+ draw_scrollbar (update_scrollbar, x1 + 470 , y1 + 60 , 12 , 22 , n, 0 , 1 )
65+ if (draw_button2 (x1 + 16 , y1 + 365 , 96 , condstr (language != 1 , " Older versions..." , " Older versions..." ))) {
66+ open_url (" https://hielkeminecraft.github.io/OpenNoteBlockStudio/changelog" )
67+ }
68+ if (draw_button2 (x1 + 487 - 72 , y1 + 365 , 72 , condstr (language != 1 , " OK" , " 确认" )) && (windowopen = 1 || theme != 3 )) {
5969 if (window = w_update) {
6070 window = w_greeting
6171 save_settings () // Save new version number
0 commit comments