Skip to content

Commit

Permalink
settings
Browse files Browse the repository at this point in the history
  • Loading branch information
dsrw committed Jun 14, 2024
1 parent d3cd59f commit 4c4b79e
Show file tree
Hide file tree
Showing 47 changed files with 2,621 additions and 1,098 deletions.
43 changes: 40 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,25 @@
{
"type": "lldb",
"request": "launch",
"name": "Client: Build and Debug",
"name": "Open bundle",
"program": "${workspaceFolder}/dist/Enu.app",
"env": {
"ENU_METRICS_PORT": "8001"
},
"args": [],
"cwd": "${workspaceFolder}/app",
"initCommands": [
"script import shutil;sys.path.append(os.path.join(shutil.which('nim'), '../../tools/debug'))",
"command script import nimlldb"
],
"presentation": {
"clear": true
}
},
{
"type": "lldb",
"request": "launch",
"name": "Client: Build & Debug",
"program": "${workspaceFolder}/vendor/godot/bin/godot.osx.opt.tools.arm64",
"env": {
"ENU_CONNECT_ADDRESS": "127.0.0.1",
Expand All @@ -30,7 +48,7 @@
{
"type": "lldb",
"request": "launch",
"name": "Host: Build and Debug",
"name": "Host: Build & Debug",
"program": "${workspaceFolder}/vendor/godot/bin/godot.osx.opt.tools.arm64",
"env": {
"ENU_LISTEN_ADDRESS": "0.0.0.0",
Expand Down Expand Up @@ -112,6 +130,25 @@
"clear": true // <-- this line
}
},
{
"type": "lldb",
"request": "launch",
"name": "Enu: Build & Debug",
"program": "${workspaceFolder}/vendor/godot/bin/godot.osx.opt.tools.arm64",
"windows": {
"program": "${workspaceFolder}/vendor/godot/bin/godot.windows.opt.tools.64"
},
"args": [],
"cwd": "${workspaceFolder}/app",
"preLaunchTask": "Build enu",
"initCommands": [
"script import shutil;sys.path.append(os.path.join(shutil.which('nim'), '../../tools/debug'))",
"command script import nimlldb"
],
"presentation": {
"clear": true // <-- this line
}
},
{
"type": "lldb",
"request": "launch",
Expand All @@ -129,7 +166,7 @@
"type": "lldb",
"request": "attach",
"name": "Attatch to Enu",
"program": "${workspaceFolder}/vendor/godot/bin/godot.osx.opt.tools.arm64",
"program": "${workspaceFolder}/dist/Enu.app",
"windows": {
"program": "${workspaceFolder}/vendor/godot/bin/godot.windows.opt.tools.64"
},
Expand Down
5 changes: 1 addition & 4 deletions app/components/ActionButton.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ margin_right = 596.0
margin_bottom = 20.0
rect_min_size = Vector2( 50, 50 )
focus_mode = 0
custom_constants/hseparation = 0
custom_styles/hover = SubResource( 1 )
custom_styles/pressed = SubResource( 2 )
custom_styles/focus = SubResource( 1 )
custom_styles/normal = SubResource( 1 )
custom_constants/hseparation = 0
toggle_mode = true
shortcut_in_tooltip = false
action_mode = 0
Expand All @@ -49,6 +49,3 @@ group = SubResource( 3 )
icon = ExtResource( 1 )
expand_icon = true
script = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}
21 changes: 21 additions & 0 deletions app/components/Console.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[gd_scene load_steps=3 format=2]

[ext_resource path="res://components/Console.gdns" type="Script" id=1]

[sub_resource type="StyleBoxFlat" id=7]
bg_color = Color( 0.0784314, 0.0117647, 0.113725, 1 )
border_width_top = 2
border_width_right = 2

[node name="Console" type="RichTextLabel"]
margin_right = 500.0
margin_bottom = 400.0
rect_min_size = Vector2( 500, 400 )
focus_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
custom_styles/normal = SubResource( 7 )
bbcode_enabled = true
scroll_following = true
selection_enabled = true
script = ExtResource( 1 )
30 changes: 30 additions & 0 deletions app/components/Editor.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[gd_scene load_steps=3 format=2]

[ext_resource path="res://components/TextEdit.gdns" type="Script" id=1]

[sub_resource type="StyleBoxFlat" id=5]
bg_color = Color( 0, 0, 0, 0.839216 )
border_width_right = 2
border_color = Color( 0.964706, 0.952941, 0.909804, 1 )

[node name="Editor" type="TextEdit"]
visible = false
margin_right = 961.0
margin_bottom = 1080.0
size_flags_vertical = 3
custom_colors/selection_color = Color( 0.207843, 0, 0.321569, 1 )
custom_colors/executing_line_color = Color( 0.0392157, 0, 0.168627, 1 )
custom_styles/read_only = SubResource( 5 )
custom_styles/focus = SubResource( 5 )
custom_styles/normal = SubResource( 5 )
custom_styles/completion = SubResource( 5 )
indent_using_spaces = true
always_draw_caret = true
indent_size = 2
syntax_highlighting = true
show_line_numbers = true
smooth_scrolling = true
wrap_enabled = true
caret_blink = true
caret_moving_by_right_click = false
script = ExtResource( 1 )
8 changes: 8 additions & 0 deletions app/components/Settings.gdns
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[gd_resource type="NativeScript" load_steps=2 format=2]

[ext_resource path="res://_dlls/nimlib.gdnlib" type="GDNativeLibrary" id=1]

[resource]
resource_name = "Settings"
class_name = "Settings"
library = ExtResource( 1 )
Loading

0 comments on commit 4c4b79e

Please sign in to comment.