Setup basic GUI and scanner selection
This commit was merged in pull request #4.
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://d3hul8b7hlmj7"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/map.gd" id="1_3np0o"]
|
||||
[ext_resource type="PackedScene" uid="uid://6ferubyu2uy1" path="res://scenes/Scanners.tscn" id="1_6mlj0"]
|
||||
|
||||
[node name="Map" type="Node2D"]
|
||||
script = ExtResource("1_3np0o")
|
||||
|
||||
[node name="Scanners" parent="." instance=ExtResource("1_6mlj0")]
|
||||
29
objects/gui/Scanner_modes.tscn
Normal file
29
objects/gui/Scanner_modes.tscn
Normal file
@@ -0,0 +1,29 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://0so4tpnkk8t2"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/gui/scanner_modes.gd" id="1_synac"]
|
||||
|
||||
[node name="ScannerModes" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 0
|
||||
script = ExtResource("1_synac")
|
||||
|
||||
[node name="Scanner Select" type="OptionButton" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 5
|
||||
anchor_left = 0.5
|
||||
anchor_right = 0.5
|
||||
offset_left = -60.5
|
||||
offset_right = 60.5
|
||||
offset_bottom = 40.0
|
||||
grow_horizontal = 2
|
||||
selected = 0
|
||||
item_count = 3
|
||||
popup/item_0/text = "No Scanner"
|
||||
popup/item_1/text = "Water"
|
||||
popup/item_1/id = 1
|
||||
popup/item_2/text = "Fertility"
|
||||
popup/item_2/id = 2
|
||||
|
||||
[connection signal="item_selected" from="Scanner Select" to="." method="_on_scanner_select_item_selected"]
|
||||
69
objects/gui/Seed_card.tscn
Normal file
69
objects/gui/Seed_card.tscn
Normal file
@@ -0,0 +1,69 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://iaf4md4cbwqh"]
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_lissx"]
|
||||
offsets = PackedFloat32Array(1)
|
||||
colors = PackedColorArray(0.125911, 0.125911, 0.125911, 1)
|
||||
|
||||
[sub_resource type="GradientTexture1D" id="GradientTexture1D_aglhv"]
|
||||
gradient = SubResource("Gradient_lissx")
|
||||
|
||||
[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_kiud1"]
|
||||
|
||||
[node name="SeedCard" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
size_flags_horizontal = 8
|
||||
size_flags_vertical = 8
|
||||
|
||||
[node name="Card" type="PanelContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 3
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -100.0
|
||||
offset_top = -181.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="Card"]
|
||||
layout_mode = 2
|
||||
texture = SubResource("GradientTexture1D_aglhv")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="Card"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/margin_left = 10
|
||||
theme_override_constants/margin_top = 10
|
||||
theme_override_constants/margin_right = 10
|
||||
theme_override_constants/margin_bottom = 10
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="Card/MarginContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Nom" type="Label" parent="Card/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Chène"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="Image" type="TextureRect" parent="Card/MarginContainer/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(0, 80)
|
||||
layout_mode = 2
|
||||
texture = SubResource("NoiseTexture2D_kiud1")
|
||||
expand_mode = 3
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="Besoins" type="Label" parent="Card/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Besoins"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="Apports" type="Label" parent="Card/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Apports
|
||||
"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
72
objects/gui/Seed_queue.tscn
Normal file
72
objects/gui/Seed_queue.tscn
Normal file
@@ -0,0 +1,72 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://bm8nlb7kmaa6k"]
|
||||
|
||||
[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_reedq"]
|
||||
|
||||
[node name="SeedQueue" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 12
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
theme_override_constants/separation = 10
|
||||
|
||||
[node name="NextSeed" type="TextureRect" parent="HBoxContainer"]
|
||||
custom_minimum_size = Vector2(80, 80)
|
||||
layout_mode = 2
|
||||
texture = SubResource("NoiseTexture2D_reedq")
|
||||
expand_mode = 2
|
||||
|
||||
[node name="Queue" type="HBoxContainer" parent="HBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 10
|
||||
alignment = 2
|
||||
|
||||
[node name="Seed1" type="TextureRect" parent="HBoxContainer/Queue"]
|
||||
custom_minimum_size = Vector2(40, 40)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 8
|
||||
texture = SubResource("NoiseTexture2D_reedq")
|
||||
expand_mode = 2
|
||||
|
||||
[node name="Seed2" type="TextureRect" parent="HBoxContainer/Queue"]
|
||||
custom_minimum_size = Vector2(40, 40)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 8
|
||||
texture = SubResource("NoiseTexture2D_reedq")
|
||||
expand_mode = 2
|
||||
|
||||
[node name="Seed3" type="TextureRect" parent="HBoxContainer/Queue"]
|
||||
custom_minimum_size = Vector2(40, 40)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 8
|
||||
texture = SubResource("NoiseTexture2D_reedq")
|
||||
expand_mode = 2
|
||||
|
||||
[node name="Seed4" type="TextureRect" parent="HBoxContainer/Queue"]
|
||||
custom_minimum_size = Vector2(40, 40)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 8
|
||||
texture = SubResource("NoiseTexture2D_reedq")
|
||||
expand_mode = 2
|
||||
|
||||
[node name="Seed5" type="TextureRect" parent="HBoxContainer/Queue"]
|
||||
custom_minimum_size = Vector2(40, 40)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 8
|
||||
texture = SubResource("NoiseTexture2D_reedq")
|
||||
expand_mode = 2
|
||||
Reference in New Issue
Block a user