Skip to content

Commit 8c7a27b

Browse files
committed
fix: add button to open release video on changelist window
1 parent a993d75 commit 8c7a27b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

scripts/draw_window_update/draw_window_update.gml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ function draw_window_update() {
4141

4242
// Refresh changelog button (debug)
4343
if (RUN_FROM_IDE != 1) {
44-
if (draw_button2(x1 + 500 - 144 - 16, y1 + 8, 72, "Open file")) {
44+
if (draw_button2(x1 + 500 - 144 - 16, y1 + 8 + 24, 72, "Open file")) {
4545
open_url(data_directory + "changelog.txt");
4646
}
47-
if (draw_button2(x1 + 500 - 72 - 8, y1 + 8, 72, "Refresh")) {
47+
if (draw_button2(x1 + 500 - 72 - 8, y1 + 8 + 24, 72, "Refresh")) {
4848
changelogstr = load_text(data_directory + "changelog.txt");
4949
}
5050
}
@@ -58,6 +58,9 @@ function draw_window_update() {
5858
draw_text_dynamic(x1 + 32, y1 + 32, "感谢你更新到 " + version + " 版本!")
5959
}
6060
}
61+
if (language != 1 && draw_button2(x1 + 500 - 120 - 8, y1 + 8, 120, "Watch release video")) {
62+
open_url("https://bit.ly/NBS311_video");
63+
}
6164
draw_area(x1 + 16, y1 + 58, x1 + 487 + theme_offset, y1 + 357)
6265
n = string_count("\n", fullstr)
6366
for (a = 0; a < n; a += 1) {

0 commit comments

Comments
 (0)