Logo
Explore Help
Sign In
seedlingattempt/godot
1
0
Fork 0
You've already forked godot
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
8639cecf4cedd56452b47503be19c44b304cd02f
godot/demos/misc/scene_changer/scene_b.gd

17 lines
237 B
GDScript3
Raw Normal View History

added a built-in scene changer API, closes #1928
2015-05-17 16:33:35 -03:00
extends Panel
# member variables here, example:
# var a=2
# var b="textvar"
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.
2015-12-09 08:38:23 +01:00
added a built-in scene changer API, closes #1928
2015-05-17 16:33:35 -03:00
func _ready():
# Initalization here
pass
func _on_goto_scene_pressed():
get_tree().change_scene("res://scene_a.scn")
pass # replace with function body
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.1 Page: 81ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API