Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: move github links to settings #159

Merged
merged 1 commit into from
Jul 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion godot/addons/rivet/ui/dock/dock.gd
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ func _get_screen_node(screen: Screen) -> Node:
func _open_url(url: String):
OS.shell_open(url)


func _on_gui_input(event: InputEvent):
if event is InputEventMouseButton and event.button_index == MOUSE_BUTTON_LEFT and event.pressed:
OS.shell_open("https://rivet.gg")
20 changes: 13 additions & 7 deletions godot/addons/rivet/ui/dock/dock.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -62,23 +62,24 @@ icon = ExtResource("4_f062m")
flat = true
icon_alignment = 1

[node name="BugLink" type="Button" parent="VBoxContainer/HBoxContainer2"]
[node name="DiscordLink" type="Button" parent="VBoxContainer/HBoxContainer2"]
layout_mode = 2
tooltip_text = "Report Bug & Feedback"
tooltip_text = "Discord"
mouse_default_cursor_shape = 2
icon = ExtResource("5_sixqr")
icon = ExtResource("6_tqi4d")
flat = true
icon_alignment = 1

[node name="DiscordLink" type="Button" parent="VBoxContainer/HBoxContainer2"]
[node name="BugLink" type="Button" parent="VBoxContainer/HBoxContainer2"]
layout_mode = 2
tooltip_text = "Discord"
tooltip_text = "Report Bug & Feedback"
mouse_default_cursor_shape = 2
icon = ExtResource("6_tqi4d")
icon = ExtResource("5_sixqr")
flat = true
icon_alignment = 1

[node name="GitHubLink" type="Button" parent="VBoxContainer/HBoxContainer2"]
visible = false
layout_mode = 2
tooltip_text = "Discord"
mouse_default_cursor_shape = 2
Expand All @@ -95,6 +96,7 @@ size_flags_vertical = 3

[node name="Login" parent="VBoxContainer/Control" instance=ExtResource("4_76k63")]
unique_name_in_owner = true
visible = false
layout_mode = 2
size_flags_vertical = 3

Expand All @@ -106,5 +108,9 @@ size_flags_vertical = 3

[node name="Main" parent="VBoxContainer/Control" instance=ExtResource("5_3rpdd")]
unique_name_in_owner = true
visible = false
layout_mode = 2

[connection signal="pressed" from="VBoxContainer/HBoxContainer2/DashboardLink" to="." method="_open_url" binds= ["https://hub.rivet.gg"]]
[connection signal="pressed" from="VBoxContainer/HBoxContainer2/DocsLink" to="." method="_open_url" binds= ["https://rivet.gg/docs"]]
[connection signal="pressed" from="VBoxContainer/HBoxContainer2/DiscordLink" to="." method="_open_url" binds= ["https://rivet.gg/discord"]]
[connection signal="pressed" from="VBoxContainer/HBoxContainer2/BugLink" to="." method="_open_url" binds= ["https://hub.rivet.gg/?modal=feedback&utm=godot"]]
19 changes: 9 additions & 10 deletions godot/addons/rivet/ui/dock/screens/main.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,17 @@
[ext_resource type="PackedScene" uid="uid://dxoly5h64g3ul" path="res://addons/rivet/ui/dock/tabs/settings_tab.tscn" id="5_xa4ex"]
[ext_resource type="Texture2D" uid="uid://d036tjn7gksmn" path="res://addons/rivet/images/font_awesome/gear.svg" id="6_0xrve"]

[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ngw8t"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_13csq"]
content_margin_left = 4.0
content_margin_top = 4.0
content_margin_right = 4.0
content_margin_bottom = 4.0
bg_color = Color(1, 0.365, 0.365, 1)
draw_center = false
border_width_left = 2
border_width_top = 2
border_width_right = 2
border_width_bottom = 2
corner_detail = 1
content_margin_bottom = 5.0
bg_color = Color(0.1, 0.1, 0.1, 0.6)
corner_radius_top_left = 3
corner_radius_top_right = 3
corner_radius_bottom_right = 3
corner_radius_bottom_left = 3
corner_detail = 5

[node name="Settings" type="VBoxContainer"]
offset_right = 428.0
Expand Down Expand Up @@ -83,7 +82,7 @@ flat = true
unique_name_in_owner = true
layout_mode = 2
size_flags_vertical = 3
theme_override_styles/panel = SubResource("StyleBoxFlat_ngw8t")
theme_override_styles/panel = SubResource("StyleBoxFlat_13csq")
tabs_visible = false

[node name="Setup" parent="TabContainer" instance=ExtResource("3_g3s5h")]
Expand Down
548 changes: 397 additions & 151 deletions godot/addons/rivet/ui/dock/tabs/deploy_tab.tscn

Large diffs are not rendered by default.

866 changes: 473 additions & 393 deletions godot/addons/rivet/ui/dock/tabs/dev_tab.tscn

Large diffs are not rendered by default.

845 changes: 433 additions & 412 deletions godot/addons/rivet/ui/dock/tabs/settings_tab.tscn

Large diffs are not rendered by default.

507 changes: 236 additions & 271 deletions godot/addons/rivet/ui/dock/tabs/setup_tab.tscn

Large diffs are not rendered by default.

503 changes: 424 additions & 79 deletions godot/addons/rivet/ui/elements/setup_step.tscn

Large diffs are not rendered by default.