Adds credits
							parent
							
								
									000f72256d
								
							
						
					
					
						commit
						8695929012
					
				| 
						 | 
				
			
			@ -85,6 +85,10 @@ visible = false
 | 
			
		|||
layout_mode = 2
 | 
			
		||||
text = "Options"
 | 
			
		||||
 | 
			
		||||
[node name="Credits" type="Button" parent="Buttons"]
 | 
			
		||||
layout_mode = 2
 | 
			
		||||
text = "Credits"
 | 
			
		||||
 | 
			
		||||
[node name="Tools" type="Button" parent="Buttons"]
 | 
			
		||||
layout_mode = 2
 | 
			
		||||
text = "Tools Used"
 | 
			
		||||
| 
						 | 
				
			
			@ -330,10 +334,58 @@ grow_horizontal = 2
 | 
			
		|||
grow_vertical = 0
 | 
			
		||||
text = "OK"
 | 
			
		||||
 | 
			
		||||
[node name="CreditsPanel" type="Panel" parent="."]
 | 
			
		||||
visible = false
 | 
			
		||||
layout_mode = 1
 | 
			
		||||
anchors_preset = -1
 | 
			
		||||
anchor_left = 0.2
 | 
			
		||||
anchor_top = 0.375
 | 
			
		||||
anchor_right = 0.8
 | 
			
		||||
anchor_bottom = 0.9
 | 
			
		||||
grow_horizontal = 2
 | 
			
		||||
grow_vertical = 2
 | 
			
		||||
theme_override_styles/panel = SubResource("StyleBoxFlat_trj04")
 | 
			
		||||
 | 
			
		||||
[node name="Label" type="RichTextLabel" parent="CreditsPanel"]
 | 
			
		||||
layout_mode = 1
 | 
			
		||||
anchors_preset = 15
 | 
			
		||||
anchor_right = 1.0
 | 
			
		||||
anchor_bottom = 1.0
 | 
			
		||||
grow_horizontal = 2
 | 
			
		||||
grow_vertical = 2
 | 
			
		||||
bbcode_enabled = true
 | 
			
		||||
text = "Design and Development
 | 
			
		||||
TechieDamien
 | 
			
		||||
 | 
			
		||||
QA Testing
 | 
			
		||||
InfoDuck
 | 
			
		||||
 | 
			
		||||
Identifying and Solving that one bug
 | 
			
		||||
Jade
 | 
			
		||||
 | 
			
		||||
Moral Support
 | 
			
		||||
My Parents"
 | 
			
		||||
scroll_active = false
 | 
			
		||||
horizontal_alignment = 1
 | 
			
		||||
script = ExtResource("10_16hvj")
 | 
			
		||||
 | 
			
		||||
[node name="Button" type="Button" parent="CreditsPanel"]
 | 
			
		||||
layout_mode = 1
 | 
			
		||||
anchors_preset = -1
 | 
			
		||||
anchor_top = 1.0
 | 
			
		||||
anchor_right = 1.0
 | 
			
		||||
anchor_bottom = 1.0
 | 
			
		||||
offset_bottom = 27.0
 | 
			
		||||
grow_horizontal = 2
 | 
			
		||||
grow_vertical = 0
 | 
			
		||||
text = "OK"
 | 
			
		||||
 | 
			
		||||
[connection signal="pressed" from="Buttons/Start" to="." method="start_game"]
 | 
			
		||||
[connection signal="pressed" from="Buttons/Help" to="." method="show_help"]
 | 
			
		||||
[connection signal="pressed" from="Buttons/Credits" to="." method="show_credits"]
 | 
			
		||||
[connection signal="pressed" from="Buttons/Tools" to="." method="show_tools"]
 | 
			
		||||
[connection signal="pressed" from="Buttons/SourceCode" to="." method="show_source_code"]
 | 
			
		||||
[connection signal="pressed" from="Buttons/Quit" to="." method="quit"]
 | 
			
		||||
[connection signal="pressed" from="HelpPanel/Button" to="." method="hide_help"]
 | 
			
		||||
[connection signal="pressed" from="ToolPanel/Button" to="." method="hide_tools"]
 | 
			
		||||
[connection signal="pressed" from="CreditsPanel/Button" to="." method="hide_credits"]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -6,6 +6,8 @@ var main_scene : PackedScene = preload("res://Scenes/main.tscn")
 | 
			
		|||
var help_panel : Panel = $HelpPanel
 | 
			
		||||
@onready
 | 
			
		||||
var tool_panel : Panel = $ToolPanel
 | 
			
		||||
@onready
 | 
			
		||||
var credits_panel : Panel = $CreditsPanel
 | 
			
		||||
 | 
			
		||||
func _ready() -> void:
 | 
			
		||||
	if OS.has_feature("web"):
 | 
			
		||||
| 
						 | 
				
			
			@ -30,5 +32,11 @@ func show_tools() -> void:
 | 
			
		|||
func hide_tools() -> void:
 | 
			
		||||
	tool_panel.visible = false
 | 
			
		||||
 | 
			
		||||
func show_credits() -> void:
 | 
			
		||||
	credits_panel.visible = true
 | 
			
		||||
 | 
			
		||||
func hide_credits() -> void:
 | 
			
		||||
	credits_panel.visible = false
 | 
			
		||||
 | 
			
		||||
func show_source_code() -> void:
 | 
			
		||||
	OS.shell_open("https://git.techiedamien.xyz/TechieDamien/Ouroboros")
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -70,6 +70,7 @@ up={
 | 
			
		|||
 | 
			
		||||
[rendering]
 | 
			
		||||
 | 
			
		||||
textures/canvas_textures/default_texture_filter=3
 | 
			
		||||
renderer/rendering_method="gl_compatibility"
 | 
			
		||||
renderer/rendering_method.mobile="gl_compatibility"
 | 
			
		||||
2d/snap/snap_2d_transforms_to_pixel=true
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue