Also added LinkButtons to the remaining web examples.

This commit is contained in:
Relintai 2023-12-24 20:53:17 +01:00
parent 1c3c8919b2
commit 48a313f79d
3 changed files with 60 additions and 0 deletions

View File

@ -72,3 +72,23 @@ logged_out_redirect_url = "/user/login"
[node name="HTTPSessionManagerDB" type="HTTPSessionManagerDB" parent="WebServerSimple"] [node name="HTTPSessionManagerDB" type="HTTPSessionManagerDB" parent="WebServerSimple"]
script = ExtResource( 3 ) script = ExtResource( 3 )
[node name="PanelContainer" type="PanelContainer" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
[node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer"]
margin_left = 7.0
margin_top = 7.0
margin_right = 1017.0
margin_bottom = 593.0
alignment = 1
[node name="LinkButton" type="LinkButton" parent="PanelContainer/VBoxContainer"]
margin_left = 391.0
margin_top = 286.0
margin_right = 619.0
margin_bottom = 300.0
size_flags_horizontal = 4
text = "Click to open http://127.0.0.1:8080/"
uri = "http://127.0.0.1:8080/"

View File

@ -75,4 +75,24 @@ script = ExtResource( 7 )
[node name="HTTPSessionManagerDB" type="HTTPSessionManagerDB" parent="WebServerSimple"] [node name="HTTPSessionManagerDB" type="HTTPSessionManagerDB" parent="WebServerSimple"]
script = ExtResource( 3 ) script = ExtResource( 3 )
[node name="PanelContainer" type="PanelContainer" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
[node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer"]
margin_left = 7.0
margin_top = 7.0
margin_right = 1017.0
margin_bottom = 593.0
alignment = 1
[node name="LinkButton" type="LinkButton" parent="PanelContainer/VBoxContainer"]
margin_left = 391.0
margin_top = 286.0
margin_right = 619.0
margin_bottom = 300.0
size_flags_horizontal = 4
text = "Click to open http://127.0.0.1:8080/"
uri = "http://127.0.0.1:8080/"
[connection signal="user_registered" from="WebServerSimple/WebRoot/UserWebPage/Register" to="WebServerSimple/WebRoot/UserWebPage/Register" method="_on_Register_user_registered"] [connection signal="user_registered" from="WebServerSimple/WebRoot/UserWebPage/Register" to="WebServerSimple/WebRoot/UserWebPage/Register" method="_on_Register_user_registered"]

View File

@ -97,3 +97,23 @@ logged_out_render_type = 1
logged_out_redirect_url = "/user/login" logged_out_redirect_url = "/user/login"
[node name="HTTPSessionManager" type="HTTPSessionManager" parent="WebServerSimple"] [node name="HTTPSessionManager" type="HTTPSessionManager" parent="WebServerSimple"]
[node name="PanelContainer" type="PanelContainer" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
[node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer"]
margin_left = 7.0
margin_top = 7.0
margin_right = 1017.0
margin_bottom = 593.0
alignment = 1
[node name="LinkButton" type="LinkButton" parent="PanelContainer/VBoxContainer"]
margin_left = 391.0
margin_top = 286.0
margin_right = 619.0
margin_bottom = 300.0
size_flags_horizontal = 4
text = "Click to open http://127.0.0.1:8080/"
uri = "http://127.0.0.1:8080/"