forked from SilverStudioGames/WTS
Web Updater
* Implemented web updater (simulation only) * Added progress support to GUI * Version bump * Added updates directory * Fixed slider missing image variants
This commit is contained in:
parent
d81d90f64a
commit
794f528b8b
BIN
game/gui/bar/bottom.png
(Stored with Git LFS)
Normal file
BIN
game/gui/bar/bottom.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
game/gui/bar/left.png
(Stored with Git LFS)
Normal file
BIN
game/gui/bar/left.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
game/gui/bar/right.png
(Stored with Git LFS)
Normal file
BIN
game/gui/bar/right.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
game/gui/bar/top.png
(Stored with Git LFS)
Normal file
BIN
game/gui/bar/top.png
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -189,6 +189,7 @@ image slider_horizontal_idle_bar = Solid(gui.muted_color)
|
||||
image slider_horizontal_selected_idle_bar = "slider_horizontal_idle_bar"
|
||||
image slider_horizontal_hover_bar = Solid(gui.hover_muted_color)
|
||||
image slider_horizontal_selected_hover_bar = "slider_horizontal_hover_bar"
|
||||
image slider_horizontal_insensitive_thumb = "slider_horizontal_idle_thumb"
|
||||
|
||||
image slider_vertical_idle_thumb = Solid(gui.idle_color, ysize=gui.thumb_size)
|
||||
image slider_vertical_selected_idle_thumb = "slider_vertical_idle_thumb"
|
||||
@ -198,6 +199,7 @@ image slider_vertical_idle_bar = Solid(gui.muted_color)
|
||||
image slider_vertical_selected_idle_bar = "slider_vertical_idle_bar"
|
||||
image slider_vertical_hover_bar = Solid(gui.hover_muted_color)
|
||||
image slider_vertical_selected_hover_bar = "slider_vertical_hover_bar"
|
||||
image slider_vertical_insensitive_thumb = "slider_vertical_idle_thumb"
|
||||
|
||||
image dark_slider_empty = "gui/slider/dark_empty.png"
|
||||
image light_slider_empty = "gui/slider/light_empty.png"
|
||||
|
@ -242,8 +242,13 @@ screen navigation(title=None):
|
||||
null height 14 # Half button height
|
||||
|
||||
if main_menu:
|
||||
|
||||
if not title:
|
||||
if (updater.can_update() or config.developer):
|
||||
if new_version:
|
||||
textbutton "Update available" action updater.Update(UPDATE_URL, simulate="available", patch=True) style_prefix "update_available"
|
||||
else:
|
||||
textbutton "Check for updates" action Function(check_for_updates, 300)
|
||||
|
||||
if show_quick_start:
|
||||
textbutton _("Quick Start") action Start("start_quick")
|
||||
elif show_dev_start:
|
||||
|
@ -33,8 +33,8 @@ define config.developer = "auto"
|
||||
define config.console = True
|
||||
|
||||
# Game version and naming
|
||||
define config.version = "1.42.2"
|
||||
define compatible_version = 1.40
|
||||
define config.version = "1.43.0"
|
||||
define compatible_version = 1.43
|
||||
define config.name = "WT Silver"
|
||||
|
||||
# Application window settings
|
||||
@ -136,7 +136,7 @@ define config.gc_print_unreachable = False
|
||||
|
||||
init python:
|
||||
build.name = "WTS"
|
||||
build.include_update = False
|
||||
build.include_update = True
|
||||
build.include_old_themes = False
|
||||
build.exclude_empty_directories = True
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
242
game/scripts/utility/updater.rpy
Normal file
242
game/scripts/utility/updater.rpy
Normal file
File diff suppressed because it is too large
Load Diff
4
updates/.gitignore
vendored
Normal file
4
updates/.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
# Ignore everything in this directory
|
||||
*
|
||||
# Except this file
|
||||
!.gitignore
|
Loading…
Reference in New Issue
Block a user