diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2015-12-09 08:38:23 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2015-12-09 08:38:23 +0100 |
commit | 8639cecf4cedd56452b47503be19c44b304cd02f (patch) | |
tree | e2a795da15e40c7d9d5b82e33378f8dbf0eaf67a /demos/gui/rich_text_bbcode | |
parent | efbb834936fdc9da9789ad37c9cc61e0b90cda95 (diff) |
Improve code formatting and update to 2.0
The scripts were streamlined using more or less the following conventions:
- space after a comma in lists of arguments
- space around weak operators (+, -), no space around strong operators (*, /)
- space after a comment start (#)
- removed trailing spaces or tabs, apart from those that delimit the function indentation level (those could be removed too but since they are added automatically by the editor when typing code, keeping them for now)
- function blocks separate by two newlines
The scene files were resaved with the (current) 2.0 format, and some scenes that were in XML format were converted to SCN, to be consistent across all demos.
Diffstat (limited to 'demos/gui/rich_text_bbcode')
-rw-r--r-- | demos/gui/rich_text_bbcode/rich_text_bbcode.gd | 13 | ||||
-rw-r--r-- | demos/gui/rich_text_bbcode/rich_text_bbcode.scn | bin | 3288 -> 3217 bytes |
2 files changed, 1 insertions, 12 deletions
diff --git a/demos/gui/rich_text_bbcode/rich_text_bbcode.gd b/demos/gui/rich_text_bbcode/rich_text_bbcode.gd index 30fac1f729..79a08c1303 100644 --- a/demos/gui/rich_text_bbcode/rich_text_bbcode.gd +++ b/demos/gui/rich_text_bbcode/rich_text_bbcode.gd @@ -1,17 +1,6 @@ extends Panel -# member variables here, example: -# var a=2 -# var b="textvar" -func _ready(): - # Initialization here - pass - - - - -func _on_RichTextLabel_meta_clicked( meta ): +func _on_RichTextLabel_meta_clicked(meta): OS.shell_open(meta) - pass # replace with function body diff --git a/demos/gui/rich_text_bbcode/rich_text_bbcode.scn b/demos/gui/rich_text_bbcode/rich_text_bbcode.scn Binary files differindex 081338fd91..c908d44dc3 100644 --- a/demos/gui/rich_text_bbcode/rich_text_bbcode.scn +++ b/demos/gui/rich_text_bbcode/rich_text_bbcode.scn |