ajout d'un lien vers la page de la license, qui ouvre le navigateur pour l'afficher hors godot.
This commit is contained in:
parent
f27e4775c4
commit
1333ac0d3b
4 changed files with 73 additions and 10 deletions
Binary file not shown.
|
@ -5,3 +5,7 @@ signal return_button_pressed
|
||||||
|
|
||||||
func _on_return_button_pressed():
|
func _on_return_button_pressed():
|
||||||
emit_signal( "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" )
|
||||||
|
|
|
@ -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-button.png" type="Texture" id=8]
|
||||||
[ext_resource path="res://assets/GUI/images/Login-Khanat-sound-muted-button.png" type="Texture" id=9]
|
[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
|
render_priority = 0
|
||||||
blend_mode = 0
|
blend_mode = 0
|
||||||
light_mode = 0
|
light_mode = 0
|
||||||
|
|
||||||
[sub_resource type="Gradient" id=5]
|
[sub_resource type="Gradient" id=2]
|
||||||
|
|
||||||
offsets = PoolRealArray( 0, 1 )
|
offsets = PoolRealArray( 0, 1 )
|
||||||
colors = PoolColorArray( 1, 1, 1, 0.5, 0, 0, 0, 0.5 )
|
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
|
flags = 4
|
||||||
gradient = SubResource( 5 )
|
gradient = SubResource( 2 )
|
||||||
width = 2048
|
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_left = 0.0
|
||||||
anchor_top = 0.0
|
anchor_top = 0.0
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
|
@ -81,7 +81,7 @@ mouse_filter = 1
|
||||||
mouse_default_cursor_shape = 0
|
mouse_default_cursor_shape = 0
|
||||||
size_flags_horizontal = 1
|
size_flags_horizontal = 1
|
||||||
size_flags_vertical = 1
|
size_flags_vertical = 1
|
||||||
texture = SubResource( 6 )
|
texture = SubResource( 3 )
|
||||||
expand = true
|
expand = true
|
||||||
stretch_mode = 7
|
stretch_mode = 7
|
||||||
_sections_unfolded = [ "Visibility" ]
|
_sections_unfolded = [ "Visibility" ]
|
||||||
|
@ -286,13 +286,70 @@ size_flags_horizontal = 1
|
||||||
size_flags_vertical = 1
|
size_flags_vertical = 1
|
||||||
alignment = 0
|
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_left = 0.0
|
||||||
anchor_top = 0.0
|
anchor_top = 0.0
|
||||||
anchor_right = 0.0
|
anchor_right = 0.0
|
||||||
anchor_bottom = 0.0
|
anchor_bottom = 0.0
|
||||||
margin_right = 896.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
|
margin_bottom = 362.0
|
||||||
rect_pivot_offset = Vector2( 0, 0 )
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
rect_clip_content = true
|
rect_clip_content = true
|
||||||
|
@ -559,7 +616,7 @@ lines_skipped = 0
|
||||||
max_lines_visible = -1
|
max_lines_visible = -1
|
||||||
_sections_unfolded = [ "Size Flags", "custom_colors" ]
|
_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_left = 0.0
|
||||||
anchor_top = 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="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"]
|
[connection signal="pressed" from="h_box_container/v_box_container/margin_container/v_box_container/return_button" to="." method="_on_return_button_pressed"]
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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/register_menu.tscn" type="PackedScene" id=4]
|
||||||
[ext_resource path="res://gui_scene/GUI/login/license_menu.tscn" type="PackedScene" id=5]
|
[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 )
|
script = ExtResource( 1 )
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue