summaryrefslogtreecommitdiff
path: root/demos/gui
diff options
context:
space:
mode:
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()