Update the game from inside it (#13)
"Version X is available" in the top bar is now a button that opens an Update popup: - Update and restart gets the download link from the server (the redirect is not followed, as the Gitea link needs no token), downloads the new game next to the running one with a progress bar, checks it (complete, and an MZ or ELF file), swaps it in and restarts. The quiz is saved first and continues. On Windows the running .exe is renamed to .old, put back if the swap fails, and deleted at the next start. - Download in browser opens the .exe, the Linux package, or the release page on other platforms. - From the editor, an unwritable folder or another platform, only the browser download is offered, with the reason. The message now fits between the tabs and the buttons in every theme; in Nord and Christmas it ran into Sync. The macOS export preset is removed, and the unused download_client_* functions are replaced by fetch_client_download_url. Closes #13 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c03c0e4efe
commit
f39865fffc
30 files changed
+2363
-354
No files matched your search
@@ -1391,6 +1391,17 @@ PlayerIcon/styles/disabled = SubResource("StyleBoxEmpty_playericon")
|
||||
PlayerIcon/styles/hover = SubResource("StyleBoxEmpty_playericon")
|
||||
PlayerIcon/styles/pressed = SubResource("StyleBoxEmpty_playericon")
|
||||
PlayerIcon/styles/focus = SubResource("StyleBoxEmpty_playericon")
|
||||
UpdateButton/base_type = &"Button"
|
||||
UpdateButton/colors/font_color = Color(0.922, 0.796, 0.545, 1.0)
|
||||
UpdateButton/colors/font_focus_color = Color(0.922, 0.796, 0.545, 1.0)
|
||||
UpdateButton/colors/font_hover_color = Color(0.96, 0.88, 0.72, 1.0)
|
||||
UpdateButton/colors/font_hover_pressed_color = Color(0.96, 0.88, 0.72, 1.0)
|
||||
UpdateButton/colors/font_pressed_color = Color(0.96, 0.88, 0.72, 1.0)
|
||||
UpdateButton/font_sizes/font_size = 18
|
||||
UpdateButton/styles/focus = SubResource("StyleBoxEmpty_playericon")
|
||||
UpdateButton/styles/hover = SubResource("StyleBoxEmpty_playericon")
|
||||
UpdateButton/styles/normal = SubResource("StyleBoxEmpty_playericon")
|
||||
UpdateButton/styles/pressed = SubResource("StyleBoxEmpty_playericon")
|
||||
PlayerList/base_type = &"PanelContainer"
|
||||
PlayerList/styles/panel = SubResource("StyleBoxFlat_playerlist")
|
||||
PlayerScore/base_type = &"Label"
|
||||
|
||||
Reference in new issue
Block a user