diff --git a/Scenes/label_with_links.gd b/Scenes/label_with_links.gd new file mode 100644 index 0000000..e2487bd --- /dev/null +++ b/Scenes/label_with_links.gd @@ -0,0 +1,10 @@ +extends RichTextLabel + +func _ready() -> void: + meta_clicked.connect(_richtextlabel_on_meta_clicked) + +# This assumes RichTextLabel's `meta_clicked` signal was connected to +# the function below using the signal connection dialog. +func _richtextlabel_on_meta_clicked(meta): + # `meta` is of Variant type, so convert it to a String to avoid script errors at run-time. + OS.shell_open(str(meta)) diff --git a/Scenes/label_with_links.gd.uid b/Scenes/label_with_links.gd.uid new file mode 100644 index 0000000..7689a0c --- /dev/null +++ b/Scenes/label_with_links.gd.uid @@ -0,0 +1 @@ +uid://b2toipok6giai diff --git a/Scenes/main_menu.tscn b/Scenes/main_menu.tscn index 49c1385..49c9865 100644 --- a/Scenes/main_menu.tscn +++ b/Scenes/main_menu.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=18 format=3 uid="uid://bu5cwjawsnb1q"] +[gd_scene load_steps=19 format=3 uid="uid://bu5cwjawsnb1q"] [ext_resource type="Script" uid="uid://bomw4j2mmerry" path="res://Scripts/main_menu.gd" id="1_28flt"] [ext_resource type="Texture2D" uid="uid://dxdtqv4do4x31" path="res://Sprites/background.png" id="2_48xlc"] @@ -9,6 +9,7 @@ [ext_resource type="Texture2D" uid="uid://dr3y3mvyrecxn" path="res://Sprites/lemon.png" id="7_vr1f0"] [ext_resource type="Texture2D" uid="uid://csu4d06po6r6x" path="res://Sprites/apple.png" id="8_t1dhk"] [ext_resource type="Texture2D" uid="uid://ccqroki031ou" path="res://Sprites/watermelon.png" id="9_5egv6"] +[ext_resource type="Script" uid="uid://b2toipok6giai" path="res://Scenes/label_with_links.gd" id="10_16hvj"] [sub_resource type="LabelSettings" id="LabelSettings_ce3w2"] font_size = 160 @@ -84,6 +85,10 @@ visible = false layout_mode = 2 text = "Options" +[node name="Tools" type="Button" parent="Buttons"] +layout_mode = 2 +text = "Tools Used" + [node name="SourceCode" type="Button" parent="Buttons"] layout_mode = 2 text = "Source Code" @@ -283,8 +288,52 @@ grow_horizontal = 2 grow_vertical = 0 text = "OK" +[node name="ToolPanel" 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="ToolPanel"] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +bbcode_enabled = true +text = "Game Engine - [url=https://godotengine.org/]Godot[/url] + +Sprite Drawing - [url=https://krita.org/]Krita[/url] + +Digitial Audio Workstation (DAW) - [url=https://ardour.org/]Ardour[/url] + +DAW Plugins - ACE (Ardour internal), [url=http://calf-studio-gear.org/]Calf Plugins[/url], [url=https://github.com/DISTRHO/DISTRHO-Ports/tree/master/ports-juce6.0/vitalium]Vitalium[/url], [url=https://github.com/michaelwillis/dragonfly-reverb]Dragonfly Reverb[/url], [url=https://github.com/DISTRHO/DPF-Plugins]MaPitchshift[/url] and [url=https://lsp-plug.in/]LSP Plugins[/url] + +Font - [url=https://fonts.google.com/share?selection.family=Kings]Kings-Regular[/url]" +script = ExtResource("10_16hvj") + +[node name="Button" type="Button" parent="ToolPanel"] +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/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"] diff --git a/Scripts/main_menu.gd b/Scripts/main_menu.gd index 6011c8e..2ee47b8 100644 --- a/Scripts/main_menu.gd +++ b/Scripts/main_menu.gd @@ -4,6 +4,8 @@ var main_scene : PackedScene = preload("res://Scenes/main.tscn") @onready var help_panel : Panel = $HelpPanel +@onready +var tool_panel : Panel = $ToolPanel func _ready() -> void: if OS.has_feature("web"): @@ -22,5 +24,11 @@ func show_help() -> void: func hide_help() -> void: help_panel.visible = false +func show_tools() -> void: + tool_panel.visible = true + +func hide_tools() -> void: + tool_panel.visible = false + func show_source_code() -> void: OS.shell_open("https://git.techiedamien.xyz/TechieDamien/Ouroboros")