Skip to content

Commit

Permalink
chore: add button to open and refresh changelog text file (debug)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bentroen committed Jul 9, 2024
1 parent 4332910 commit f74dfb1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions scripts/draw_window_update/draw_window_update.gml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,17 @@ function draw_window_update() {
}

draw_theme_font(font_main)

// Refresh changelog button (debug)
if (RUN_FROM_IDE) {
if (draw_button2(x1 + 500 - 144 - 16, y1 + 8, 72, "Open file")) {
open_url(data_directory + "changelog.txt");
}
if (draw_button2(x1 + 500 - 72 - 8, y1 + 8, 72, "Refresh")) {
changelogstr = load_text(data_directory + "changelog.txt");
}
}

if (language != 1) {
if (window = w_update) {
draw_text_dynamic(x1 + 32, y1 + 32, "Thank you for upgrading to version " + version + "!")
Expand Down

0 comments on commit f74dfb1

Please sign in to comment.