summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gut_editor_shortcuts.cfg17
-rw-r--r--Assets/Styles/GUIBoxFocus.tres (renamed from Assets/Styles/GuiBoxHover.tres)0
-rw-r--r--Assets/Styles/GUIBoxHover.tres12
-rw-r--r--Assets/Themes/Texty.tres45
-rw-r--r--Scenes/InputContainer.tscn24
-rw-r--r--Scenes/OutputContainer.tscn19
-rw-r--r--Scenes/OutputRow.tscn10
-rw-r--r--Scripts/Command.cs7
-rw-r--r--Scripts/CommandParser.cs14
-rw-r--r--project.godot6
10 files changed, 115 insertions, 39 deletions
diff --git a/.gut_editor_shortcuts.cfg b/.gut_editor_shortcuts.cfg
new file mode 100644
index 0000000..5dfdf79
--- /dev/null
+++ b/.gut_editor_shortcuts.cfg
@@ -0,0 +1,17 @@
+[main]
+
+run_all=Object(ShortCut,"resource_local_to_scene":false,"resource_name":"","shortcut":Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":0,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
+,"script":null)
+
+run_current_script=Object(ShortCut,"resource_local_to_scene":false,"resource_name":"","shortcut":Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":0,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
+,"script":null)
+
+run_current_inner=Object(ShortCut,"resource_local_to_scene":false,"resource_name":"","shortcut":Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":0,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
+,"script":null)
+
+run_current_test=Object(ShortCut,"resource_local_to_scene":false,"resource_name":"","shortcut":Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":0,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
+,"script":null)
+
+panel_button=Object(ShortCut,"resource_local_to_scene":false,"resource_name":"","shortcut":Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":0,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
+,"script":null)
+
diff --git a/Assets/Styles/GuiBoxHover.tres b/Assets/Styles/GUIBoxFocus.tres
index 4681f62..4681f62 100644
--- a/Assets/Styles/GuiBoxHover.tres
+++ b/Assets/Styles/GUIBoxFocus.tres
diff --git a/Assets/Styles/GUIBoxHover.tres b/Assets/Styles/GUIBoxHover.tres
new file mode 100644
index 0000000..4681f62
--- /dev/null
+++ b/Assets/Styles/GUIBoxHover.tres
@@ -0,0 +1,12 @@
+[gd_resource type="StyleBoxFlat" format=2]
+
+[resource]
+content_margin_left = 8.0
+content_margin_right = 8.0
+content_margin_top = 8.0
+content_margin_bottom = 8.0
+bg_color = Color( 0, 0, 0, 0.627451 )
+corner_radius_top_left = 8
+corner_radius_top_right = 8
+corner_radius_bottom_right = 8
+corner_radius_bottom_left = 8
diff --git a/Assets/Themes/Texty.tres b/Assets/Themes/Texty.tres
new file mode 100644
index 0000000..1f7d00c
--- /dev/null
+++ b/Assets/Themes/Texty.tres
@@ -0,0 +1,45 @@
+[gd_resource type="Theme" load_steps=7 format=2]
+
+[ext_resource path="res://Assets/Styles/GUIBoxDisabled.tres" type="StyleBox" id=1]
+[ext_resource path="res://Assets/Styles/GUIBoxFocus.tres" type="StyleBox" id=2]
+[ext_resource path="res://Assets/Styles/GuiBoxPressed.tres" type="StyleBox" id=3]
+[ext_resource path="res://Assets/Styles/GUIBoxHover.tres" type="StyleBox" id=4]
+[ext_resource path="res://Assets/Styles/GUIBox.tres" type="StyleBox" id=5]
+
+[sub_resource type="StyleBoxFlat" id=1]
+content_margin_left = 8.0
+content_margin_right = 8.0
+content_margin_top = 8.0
+content_margin_bottom = 8.0
+bg_color = Color( 0, 0, 0, 0.627451 )
+corner_radius_top_left = 8
+corner_radius_top_right = 8
+corner_radius_bottom_right = 8
+corner_radius_bottom_left = 8
+
+[resource]
+Button/colors/font_color = Color( 0.839216, 0.0117647, 0.439216, 1 )
+Button/colors/font_color_disabled = Color( 0.580392, 0.580392, 0.580392, 1 )
+Button/colors/font_color_focus = Color( 0.839216, 0.0117647, 0.439216, 1 )
+Button/colors/font_color_hover = Color( 0.929412, 0.0117647, 0.490196, 1 )
+Button/colors/font_color_pressed = Color( 0.929412, 0.0117647, 0.490196, 1 )
+Button/styles/disabled = ExtResource( 1 )
+Button/styles/focus = ExtResource( 2 )
+Button/styles/hover = SubResource( 1 )
+Button/styles/normal = ExtResource( 5 )
+Button/styles/pressed = ExtResource( 3 )
+Label/colors/font_color = Color( 0.839216, 0.00784314, 0.439216, 1 )
+LineEdit/colors/font_color = Color( 0.839216, 0.00784314, 0.439216, 1 )
+LineEdit/colors/font_color_uneditable = Color( 0.580392, 0.580392, 0.580392, 1 )
+LineEdit/styles/focus = ExtResource( 2 )
+LineEdit/styles/normal = ExtResource( 5 )
+LineEdit/styles/read_only = ExtResource( 1 )
+PanelContainer/styles/panel = ExtResource( 5 )
+ProgressBar/colors/font_color = Color( 0.839216, 0.0117647, 0.439216, 1 )
+ProgressBar/styles/bg = ExtResource( 5 )
+ProgressBar/styles/fg = ExtResource( 4 )
+TextEdit/colors/font_color = Color( 0.839216, 0.00784314, 0.439216, 1 )
+TextEdit/colors/font_color_readonly = Color( 0.580392, 0.580392, 0.580392, 1 )
+TextEdit/colors/font_color_selected = Color( 0, 0, 0, 1 )
+TextEdit/styles/focus = ExtResource( 2 )
+TextEdit/styles/normal = ExtResource( 5 )
diff --git a/Scenes/InputContainer.tscn b/Scenes/InputContainer.tscn
index bd63da5..364d800 100644
--- a/Scenes/InputContainer.tscn
+++ b/Scenes/InputContainer.tscn
@@ -1,13 +1,6 @@
-[gd_scene load_steps=10 format=2]
+[gd_scene load_steps=4 format=2]
-[ext_resource path="res://Assets/Styles/GuiBoxHover.tres" type="StyleBox" id=1]
-[ext_resource path="res://Assets/Fonts/VT323Font24.tres" type="DynamicFont" id=2]
-[ext_resource path="res://Assets/Styles/GUIBox.tres" type="StyleBox" id=3]
-[ext_resource path="res://Assets/Styles/GuiBoxPressed.tres" type="StyleBox" id=4]
[ext_resource path="res://Scripts/InputContainer.cs" type="Script" id=5]
-[ext_resource path="res://Assets/Styles/GUIBoxDisabled.tres" type="StyleBox" id=6]
-
-[sub_resource type="StyleBoxEmpty" id=2]
[sub_resource type="InputEventAction" id=3]
action = "ui_accept"
@@ -27,10 +20,6 @@ __meta__ = {
margin_right = 940.0
margin_bottom = 41.0
size_flags_horizontal = 3
-custom_colors/font_color = Color( 0.839216, 0.00784314, 0.439216, 1 )
-custom_fonts/font = ExtResource( 2 )
-custom_styles/focus = SubResource( 2 )
-custom_styles/normal = ExtResource( 3 )
context_menu_enabled = false
clear_button_enabled = true
placeholder_text = "Enter a command"
@@ -40,17 +29,6 @@ caret_blink = true
margin_left = 948.0
margin_right = 1024.0
margin_bottom = 41.0
-custom_colors/font_color_disabled = Color( 0.580392, 0.580392, 0.580392, 1 )
-custom_colors/font_color_focus = Color( 0.839216, 0.00784314, 0.439216, 1 )
-custom_colors/font_color = Color( 0.839216, 0.00784314, 0.439216, 1 )
-custom_colors/font_color_hover = Color( 0.929412, 0.00784314, 0.486275, 1 )
-custom_colors/font_color_pressed = Color( 0.929412, 0.00784314, 0.486275, 1 )
-custom_fonts/font = ExtResource( 2 )
-custom_styles/hover = ExtResource( 1 )
-custom_styles/pressed = ExtResource( 4 )
-custom_styles/focus = ExtResource( 3 )
-custom_styles/disabled = ExtResource( 6 )
-custom_styles/normal = ExtResource( 3 )
shortcut = SubResource( 4 )
text = "Submit"
diff --git a/Scenes/OutputContainer.tscn b/Scenes/OutputContainer.tscn
index c058837..bc196b9 100644
--- a/Scenes/OutputContainer.tscn
+++ b/Scenes/OutputContainer.tscn
@@ -1,6 +1,5 @@
-[gd_scene load_steps=3 format=2]
+[gd_scene load_steps=2 format=2]
-[ext_resource path="res://Assets/Styles/GUIBox.tres" type="StyleBox" id=2]
[ext_resource path="res://Scripts/OutputContainer.cs" type="Script" id=3]
[node name="OutputContainer" type="PanelContainer"]
@@ -8,19 +7,21 @@ anchor_right = 1.0
anchor_bottom = 1.0
size_flags_horizontal = 3
size_flags_vertical = 3
-custom_styles/panel = ExtResource( 2 )
script = ExtResource( 3 )
+__meta__ = {
+"_edit_group_": true
+}
[node name="ScrollContainer" type="ScrollContainer" parent="."]
-margin_left = 8.0
-margin_top = 8.0
-margin_right = 1016.0
-margin_bottom = 592.0
+margin_left = 7.0
+margin_top = 7.0
+margin_right = 1017.0
+margin_bottom = 593.0
follow_focus = true
scroll_horizontal_enabled = false
[node name="OutputRows" type="VBoxContainer" parent="ScrollContainer"]
-margin_right = 1008.0
-margin_bottom = 584.0
+margin_right = 1010.0
+margin_bottom = 586.0
size_flags_horizontal = 3
size_flags_vertical = 3
diff --git a/Scenes/OutputRow.tscn b/Scenes/OutputRow.tscn
index 9259e77..a9b0343 100644
--- a/Scenes/OutputRow.tscn
+++ b/Scenes/OutputRow.tscn
@@ -1,9 +1,8 @@
-[gd_scene load_steps=3 format=2]
+[gd_scene load_steps=2 format=2]
-[ext_resource path="res://Assets/Fonts/VT323Font24.tres" type="DynamicFont" id=1]
[ext_resource path="res://Scripts/OutputRow.cs" type="Script" id=2]
-[node name="OutputRow" type="VBoxContainer"]
+[node name="OutputRow" type="VBoxContainer" groups=["output_rows"]]
margin_right = 992.0
margin_bottom = 32.0
size_flags_horizontal = 3
@@ -16,17 +15,14 @@ __meta__ = {
margin_right = 992.0
margin_bottom = 25.0
size_flags_horizontal = 3
-custom_colors/font_color = Color( 0.839216, 0.00784314, 0.439216, 1 )
-custom_fonts/font = ExtResource( 1 )
text = "This is where the input goes"
autowrap = true
-[node name="Output" type="Label" parent="." groups=["output_rows"]]
+[node name="Output" type="Label" parent="."]
margin_top = 29.0
margin_right = 992.0
margin_bottom = 54.0
size_flags_horizontal = 3
custom_colors/font_color = Color( 0, 0.333333, 1, 1 )
-custom_fonts/font = ExtResource( 1 )
text = "This is where the output goes"
autowrap = true
diff --git a/Scripts/Command.cs b/Scripts/Command.cs
new file mode 100644
index 0000000..4a7ce58
--- /dev/null
+++ b/Scripts/Command.cs
@@ -0,0 +1,7 @@
+namespace Texty.Scripts
+{
+ public class Command
+ {
+
+ }
+} \ No newline at end of file
diff --git a/Scripts/CommandParser.cs b/Scripts/CommandParser.cs
new file mode 100644
index 0000000..1394a5e
--- /dev/null
+++ b/Scripts/CommandParser.cs
@@ -0,0 +1,14 @@
+using Godot;
+
+namespace Texty.Scripts
+{
+ public class CommandParser : Node
+ {
+
+ public override void _Ready()
+ {
+ }
+
+ }
+}
+
diff --git a/project.godot b/project.godot
index 5ee4903..789ed61 100644
--- a/project.godot
+++ b/project.godot
@@ -50,6 +50,12 @@ script_templates_search_path="res://ScriptTemplates"
enabled=PoolStringArray( "res://addons/gut/plugin.cfg" )
+[gui]
+
+theme/use_hidpi=true
+theme/custom="res://Assets/Themes/Texty.tres"
+theme/custom_font="res://Assets/Fonts/VT323Font24.tres"
+
[physics]
common/enable_pause_aware_picking=true