Update loading demos for 4.0 (#776)

This commit is contained in:
Jonathan Nicholl
2022-12-13 10:51:04 -05:00
committed by GitHub
parent 1b2ce74a39
commit 095beddcb9
133 changed files with 728 additions and 1703 deletions

View File

@@ -0,0 +1,42 @@
extends VBoxContainer
func _on_start_loading_pressed():
ResourceLoader.load_threaded_request("res://paintings/painting_babel.jpg")
ResourceLoader.load_threaded_request("res://paintings/painting_las_meninas.png")
ResourceLoader.load_threaded_request("res://paintings/painting_mona_lisa.jpg")
ResourceLoader.load_threaded_request("res://paintings/painting_old_guitarist.jpg")
ResourceLoader.load_threaded_request("res://paintings/painting_parasol.jpg")
ResourceLoader.load_threaded_request("res://paintings/painting_the_swing.jpg")
for current_button in $GetLoaded.get_children():
current_button.disabled = false
func _on_babel_pressed():
$Paintings/Babel.texture = ResourceLoader.load_threaded_get("res://paintings/painting_babel.jpg")
$GetLoaded/Babel.disabled = true
func _on_las_meninas_pressed():
$Paintings/LasMeninas.texture = ResourceLoader.load_threaded_get("res://paintings/painting_las_meninas.png")
$GetLoaded/LasMeninas.disabled = true
func _on_mona_lisa_pressed():
$Paintings/MonaLisa.texture = ResourceLoader.load_threaded_get("res://paintings/painting_mona_lisa.jpg")
$GetLoaded/MonaLisa.disabled = true
func _on_old_guitarist_pressed():
$Paintings/OldGuitarist.texture = ResourceLoader.load_threaded_get("res://paintings/painting_old_guitarist.jpg")
$GetLoaded/OldGuitarist.disabled = true
func _on_parasol_pressed():
$Paintings/Parasol.texture = ResourceLoader.load_threaded_get("res://paintings/painting_parasol.jpg")
$GetLoaded/Parasol.disabled = true
func _on_swing_pressed():
$Paintings/Swing.texture = ResourceLoader.load_threaded_get("res://paintings/painting_the_swing.jpg")
$GetLoaded/Swing.disabled = true