Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
dsrw committed Apr 25, 2024
1 parent 24315df commit 1429a98
Show file tree
Hide file tree
Showing 36 changed files with 1,630 additions and 915 deletions.
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
}
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 )
277 changes: 277 additions & 0 deletions app/components/Settings.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,277 @@
[gd_scene load_steps=3 format=2]

[ext_resource path="res://themes/DarkTheme.tres" type="Theme" id=1]
[ext_resource path="res://components/Settings.gdns" type="Script" id=2]

[node name="Settings" type="PanelContainer"]
theme = ExtResource( 1 )
script = ExtResource( 2 )

[node name="MarginContainer" type="MarginContainer" parent="."]
margin_left = 20.0
margin_top = 20.0
margin_right = 1793.0
margin_bottom = 802.0
rect_clip_content = true
custom_constants/margin_right = 10
custom_constants/margin_top = 5

[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
margin_top = 5.0
margin_right = 1763.0
margin_bottom = 782.0
custom_constants/separation = 50

[node name="VFlowContainer" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
margin_right = 1763.0
margin_bottom = 76.0
size_flags_horizontal = 3
alignment = 2

[node name="Close" type="Button" parent="MarginContainer/VBoxContainer/VFlowContainer"]
margin_left = 1651.0
margin_right = 1763.0
margin_bottom = 76.0
theme_type_variation = "MonoButton"
text = " × "

[node name="GridContainer" type="GridContainer" parent="MarginContainer/VBoxContainer"]
margin_top = 126.0
margin_right = 1763.0
margin_bottom = 525.0
custom_constants/vseparation = 25
custom_constants/hseparation = 20
columns = 4

[node name="Label8" type="Label" parent="MarginContainer/VBoxContainer/GridContainer"]
margin_right = 372.0
margin_bottom = 80.0
text = "Player Color"

[node name="PlayerColor" type="OptionButton" parent="MarginContainer/VBoxContainer/GridContainer"]
margin_left = 392.0
margin_right = 843.0
margin_bottom = 80.0

[node name="Label4" type="Label" parent="MarginContainer/VBoxContainer/GridContainer"]
margin_left = 863.0
margin_right = 1292.0
margin_bottom = 80.0
text = " Environment"

[node name="Environments" type="OptionButton" parent="MarginContainer/VBoxContainer/GridContainer"]
margin_left = 1312.0
margin_right = 1763.0
margin_bottom = 80.0
size_flags_horizontal = 3

[node name="Label7" type="Label" parent="MarginContainer/VBoxContainer/GridContainer"]
margin_top = 106.0
margin_right = 372.0
margin_bottom = 186.0
text = " Level"

[node name="Level" type="OptionButton" parent="MarginContainer/VBoxContainer/GridContainer"]
margin_left = 392.0
margin_top = 105.0
margin_right = 843.0
margin_bottom = 187.0

[node name="Label3" type="Label" parent="MarginContainer/VBoxContainer/GridContainer"]
margin_left = 863.0
margin_top = 106.0
margin_right = 1292.0
margin_bottom = 186.0
text = "Megapixels"

[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/VBoxContainer/GridContainer"]
margin_left = 1312.0
margin_top = 105.0
margin_right = 1763.0
margin_bottom = 187.0
custom_constants/separation = 20

[node name="Megapixels" type="LineEdit" parent="MarginContainer/VBoxContainer/GridContainer/HBoxContainer"]
margin_right = 187.0
margin_bottom = 82.0
size_flags_horizontal = 3
context_menu_enabled = false

[node name="MegapixelsUp" type="Button" parent="MarginContainer/VBoxContainer/GridContainer/HBoxContainer"]
margin_left = 207.0
margin_right = 319.0
margin_bottom = 82.0
focus_mode = 0
theme_type_variation = "MonoButton"
text = " ↑ "

[node name="MegapixelsDown" type="Button" parent="MarginContainer/VBoxContainer/GridContainer/HBoxContainer"]
margin_left = 339.0
margin_right = 451.0
margin_bottom = 82.0
focus_mode = 0
theme_type_variation = "MonoButton"
text = " ↓ "

[node name="Label9" type="Label" parent="MarginContainer/VBoxContainer/GridContainer"]
margin_top = 213.0
margin_right = 372.0
margin_bottom = 293.0
text = " Font Size"

[node name="HBoxContainer3" type="HBoxContainer" parent="MarginContainer/VBoxContainer/GridContainer"]
margin_left = 392.0
margin_top = 212.0
margin_right = 843.0
margin_bottom = 294.0
custom_constants/separation = 20

[node name="FontSize" type="LineEdit" parent="MarginContainer/VBoxContainer/GridContainer/HBoxContainer3"]
margin_right = 187.0
margin_bottom = 82.0
size_flags_horizontal = 3
context_menu_enabled = false

[node name="FontSizeUp" type="Button" parent="MarginContainer/VBoxContainer/GridContainer/HBoxContainer3"]
margin_left = 207.0
margin_right = 319.0
margin_bottom = 82.0
focus_mode = 0
theme_type_variation = "MonoButton"
text = " ↑ "

[node name="FontSizeDown" type="Button" parent="MarginContainer/VBoxContainer/GridContainer/HBoxContainer3"]
margin_left = 339.0
margin_right = 451.0
margin_bottom = 82.0
focus_mode = 0
theme_type_variation = "MonoButton"
text = " ↓ "

[node name="Label2" type="Label" parent="MarginContainer/VBoxContainer/GridContainer"]
margin_left = 863.0
margin_top = 213.0
margin_right = 1292.0
margin_bottom = 293.0
text = "Toolbar Size"

[node name="HBoxContainer2" type="HBoxContainer" parent="MarginContainer/VBoxContainer/GridContainer"]
margin_left = 1312.0
margin_top = 212.0
margin_right = 1763.0
margin_bottom = 294.0
custom_constants/separation = 20

[node name="ToolbarSize" type="LineEdit" parent="MarginContainer/VBoxContainer/GridContainer/HBoxContainer2"]
margin_right = 187.0
margin_bottom = 82.0
size_flags_horizontal = 3
context_menu_enabled = false

[node name="ToolbarSizeUp" type="Button" parent="MarginContainer/VBoxContainer/GridContainer/HBoxContainer2"]
margin_left = 207.0
margin_right = 319.0
margin_bottom = 82.0
focus_mode = 0
theme_type_variation = "MonoButton"
text = " ↑ "

[node name="ToolbarSizeDown" type="Button" parent="MarginContainer/VBoxContainer/GridContainer/HBoxContainer2"]
margin_left = 339.0
margin_right = 451.0
margin_bottom = 82.0
focus_mode = 0
theme_type_variation = "MonoButton"
text = " ↓ "

[node name="Label5" type="Label" parent="MarginContainer/VBoxContainer/GridContainer"]
margin_top = 319.0
margin_right = 372.0
margin_bottom = 399.0
text = "Full Screen"

[node name="FullScreen" type="Button" parent="MarginContainer/VBoxContainer/GridContainer"]
margin_left = 392.0
margin_top = 319.0
margin_right = 504.0
margin_bottom = 399.0
focus_mode = 0
size_flags_horizontal = 0
theme_type_variation = "MonoButton"
text = " ✓ "

[node name="Label6" type="Label" parent="MarginContainer/VBoxContainer/GridContainer"]
margin_left = 863.0
margin_top = 319.0
margin_right = 1292.0
margin_bottom = 399.0
text = " Run Server"

[node name="RunServer" type="Button" parent="MarginContainer/VBoxContainer/GridContainer"]
margin_left = 1312.0
margin_top = 319.0
margin_right = 1424.0
margin_bottom = 399.0
focus_mode = 0
size_flags_horizontal = 0
theme_type_variation = "MonoButton"
text = " ✓ "

[node name="ConfirmationDialog" type="ConfirmationDialog" parent="MarginContainer/VBoxContainer/GridContainer"]
margin_right = 561.0
margin_bottom = 180.0
rect_min_size = Vector2( 400, 140 )

[node name="RemoteContainer" type="MarginContainer" parent="MarginContainer/VBoxContainer"]
margin_top = 575.0
margin_right = 1763.0
margin_bottom = 777.0
rect_clip_content = true
custom_constants/margin_bottom = 20

[node name="VBoxContainer2" type="VBoxContainer" parent="MarginContainer/VBoxContainer/RemoteContainer"]
margin_right = 1763.0
margin_bottom = 182.0
custom_constants/separation = 20

[node name="Label11" type="Label" parent="MarginContainer/VBoxContainer/RemoteContainer/VBoxContainer2"]
margin_right = 1763.0
margin_bottom = 80.0
text = "Remote Server Address"
align = 1

[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/VBoxContainer/RemoteContainer/VBoxContainer2"]
margin_top = 100.0
margin_right = 1763.0
margin_bottom = 182.0
size_flags_horizontal = 3
custom_constants/separation = 20

[node name="VSeparator" type="VSeparator" parent="MarginContainer/VBoxContainer/RemoteContainer/VBoxContainer2/HBoxContainer"]
margin_right = 283.0
margin_bottom = 82.0
size_flags_horizontal = 3
size_flags_stretch_ratio = 0.5

[node name="ServerAddress" type="LineEdit" parent="MarginContainer/VBoxContainer/RemoteContainer/VBoxContainer2/HBoxContainer"]
margin_left = 303.0
margin_right = 871.0
margin_bottom = 82.0
size_flags_horizontal = 3
text = "asdfasdf"
context_menu_enabled = false

[node name="Connect" type="Button" parent="MarginContainer/VBoxContainer/RemoteContainer/VBoxContainer2/HBoxContainer"]
margin_left = 891.0
margin_right = 1459.0
margin_bottom = 82.0
focus_mode = 0
size_flags_horizontal = 3
text = " Connect "

[node name="VSeparator2" type="VSeparator" parent="MarginContainer/VBoxContainer/RemoteContainer/VBoxContainer2/HBoxContainer"]
margin_left = 1479.0
margin_right = 1763.0
margin_bottom = 82.0
size_flags_horizontal = 3
size_flags_stretch_ratio = 0.5
Loading

0 comments on commit 1429a98

Please sign in to comment.