src / beginning / screen / screen.tscn

Diagram

Diagram

Assets

200

Overridden virtual functions

_ready

func _ready() -> void:
	SceneHelper.preload_scene(MenuScenePath)

_input

func _input(_event: InputEvent) -> void:
	if Input.is_action_just_pressed("ui_accept"):
		match current_animation:
			'show_title': transit('hide_title')
			'hide_title': pass
			_: 		      transit('show_title')

Instantiators

Caution
No other scene instantiate this scene.

Scene Tree

  • Screen Control

    • Background ColorRect

    • Author Control

      • Container VBoxContainer

        • NameContainer MarginContainer

          • Name Label

        • Presents Label

    • Title Control

      • TitleContainer CenterContainer

        • TitleLogo Sprite2D

      • ButtonContainer MarginContainer

        • JoyAButton Sprite2D

    • SubViewportContainer SubViewportContainer

    • Blinder ColorRect

    • AnimationPlayer AnimationPlayer

    • AnimationTree AnimationTree

Signal Connections

$AnimationTree:[animation_finished]⇒$.
func _on_animation_tree_animation_finished(anim_name: StringName) -> void:
	if anim_name == 'hide_title':
		SceneHelper.transit(self, MenuScenePath)
$AnimationTree:[animation_started]⇒$.
func _on_animation_tree_animation_started(anim_name: StringName) -> void:
	current_animation = anim_name

Animations

Animation_g86x5

Diagram

hide_title

Diagram

opening (autoplay)

Diagram

show_title

Diagram

Properties

Table 1. Root properties
Name Value

layout_mode

3

anchors_preset

15

anchor_right

1.0

anchor_bottom

1.0

grow_horizontal

2

grow_vertical

2

script

MenuScenePath

Table 2. $Background properties
Name Value

layout_mode

1

anchors_preset

15

anchor_right

1.0

anchor_bottom

1.0

grow_horizontal

2

grow_vertical

2

color

Color(0.186624, 0.185867, 0.286366, 1)

Table 3. $Author properties
Name Value

unique_name_in_owner

true

visible

false

modulate

Color(1, 1, 1, 0)

layout_mode

1

anchors_preset

15

anchor_right

1.0

anchor_bottom

1.0

grow_horizontal

2

grow_vertical

2

Table 4. $Author/Container properties
Name Value

layout_mode

1

anchors_preset

8

anchor_left

0.5

anchor_top

0.5

anchor_right

0.5

anchor_bottom

0.5

offset_left

-267.0

offset_top

-215.5

offset_right

267.0

offset_bottom

215.5

grow_horizontal

2

grow_vertical

2

Table 5. $Author/Container/NameContainer properties
Name Value

layout_mode

2

theme_override_constants/margin_bottom

80

Table 6. $Author/Container/NameContainer/Name properties
Name Value

layout_mode

2

theme_override_fonts/font

res://assets/fonts/Brownhill-Script/Brownhill Script.ttf

theme_override_font_sizes/font_size

250

text

tkmfujise

horizontal_alignment

1

Table 7. $Author/Container/Presents properties
Name Value

layout_mode

2

theme_override_colors/font_color

Color(1, 1, 1, 0.196078)

theme_override_font_sizes/font_size

70

text

presents

horizontal_alignment

1

Table 8. $Title properties
Name Value

unique_name_in_owner

true

layout_mode

1

anchors_preset

15

anchor_right

1.0

anchor_bottom

1.0

grow_horizontal

2

grow_vertical

2

Table 9. $Title/TitleContainer properties
Name Value

layout_mode

1

anchors_preset

15

anchor_right

1.0

anchor_bottom

1.0

grow_horizontal

2

grow_vertical

2

Table 10. $Title/TitleContainer/TitleLogo properties
Name Value

position

Vector2(950, 522)

texture

res://assets/images/beginning/Title.svg

Table 11. $Title/ButtonContainer properties
Name Value

layout_mode

1

anchors_preset

3

anchor_left

1.0

anchor_top

1.0

anchor_right

1.0

anchor_bottom

1.0

offset_left

-100.0

offset_top

-100.0

grow_horizontal

0

grow_vertical

0

theme_override_constants/margin_right

100

theme_override_constants/margin_bottom

100

Table 12. $Title/ButtonContainer/JoyAButton properties
Name Value

texture

Joy A button
Figure 1. res://assets/images/ui/Joy_A_button.svg
Table 13. $SubViewportContainer properties
Name Value

layout_mode

1

anchors_preset

15

anchor_right

1.0

anchor_bottom

1.0

grow_horizontal

2

grow_vertical

2

Table 14. $SubViewportContainer/SubViewport properties
Name Value

transparent_bg

true

handle_input_locally

false

size

Vector2i(1920, 1080)

render_target_update_mode

4

Table 15. $Blinder properties
Name Value

layout_mode

1

anchors_preset

15

anchor_right

1.0

anchor_bottom

1.0

grow_horizontal

2

grow_vertical

2

color

Color(0, 0, 0, 0)

Table 16. $AnimationPlayer properties
Name Value

unique_name_in_owner

true

libraries

{ &"": SubResource("AnimationLibrary_5ydpp") }

autoplay

opening

Table 17. $AnimationTree properties
Name Value

unique_name_in_owner

true

root_node

NodePath("%AnimationTree/..")

tree_root

SubResource("AnimationNodeStateMachine_f1cge")

anim_player

NodePath("../AnimationPlayer")

screen.gd

extends Control

@export_file("*.tscn") var MenuScenePath : String
var current_animation : StringName


func _ready() -> void:
	SceneHelper.preload_scene(MenuScenePath)


func _input(_event: InputEvent) -> void:
	if Input.is_action_just_pressed("ui_accept"):
		match current_animation:
			'show_title': transit('hide_title')
			'hide_title': pass
			_: 		      transit('show_title')


func transit(animation: String):
	%AnimationTree.get('parameters/playback').start(animation)


func _on_animation_tree_animation_started(anim_name: StringName) -> void:
	current_animation = anim_name


func _on_animation_tree_animation_finished(anim_name: StringName) -> void:
	if anim_name == 'hide_title':
		SceneHelper.transit(self, MenuScenePath)