diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-06-03 10:30:38 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-06-03 10:30:38 -0300 |
commit | c7d45ec085086ab86192a7890b9622320d57b89d (patch) | |
tree | 0a764a6a2b7bded960a652c81a4b5a6815dd3c31 /demos/gui | |
parent | f9af57f3bdb16e015ee10b979fe18cf2195077f9 (diff) |
Removed demos
they go to their own project now
Diffstat (limited to 'demos/gui')
36 files changed, 0 insertions, 256 deletions
diff --git a/demos/gui/drag_and_drop/drag_and_drop.scn b/demos/gui/drag_and_drop/drag_and_drop.scn Binary files differdeleted file mode 100644 index 9dec254ef7..0000000000 --- a/demos/gui/drag_and_drop/drag_and_drop.scn +++ /dev/null diff --git a/demos/gui/drag_and_drop/drag_drop_script.gd b/demos/gui/drag_and_drop/drag_drop_script.gd deleted file mode 100644 index 719c42fe8f..0000000000 --- a/demos/gui/drag_and_drop/drag_drop_script.gd +++ /dev/null @@ -1,20 +0,0 @@ - -extends ColorPickerButton - - -func get_drag_data(pos): - # 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 get_color() - - -func can_drop_data(pos, data): - return typeof(data) == TYPE_COLOR - - -func drop_data(pos, data): - set_color(data) diff --git a/demos/gui/drag_and_drop/engine.cfg b/demos/gui/drag_and_drop/engine.cfg deleted file mode 100644 index 49b9b93512..0000000000 --- a/demos/gui/drag_and_drop/engine.cfg +++ /dev/null @@ -1,5 +0,0 @@ -[application] - -name="Drag & Drop (GUI)" -main_scene="res://drag_and_drop.scn" -icon="res://icon.png" diff --git a/demos/gui/drag_and_drop/icon.png b/demos/gui/drag_and_drop/icon.png Binary files differdeleted file mode 100644 index f900d8d4a3..0000000000 --- a/demos/gui/drag_and_drop/icon.png +++ /dev/null diff --git a/demos/gui/input_mapping/controls.gd b/demos/gui/input_mapping/controls.gd deleted file mode 100644 index f337353796..0000000000 --- a/demos/gui/input_mapping/controls.gd +++ /dev/null @@ -1,56 +0,0 @@ - -extends Control - -# Note for the reader: -# -# This demo conveniently uses the same names for actions and for the container nodes -# that hold each remapping button. This allow to get back to the button based simply -# on the name of the corresponding action, but it might not be so simple in your project. -# -# A better approach for large-scale input remapping might be to do the connections between -# buttons and wait_for_input through the code, passing as arguments both the name of the -# action and the node, e.g.: -# button.connect("pressed", self, "wait_for_input", [ button, action ]) - -# 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 - - -func wait_for_input(action_bind): - action = action_bind - # See note at the beginning of the script - button = get_node("bindings").get_node(action).get_node("Button") - get_node("contextual_help").set_text("Press a key to assign to the '" + action + "' action.") - set_process_input(true) - - -func _input(event): - # Handle the first pressed key - if (event.type == InputEvent.KEY): - # Register the event as handled and stop polling - get_tree().set_input_as_handled() - set_process_input(false) - # Reinitialise the contextual help label - get_node("contextual_help").set_text("Click a key binding to reassign it, or press the Cancel action.") - if (not event.is_action("ui_cancel")): - # Display the string corresponding to the pressed key - button.set_text(OS.get_scancode_string(event.scancode)) - # Start by removing previously key binding(s) - for old_event in InputMap.get_action_list(action): - InputMap.action_erase_event(action, old_event) - # Add the new key binding - InputMap.action_add_event(action, event) - - -func _ready(): - # Initialise each button with the default key binding from InputMap - var input_event - for action in player_actions: - # We assume that the key binding that we want is the first one (0), if there are several - input_event = InputMap.get_action_list(action)[0] - # See note at the beginning of the script - var button = get_node("bindings").get_node(action).get_node("Button") - button.set_text(OS.get_scancode_string(input_event.scancode)) - button.connect("pressed", self, "wait_for_input", [action]) diff --git a/demos/gui/input_mapping/controls.scn b/demos/gui/input_mapping/controls.scn Binary files differdeleted file mode 100644 index 7894212fb7..0000000000 --- a/demos/gui/input_mapping/controls.scn +++ /dev/null diff --git a/demos/gui/input_mapping/engine.cfg b/demos/gui/input_mapping/engine.cfg deleted file mode 100644 index 811635ce25..0000000000 --- a/demos/gui/input_mapping/engine.cfg +++ /dev/null @@ -1,18 +0,0 @@ -[application] - -name="Input Mapping GUI" -main_scene="res://controls.scn" -icon="res://icon.png" - -[display] - -width=640 -height=480 - -[input] - -move_up=[key(Up)] -move_down=[key(Down)] -move_left=[key(Left)] -move_right=[key(Right)] -jump=[key(Space)] diff --git a/demos/gui/input_mapping/icon.png b/demos/gui/input_mapping/icon.png Binary files differdeleted file mode 100644 index 5a1abf4f58..0000000000 --- a/demos/gui/input_mapping/icon.png +++ /dev/null diff --git a/demos/gui/rich_text_bbcode/OFL.txt b/demos/gui/rich_text_bbcode/OFL.txt deleted file mode 100644 index 723d4560b9..0000000000 --- a/demos/gui/rich_text_bbcode/OFL.txt +++ /dev/null @@ -1,92 +0,0 @@ -Copyright (c) 2009-2011 by Accademia di Belle Arti di Urbino and students of MA course of Visual design. Some rights reserved.
-This Font Software is licensed under the SIL Open Font License, Version 1.1.
-This license is copied below, and is also available with a FAQ at:
-http://scripts.sil.org/OFL
-
-
------------------------------------------------------------
-SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
------------------------------------------------------------
-
-PREAMBLE
-The goals of the Open Font License (OFL) are to stimulate worldwide
-development of collaborative font projects, to support the font creation
-efforts of academic and linguistic communities, and to provide a free and
-open framework in which fonts may be shared and improved in partnership
-with others.
-
-The OFL allows the licensed fonts to be used, studied, modified and
-redistributed freely as long as they are not sold by themselves. The
-fonts, including any derivative works, can be bundled, embedded,
-redistributed and/or sold with any software provided that any reserved
-names are not used by derivative works. The fonts and derivatives,
-however, cannot be released under any other type of license. The
-requirement for fonts to remain under this license does not apply
-to any document created using the fonts or their derivatives.
-
-DEFINITIONS
-"Font Software" refers to the set of files released by the Copyright
-Holder(s) under this license and clearly marked as such. This may
-include source files, build scripts and documentation.
-
-"Reserved Font Name" refers to any names specified as such after the
-copyright statement(s).
-
-"Original Version" refers to the collection of Font Software components as
-distributed by the Copyright Holder(s).
-
-"Modified Version" refers to any derivative made by adding to, deleting,
-or substituting -- in part or in whole -- any of the components of the
-Original Version, by changing formats or by porting the Font Software to a
-new environment.
-
-"Author" refers to any designer, engineer, programmer, technical
-writer or other person who contributed to the Font Software.
-
-PERMISSION & CONDITIONS
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of the Font Software, to use, study, copy, merge, embed, modify,
-redistribute, and sell modified and unmodified copies of the Font
-Software, subject to the following conditions:
-
-1) Neither the Font Software nor any of its individual components,
-in Original or Modified Versions, may be sold by itself.
-
-2) Original or Modified Versions of the Font Software may be bundled,
-redistributed and/or sold with any software, provided that each copy
-contains the above copyright notice and this license. These can be
-included either as stand-alone text files, human-readable headers or
-in the appropriate machine-readable metadata fields within text or
-binary files as long as those fields can be easily viewed by the user.
-
-3) No Modified Version of the Font Software may use the Reserved Font
-Name(s) unless explicit written permission is granted by the corresponding
-Copyright Holder. This restriction only applies to the primary font name as
-presented to the users.
-
-4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
-Software shall not be used to promote, endorse or advertise any
-Modified Version, except to acknowledge the contribution(s) of the
-Copyright Holder(s) and the Author(s) or with their explicit written
-permission.
-
-5) The Font Software, modified or unmodified, in part or in whole,
-must be distributed entirely under this license, and must not be
-distributed under any other license. The requirement for fonts to
-remain under this license does not apply to any document created
-using the Font Software.
-
-TERMINATION
-This license becomes null and void if any of the above conditions are
-not met.
-
-DISCLAIMER
-THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
-OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
-COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
-INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
-DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
-OTHER DEALINGS IN THE FONT SOFTWARE.
diff --git a/demos/gui/rich_text_bbcode/TitilliumWeb-Bold.ttf b/demos/gui/rich_text_bbcode/TitilliumWeb-Bold.ttf Binary files differdeleted file mode 100644 index 0af0fe7d27..0000000000 --- a/demos/gui/rich_text_bbcode/TitilliumWeb-Bold.ttf +++ /dev/null diff --git a/demos/gui/rich_text_bbcode/TitilliumWeb-BoldItalic.ttf b/demos/gui/rich_text_bbcode/TitilliumWeb-BoldItalic.ttf Binary files differdeleted file mode 100644 index 77425eaab6..0000000000 --- a/demos/gui/rich_text_bbcode/TitilliumWeb-BoldItalic.ttf +++ /dev/null diff --git a/demos/gui/rich_text_bbcode/TitilliumWeb-Italic.ttf b/demos/gui/rich_text_bbcode/TitilliumWeb-Italic.ttf Binary files differdeleted file mode 100644 index 42f2c10f18..0000000000 --- a/demos/gui/rich_text_bbcode/TitilliumWeb-Italic.ttf +++ /dev/null diff --git a/demos/gui/rich_text_bbcode/TitilliumWeb-Regular.ttf b/demos/gui/rich_text_bbcode/TitilliumWeb-Regular.ttf Binary files differdeleted file mode 100644 index 6da821935d..0000000000 --- a/demos/gui/rich_text_bbcode/TitilliumWeb-Regular.ttf +++ /dev/null diff --git a/demos/gui/rich_text_bbcode/engine.cfg b/demos/gui/rich_text_bbcode/engine.cfg deleted file mode 100644 index 5f68b6a0e6..0000000000 --- a/demos/gui/rich_text_bbcode/engine.cfg +++ /dev/null @@ -1,5 +0,0 @@ -[application] - -name="Rich Text Label (BBCode)" -main_scene="res://rich_text_bbcode.scn" -icon="res://icon.png" diff --git a/demos/gui/rich_text_bbcode/icon.png b/demos/gui/rich_text_bbcode/icon.png Binary files differdeleted file mode 100644 index 6db48a3a9b..0000000000 --- a/demos/gui/rich_text_bbcode/icon.png +++ /dev/null diff --git a/demos/gui/rich_text_bbcode/rich_text_bbcode.gd b/demos/gui/rich_text_bbcode/rich_text_bbcode.gd deleted file mode 100644 index 79a08c1303..0000000000 --- a/demos/gui/rich_text_bbcode/rich_text_bbcode.gd +++ /dev/null @@ -1,6 +0,0 @@ - -extends Panel - - -func _on_RichTextLabel_meta_clicked(meta): - OS.shell_open(meta) diff --git a/demos/gui/rich_text_bbcode/rich_text_bbcode.scn b/demos/gui/rich_text_bbcode/rich_text_bbcode.scn Binary files differdeleted file mode 100644 index c908d44dc3..0000000000 --- a/demos/gui/rich_text_bbcode/rich_text_bbcode.scn +++ /dev/null diff --git a/demos/gui/rich_text_bbcode/titilium-bold.fnt b/demos/gui/rich_text_bbcode/titilium-bold.fnt Binary files differdeleted file mode 100644 index 7920ca743d..0000000000 --- a/demos/gui/rich_text_bbcode/titilium-bold.fnt +++ /dev/null diff --git a/demos/gui/rich_text_bbcode/titilium-bolditalic.fnt b/demos/gui/rich_text_bbcode/titilium-bolditalic.fnt Binary files differdeleted file mode 100644 index cc2d650d08..0000000000 --- a/demos/gui/rich_text_bbcode/titilium-bolditalic.fnt +++ /dev/null diff --git a/demos/gui/rich_text_bbcode/titilium-italic.fnt b/demos/gui/rich_text_bbcode/titilium-italic.fnt Binary files differdeleted file mode 100644 index f2e8edf2c2..0000000000 --- a/demos/gui/rich_text_bbcode/titilium-italic.fnt +++ /dev/null diff --git a/demos/gui/rich_text_bbcode/titilium-regular.fnt b/demos/gui/rich_text_bbcode/titilium-regular.fnt Binary files differdeleted file mode 100644 index fc3b789e11..0000000000 --- a/demos/gui/rich_text_bbcode/titilium-regular.fnt +++ /dev/null diff --git a/demos/gui/rich_text_bbcode/unicorn_icon.png b/demos/gui/rich_text_bbcode/unicorn_icon.png Binary files differdeleted file mode 100644 index a14517e12b..0000000000 --- a/demos/gui/rich_text_bbcode/unicorn_icon.png +++ /dev/null diff --git a/demos/gui/translation/controls.gd b/demos/gui/translation/controls.gd deleted file mode 100644 index ae2e26362b..0000000000 --- a/demos/gui/translation/controls.gd +++ /dev/null @@ -1,9 +0,0 @@ - -extends Panel - - -func _on_back_pressed(): - var s = load("res://main.scn") - var si = s.instance() - get_parent().add_child(si) - queue_free() diff --git a/demos/gui/translation/controls.scn b/demos/gui/translation/controls.scn Binary files differdeleted file mode 100644 index 055ac90b9b..0000000000 --- a/demos/gui/translation/controls.scn +++ /dev/null diff --git a/demos/gui/translation/engine.cfg b/demos/gui/translation/engine.cfg deleted file mode 100644 index dcd3d1983d..0000000000 --- a/demos/gui/translation/engine.cfg +++ /dev/null @@ -1,10 +0,0 @@ -[application] - -name="Translation Demo" -main_scene="res://main.scn" -icon="res://icon.png" - -[locale] - -translations=["res://translations/text.en.xl", "res://translations/text.es.xl", "res://translations/text.ja.xl"] -translation_remaps={"res://flag_uk.png":["res://flag_spain.png:es", "res://flag_japan.png:ja"]} diff --git a/demos/gui/translation/flag_japan.png b/demos/gui/translation/flag_japan.png Binary files differdeleted file mode 100644 index 4cc8267a5c..0000000000 --- a/demos/gui/translation/flag_japan.png +++ /dev/null diff --git a/demos/gui/translation/flag_spain.png b/demos/gui/translation/flag_spain.png Binary files differdeleted file mode 100644 index 4d00f93593..0000000000 --- a/demos/gui/translation/flag_spain.png +++ /dev/null diff --git a/demos/gui/translation/flag_uk.png b/demos/gui/translation/flag_uk.png Binary files differdeleted file mode 100644 index 53fbef3d67..0000000000 --- a/demos/gui/translation/flag_uk.png +++ /dev/null diff --git a/demos/gui/translation/icon.png b/demos/gui/translation/icon.png Binary files differdeleted file mode 100644 index 4be5ac1127..0000000000 --- a/demos/gui/translation/icon.png +++ /dev/null diff --git a/demos/gui/translation/main.gd b/demos/gui/translation/main.gd deleted file mode 100644 index c3e788f82b..0000000000 --- a/demos/gui/translation/main.gd +++ /dev/null @@ -1,32 +0,0 @@ - -extends Panel - - -func _goto_scene(): - var s = load("res://controls.scn") - var si = s.instance() - get_parent().add_child(si) - queue_free() - - -func _on_system_pressed(): - # Will autodetect based on system, then fall back - # to english if not found - _goto_scene() - -# NOTE: Changing locale will not change the text in the controls, -# The scene must be reloaded for changes to take effect. - -func _on_english_pressed(): - TranslationServer.set_locale("en") - _goto_scene() - - -func _on_spanish_pressed(): - TranslationServer.set_locale("es") - _goto_scene() - - -func _on_japanese_pressed(): - TranslationServer.set_locale("ja") - _goto_scene() diff --git a/demos/gui/translation/main.scn b/demos/gui/translation/main.scn Binary files differdeleted file mode 100644 index be833fcdb8..0000000000 --- a/demos/gui/translation/main.scn +++ /dev/null diff --git a/demos/gui/translation/noto.fnt b/demos/gui/translation/noto.fnt Binary files differdeleted file mode 100644 index e019615f41..0000000000 --- a/demos/gui/translation/noto.fnt +++ /dev/null diff --git a/demos/gui/translation/text.csv b/demos/gui/translation/text.csv deleted file mode 100644 index 0f4c148b95..0000000000 --- a/demos/gui/translation/text.csv +++ /dev/null @@ -1,3 +0,0 @@ -,en,es,ja -KEY_HELLO,Hello!,Hola!,こんにちは -KEY_PUSH,Push Me!,Aprétame!,私をプッシュ
\ No newline at end of file diff --git a/demos/gui/translation/translations/text.en.xl b/demos/gui/translation/translations/text.en.xl Binary files differdeleted file mode 100644 index 7bcba63e71..0000000000 --- a/demos/gui/translation/translations/text.en.xl +++ /dev/null diff --git a/demos/gui/translation/translations/text.es.xl b/demos/gui/translation/translations/text.es.xl Binary files differdeleted file mode 100644 index 4474d955d5..0000000000 --- a/demos/gui/translation/translations/text.es.xl +++ /dev/null diff --git a/demos/gui/translation/translations/text.ja.xl b/demos/gui/translation/translations/text.ja.xl Binary files differdeleted file mode 100644 index b3d1f0bf60..0000000000 --- a/demos/gui/translation/translations/text.ja.xl +++ /dev/null |