From 48a313f79d1e342f5530730828bc04942abad4f5 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sun, 24 Dec 2023 20:53:17 +0100 Subject: [PATCH] Also added LinkButtons to the remaining web examples. --- web/users_sqlite/Main.tscn | 20 ++++++++++++++++++++ web/users_sqlite_bootstrap/Main.tscn | 20 ++++++++++++++++++++ web/users_static/Main.tscn | 20 ++++++++++++++++++++ 3 files changed, 60 insertions(+) diff --git a/web/users_sqlite/Main.tscn b/web/users_sqlite/Main.tscn index 5fdfd76..7ccce45 100644 --- a/web/users_sqlite/Main.tscn +++ b/web/users_sqlite/Main.tscn @@ -72,3 +72,23 @@ logged_out_redirect_url = "/user/login" [node name="HTTPSessionManagerDB" type="HTTPSessionManagerDB" parent="WebServerSimple"] 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/" diff --git a/web/users_sqlite_bootstrap/Main.tscn b/web/users_sqlite_bootstrap/Main.tscn index 8af31f2..1f1790f 100644 --- a/web/users_sqlite_bootstrap/Main.tscn +++ b/web/users_sqlite_bootstrap/Main.tscn @@ -75,4 +75,24 @@ script = ExtResource( 7 ) [node name="HTTPSessionManagerDB" type="HTTPSessionManagerDB" parent="WebServerSimple"] 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"] diff --git a/web/users_static/Main.tscn b/web/users_static/Main.tscn index e4802b2..7c5c79e 100644 --- a/web/users_static/Main.tscn +++ b/web/users_static/Main.tscn @@ -97,3 +97,23 @@ logged_out_render_type = 1 logged_out_redirect_url = "/user/login" [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/"