Adds link to source code
							parent
							
								
									90bce4a792
								
							
						
					
					
						commit
						18f9ae0d77
					
				| 
						 | 
				
			
			@ -81,6 +81,10 @@ visible = false
 | 
			
		|||
layout_mode = 2
 | 
			
		||||
text = "Options"
 | 
			
		||||
 | 
			
		||||
[node name="SourceCode" type="Button" parent="Buttons"]
 | 
			
		||||
layout_mode = 2
 | 
			
		||||
text = "Source Code"
 | 
			
		||||
 | 
			
		||||
[node name="Quit" type="Button" parent="Buttons"]
 | 
			
		||||
layout_mode = 2
 | 
			
		||||
text = "Quit"
 | 
			
		||||
| 
						 | 
				
			
			@ -277,5 +281,6 @@ 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/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"]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -8,6 +8,7 @@ var help_panel : Panel = $HelpPanel
 | 
			
		|||
func _ready() -> void:
 | 
			
		||||
	if OS.has_feature("web"):
 | 
			
		||||
		$Buttons/Quit.visible = false
 | 
			
		||||
		$Buttons/SourceCode.text = "Source Code (Opens in another tab)"
 | 
			
		||||
 | 
			
		||||
func start_game() -> void:
 | 
			
		||||
	get_tree().change_scene_to_packed(main_scene)
 | 
			
		||||
| 
						 | 
				
			
			@ -20,3 +21,6 @@ func show_help() -> void:
 | 
			
		|||
 | 
			
		||||
func hide_help() -> void:
 | 
			
		||||
	help_panel.visible = false
 | 
			
		||||
 | 
			
		||||
func show_source_code() -> void:
 | 
			
		||||
	OS.shell_open("https://git.techiedamien.xyz/TechieDamien/Ouroboros")
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue