godot-xterm/addons/gut/UserFileViewer.tscn

129 lines
4 KiB
Text
Raw Normal View History

[gd_scene load_steps=2 format=2]
[ext_resource path="res://addons/gut/UserFileViewer.gd" type="Script" id=1]
2022-11-09 21:57:46 +01:00
[node name="UserFileViewer" type="Window"]
offset_top = 20.0
offset_right = 800.0
offset_bottom = 450.0
minimum_size = Vector2( 800, 180 )
exclusive = true
window_title = "View File"
resizable = true
script = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="FileDialog" type="FileDialog" parent="."]
2022-11-09 21:57:46 +01:00
offset_right = 416.0
offset_bottom = 184.0
minimum_size = Vector2( 400, 140 )
scale = Vector2( 2, 2 )
exclusive = true
window_title = "Open a File"
resizable = true
mode = 0
access = 1
show_hidden_files = true
current_dir = "user://"
current_path = "user://"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="TextDisplay" type="ColorRect" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
2022-11-09 21:57:46 +01:00
offset_left = 8.0
offset_right = -10.0
offset_bottom = -65.0
color = Color( 0.2, 0.188235, 0.188235, 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="RichTextLabel" type="RichTextLabel" parent="TextDisplay"]
anchor_right = 1.0
anchor_bottom = 1.0
focus_mode = 2
2022-11-09 21:57:46 +01:00
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 checked 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.
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.
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."
selection_enabled = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="OpenFile" type="Button" parent="."]
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
2022-11-09 21:57:46 +01:00
offset_left = -158.0
offset_top = -50.0
offset_right = -84.0
offset_bottom = -30.0
scale = Vector2( 2, 2 )
text = "Open File"
[node name="Home" type="Button" parent="."]
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
2022-11-09 21:57:46 +01:00
offset_left = -478.0
offset_top = -50.0
offset_right = -404.0
offset_bottom = -30.0
scale = Vector2( 2, 2 )
text = "Home"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Copy" type="Button" parent="."]
anchor_top = 1.0
anchor_bottom = 1.0
2022-11-09 21:57:46 +01:00
offset_left = 160.0
offset_top = -50.0
offset_right = 234.0
offset_bottom = -30.0
scale = Vector2( 2, 2 )
text = "Copy"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="End" type="Button" parent="."]
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
2022-11-09 21:57:46 +01:00
offset_left = -318.0
offset_top = -50.0
offset_right = -244.0
offset_bottom = -30.0
scale = Vector2( 2, 2 )
text = "End"
[node name="Close" type="Button" parent="."]
anchor_top = 1.0
anchor_bottom = 1.0
2022-11-09 21:57:46 +01:00
offset_left = 10.0
offset_top = -50.0
offset_right = 80.0
offset_bottom = -30.0
scale = Vector2( 2, 2 )
text = "Close"
[connection signal="file_selected" from="FileDialog" to="." method="_on_FileDialog_file_selected"]
[connection signal="popup_hide" from="FileDialog" to="." method="_on_FileDialog_popup_hide"]
[connection signal="pressed" from="OpenFile" to="." method="_on_OpenFile_pressed"]
[connection signal="pressed" from="Home" to="." method="_on_Home_pressed"]
[connection signal="pressed" from="Copy" to="." method="_on_Copy_pressed"]
[connection signal="pressed" from="End" to="." method="_on_End_pressed"]
[connection signal="pressed" from="Close" to="." method="_on_Close_pressed"]