summaryrefslogtreecommitdiff
path: root/demos/gui
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2015-11-21 13:31:25 +0100
committerRémi Verschelde <rverschelde@gmail.com>2015-12-09 08:39:12 +0100
commit8c4f19e79d3e8ac8bc8c283073dce5ccfbf222b5 (patch)
treec1124b6d4957389006024d1e1baa5de56e207fec /demos/gui
parent8639cecf4cedd56452b47503be19c44b304cd02f (diff)
Use upper-cased first letter at the start of comment sentences
Diffstat (limited to 'demos/gui')
-rw-r--r--demos/gui/drag_and_drop/drag_drop_script.gd4
-rw-r--r--demos/gui/input_mapping/controls.gd7
-rw-r--r--demos/gui/translation/main.gd2
3 files changed, 7 insertions, 6 deletions
diff --git a/demos/gui/drag_and_drop/drag_drop_script.gd b/demos/gui/drag_and_drop/drag_drop_script.gd
index 7bcaf1a35e..719c42fe8f 100644
--- a/demos/gui/drag_and_drop/drag_drop_script.gd
+++ b/demos/gui/drag_and_drop/drag_drop_script.gd
@@ -3,12 +3,12 @@ extends ColorPickerButton
func get_drag_data(pos):
- # use another colorpicker as drag preview
+ # Use another colorpicker as drag preview
var cpb = ColorPickerButton.new()
cpb.set_color(get_color())
cpb.set_size(Vector2(50, 50))
set_drag_preview(cpb)
- # return color as drag data
+ # Return color as drag data
return get_color()
diff --git a/demos/gui/input_mapping/controls.gd b/demos/gui/input_mapping/controls.gd
index 7420053ef1..3cee6e6871 100644
--- a/demos/gui/input_mapping/controls.gd
+++ b/demos/gui/input_mapping/controls.gd
@@ -1,3 +1,6 @@
+
+extends Control
+
# Note for the reader:
#
# This demo conveniently uses the same names for actions and for the container nodes
@@ -9,9 +12,7 @@
# action and the node, e.g.:
# button.connect("pressed", self, "wait_for_input", [ button, action ])
-extends Control
-
-# member variables
+# Member variables
var player_actions = [ "move_up", "move_down", "move_left", "move_right", "jump" ]
var action # To register the action the UI is currently handling
var button # Button node corresponding to the above action
diff --git a/demos/gui/translation/main.gd b/demos/gui/translation/main.gd
index 9b188cd588..c3e788f82b 100644
--- a/demos/gui/translation/main.gd
+++ b/demos/gui/translation/main.gd
@@ -10,7 +10,7 @@ func _goto_scene():
func _on_system_pressed():
- # will autodetect based on system, then fall back
+ # Will autodetect based on system, then fall back
# to english if not found
_goto_scene()