Debian Codegraph @

godot/addons/gut/UserFileViewer.tscn

raw
1 [gd_scene load_steps=2 format=2]
2
3 [ext_resource path="res://addons/gut/UserFileViewer.gd" type="Script" id=1]
4
5 [node name="UserFileViewer" type="WindowDialog"]
6 margin_top = 20.0
7 margin_right = 800.0
8 margin_bottom = 450.0
9 rect_min_size = Vector2( 800, 180 )
10 popup_exclusive = true
11 window_title = "View File"
12 resizable = true
13 script = ExtResource( 1 )
14 __meta__ = {
15 "_edit_use_anchors_": false
16 }
17
18 [node name="FileDialog" type="FileDialog" parent="."]
19 margin_right = 416.0
20 margin_bottom = 184.0
21 rect_min_size = Vector2( 400, 140 )
22 rect_scale = Vector2( 2, 2 )
23 popup_exclusive = true
24 window_title = "Open a File"
25 resizable = true
26 mode = 0
27 access = 1
28 show_hidden_files = true
29 current_dir = "user://"
30 current_path = "user://"
31 __meta__ = {
32 "_edit_use_anchors_": false
33 }
34
35 [node name="TextDisplay" type="ColorRect" parent="."]
36 anchor_right = 1.0
37 anchor_bottom = 1.0
38 margin_left = 8.0
39 margin_right = -10.0
40 margin_bottom = -65.0
41 color = Color( 0.2, 0.188235, 0.188235, 1 )
42 __meta__ = {
43 "_edit_use_anchors_": false
44 }
45
46 [node name="RichTextLabel" type="RichTextLabel" parent="TextDisplay"]
47 anchor_right = 1.0
48 anchor_bottom = 1.0
49 focus_mode = 2
50 text = "In publishing and graphic design, Lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document or a typeface without relying on meaningful content. Lorem ipsum may be used before final copy is available, but it may also be used to temporarily replace copy in a process called greeking, which allows designers to consider form without the meaning of the text influencing the design.
51
52 Lorem ipsum is typically a corrupted version of De finibus bonorum et malorum, a first-century BCE text by the Roman statesman and philosopher Cicero, with words altered, added, and removed to make it nonsensical, improper Latin.
53
54 Versions of the Lorem ipsum text have been used in typesetting at least since the 1960s, when it was popularized by advertisements for Letraset transfer sheets. Lorem ipsum was introduced to the digital world in the mid-1980s when Aldus employed it in graphic and word-processing templates for its desktop publishing program PageMaker. Other popular word processors including Pages and Microsoft Word have since adopted Lorem ipsum as well."
55 selection_enabled = true
56 __meta__ = {
57 "_edit_use_anchors_": false
58 }
59
60 [node name="OpenFile" type="Button" parent="."]
61 anchor_left = 1.0
62 anchor_top = 1.0
63 anchor_right = 1.0
64 anchor_bottom = 1.0
65 margin_left = -158.0
66 margin_top = -50.0
67 margin_right = -84.0
68 margin_bottom = -30.0
69 rect_scale = Vector2( 2, 2 )
70 text = "Open File"
71
72 [node name="Home" type="Button" parent="."]
73 anchor_left = 1.0
74 anchor_top = 1.0
75 anchor_right = 1.0
76 anchor_bottom = 1.0
77 margin_left = -478.0
78 margin_top = -50.0
79 margin_right = -404.0
80 margin_bottom = -30.0
81 rect_scale = Vector2( 2, 2 )
82 text = "Home"
83 __meta__ = {
84 "_edit_use_anchors_": false
85 }
86
87 [node name="Copy" type="Button" parent="."]
88 anchor_top = 1.0
89 anchor_bottom = 1.0
90 margin_left = 160.0
91 margin_top = -50.0
92 margin_right = 234.0
93 margin_bottom = -30.0
94 rect_scale = Vector2( 2, 2 )
95 text = "Copy"
96 __meta__ = {
97 "_edit_use_anchors_": false
98 }
99
100 [node name="End" type="Button" parent="."]
101 anchor_left = 1.0
102 anchor_top = 1.0
103 anchor_right = 1.0
104 anchor_bottom = 1.0
105 margin_left = -318.0
106 margin_top = -50.0
107 margin_right = -244.0
108 margin_bottom = -30.0
109 rect_scale = Vector2( 2, 2 )
110 text = "End"
111
112 [node name="Close" type="Button" parent="."]
113 anchor_top = 1.0
114 anchor_bottom = 1.0
115 margin_left = 10.0
116 margin_top = -50.0
117 margin_right = 80.0
118 margin_bottom = -30.0
119 rect_scale = Vector2( 2, 2 )
120 text = "Close"
121 [connection signal="file_selected" from="FileDialog" to="." method="_on_FileDialog_file_selected"]
122 [connection signal="popup_hide" from="FileDialog" to="." method="_on_FileDialog_popup_hide"]
123 [connection signal="pressed" from="OpenFile" to="." method="_on_OpenFile_pressed"]
124 [connection signal="pressed" from="Home" to="." method="_on_Home_pressed"]
125 [connection signal="pressed" from="Copy" to="." method="_on_Copy_pressed"]
126 [connection signal="pressed" from="End" to="." method="_on_End_pressed"]
127 [connection signal="pressed" from="Close" to="." method="_on_Close_pressed"]