Skip to content

Commit f74dfb1

Browse files
committed
chore: add button to open and refresh changelog text file (debug)
1 parent 4332910 commit f74dfb1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

scripts/draw_window_update/draw_window_update.gml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,17 @@ function draw_window_update() {
3838
}
3939

4040
draw_theme_font(font_main)
41+
42+
// Refresh changelog button (debug)
43+
if (RUN_FROM_IDE) {
44+
if (draw_button2(x1 + 500 - 144 - 16, y1 + 8, 72, "Open file")) {
45+
open_url(data_directory + "changelog.txt");
46+
}
47+
if (draw_button2(x1 + 500 - 72 - 8, y1 + 8, 72, "Refresh")) {
48+
changelogstr = load_text(data_directory + "changelog.txt");
49+
}
50+
}
51+
4152
if (language != 1) {
4253
if (window = w_update) {
4354
draw_text_dynamic(x1 + 32, y1 + 32, "Thank you for upgrading to version " + version + "!")

0 commit comments

Comments
 (0)