diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2015-11-21 13:31:25 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2015-12-09 08:39:12 +0100 |
commit | 8c4f19e79d3e8ac8bc8c283073dce5ccfbf222b5 (patch) | |
tree | c1124b6d4957389006024d1e1baa5de56e207fec /demos/misc/threads | |
parent | 8639cecf4cedd56452b47503be19c44b304cd02f (diff) |
Use upper-cased first letter at the start of comment sentences
Diffstat (limited to 'demos/misc/threads')
-rw-r--r-- | demos/misc/threads/thread.gd | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/demos/misc/threads/thread.gd b/demos/misc/threads/thread.gd index fbfd68af2b..1ef67e403c 100644 --- a/demos/misc/threads/thread.gd +++ b/demos/misc/threads/thread.gd @@ -1,31 +1,31 @@ extends Node2D -# member variables +# Member variables var thread = Thread.new() -# this function runs in a thread! -# threads always take one userdata argument +# This function runs in a thread! +# Threads always take one userdata argument func _bg_load(path): print("THREAD FUNC!") - # load the resource + # Load the resource var tex = ResourceLoader.load(path) - # call _bg_load_done on main thread + # Call _bg_load_done on main thread call_deferred("_bg_load_done") return tex # return it func _bg_load_done(): - # wait for the thread to complete, get the returned value + # Wait for the thread to complete, get the returned value var tex = thread.wait_to_finish() - # set to the sprite + # Set to the sprite get_node("sprite").set_texture(tex) func _on_load_pressed(): if (thread.is_active()): - # already working + # Already working return print("START THREAD!") thread.start(self, "_bg_load", "res://mona.png") |