diff --git a/assets/GUI/themes/login_theme.theme b/assets/GUI/themes/login_theme.theme index b448525..b33eefc 100644 Binary files a/assets/GUI/themes/login_theme.theme and b/assets/GUI/themes/login_theme.theme differ diff --git a/gui_scene/GUI/login/license_menu.gd b/gui_scene/GUI/login/license_menu.gd index 407ded9..3509e45 100644 --- a/gui_scene/GUI/login/license_menu.gd +++ b/gui_scene/GUI/login/license_menu.gd @@ -5,3 +5,7 @@ signal return_button_pressed func _on_return_button_pressed(): emit_signal( "return_button_pressed" ) + + +func _on_license_url_link_pressed(): + OS.shell_open( "https://www.gnu.org/licenses/agpl-3.0.en.html" ) diff --git a/gui_scene/GUI/login/license_menu.tscn b/gui_scene/GUI/login/license_menu.tscn index 9b9d059..36894f0 100644 --- a/gui_scene/GUI/login/license_menu.tscn +++ b/gui_scene/GUI/login/license_menu.tscn @@ -10,26 +10,26 @@ [ext_resource path="res://assets/GUI/images/Login-Khanat-sound-button.png" type="Texture" id=8] [ext_resource path="res://assets/GUI/images/Login-Khanat-sound-muted-button.png" type="Texture" id=9] -[sub_resource type="CanvasItemMaterial" id=4] +[sub_resource type="CanvasItemMaterial" id=1] render_priority = 0 blend_mode = 0 light_mode = 0 -[sub_resource type="Gradient" id=5] +[sub_resource type="Gradient" id=2] offsets = PoolRealArray( 0, 1 ) colors = PoolColorArray( 1, 1, 1, 0.5, 0, 0, 0, 0.5 ) -[sub_resource type="GradientTexture" id=6] +[sub_resource type="GradientTexture" id=3] flags = 4 -gradient = SubResource( 5 ) +gradient = SubResource( 2 ) width = 2048 -[node name="register_menu" type="Control"] +[node name="register_menu" type="Control" index="0"] -material = SubResource( 4 ) +material = SubResource( 1 ) anchor_left = 0.0 anchor_top = 0.0 anchor_right = 1.0 @@ -81,7 +81,7 @@ mouse_filter = 1 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 1 -texture = SubResource( 6 ) +texture = SubResource( 3 ) expand = true stretch_mode = 7 _sections_unfolded = [ "Visibility" ] @@ -286,13 +286,70 @@ size_flags_horizontal = 1 size_flags_vertical = 1 alignment = 0 -[node name="scroll_container" type="ScrollContainer" parent="h_box_container/v_box_container/margin_container/v_box_container" index="0"] +[node name="h_box_container" type="HBoxContainer" parent="h_box_container/v_box_container/margin_container/v_box_container" index="0"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_right = 896.0 +margin_bottom = 17.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 1 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 1 +alignment = 0 + +[node name="label" type="Label" parent="h_box_container/v_box_container/margin_container/v_box_container/h_box_container" index="0"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_right = 46.0 +margin_bottom = 17.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 2 +mouse_default_cursor_shape = 0 +size_flags_horizontal = 1 +size_flags_vertical = 4 +text = "From: " +percent_visible = 1.0 +lines_skipped = 0 +max_lines_visible = -1 + +[node name="license_url_link" type="LinkButton" parent="h_box_container/v_box_container/margin_container/v_box_container/h_box_container" index="1"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_left = 50.0 +margin_right = 375.0 +margin_bottom = 17.0 +rect_pivot_offset = Vector2( 0, 0 ) +rect_clip_content = false +mouse_filter = 0 +mouse_default_cursor_shape = 2 +size_flags_horizontal = 1 +size_flags_vertical = 1 +toggle_mode = false +enabled_focus_mode = 0 +shortcut = null +group = null +text = "https://www.gnu.org/licenses/agpl-3.0.en.html" + +[node name="scroll_container" type="ScrollContainer" parent="h_box_container/v_box_container/margin_container/v_box_container" index="1"] + +anchor_left = 0.0 +anchor_top = 0.0 +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_top = 21.0 +margin_right = 896.0 margin_bottom = 362.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = true @@ -559,7 +616,7 @@ lines_skipped = 0 max_lines_visible = -1 _sections_unfolded = [ "Size Flags", "custom_colors" ] -[node name="return_button" type="Button" parent="h_box_container/v_box_container/margin_container/v_box_container" index="1"] +[node name="return_button" type="Button" parent="h_box_container/v_box_container/margin_container/v_box_container" index="2"] anchor_left = 0.0 anchor_top = 0.0 @@ -592,6 +649,8 @@ _sections_unfolded = [ "Size Flags" ] [connection signal="toggled" from="h_box_container/v_box_container/buttons_box/sound_button" to="." method="_on_sound_button_toggled"] +[connection signal="pressed" from="h_box_container/v_box_container/margin_container/v_box_container/h_box_container/license_url_link" to="." method="_on_license_url_link_pressed"] + [connection signal="pressed" from="h_box_container/v_box_container/margin_container/v_box_container/return_button" to="." method="_on_return_button_pressed"] diff --git a/login_scene/login_scene.tscn b/login_scene/login_scene.tscn index 8492212..5477df0 100644 --- a/login_scene/login_scene.tscn +++ b/login_scene/login_scene.tscn @@ -6,7 +6,7 @@ [ext_resource path="res://gui_scene/GUI/login/register_menu.tscn" type="PackedScene" id=4] [ext_resource path="res://gui_scene/GUI/login/license_menu.tscn" type="PackedScene" id=5] -[node name="login_scene" type="Node" index="0"] +[node name="login_scene" type="Node"] script = ExtResource( 1 )