From 2bb64831f95351a4b0f2a2878cd8743eae4606e5 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sun, 24 Dec 2023 20:42:47 +0100 Subject: [PATCH] Added a LinkButton to the static pages demo. --- web/static_pages/Main.tscn | 42 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/web/static_pages/Main.tscn b/web/static_pages/Main.tscn index 121908e..a887b6b 100644 --- a/web/static_pages/Main.tscn +++ b/web/static_pages/Main.tscn @@ -40,8 +40,50 @@ __meta__ = { [node name="StaticWebPageFile" type="StaticWebPageFile" parent="WebServerSimple/WebRoot"] uri_segment = "test_md" +data = "

Header

+ +

Sub header

+ +

This is an md file!

+" file_path = "res://test.md" [node name="StaticWebPageFolderFiles" type="StaticWebPageFolderFiles" parent="WebServerSimple/WebRoot"] uri_segment = "md_files_folder" +data = "

Header 2

+ +

Sub header

+ +

This is md file 2

+

Header 1

+ +

Sub header

+ +

This is md file 1

+

Header 3

+ +

Sub header

+ +

This is md file 3

+" dir_path = "res://md_files/" + +[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/"