Updates the garden edit tool and the gardens layout.

This commit is contained in:
Dylan Sarrazyn
2024-10-29 13:27:39 +01:00
parent 748963a385
commit 61c7d5e0a6
6 changed files with 141 additions and 120 deletions
+2 -2
View File
@@ -53,12 +53,12 @@ func set_garden_layout(p_garden_layout: GardenLayout) -> void:
set_lesson_buttons(garden_layout.lesson_buttons)
func set_flowers(p_flowers: Array[GardenLayout.Flower]) -> void:
func set_flowers(p_flowers: Array[GardenLayout.Flower], default_size: FlowerSizes = FlowerSizes.NotStarted) -> void:
flowers = p_flowers
flowers_sizes = []
for _i in range(flowers.size()):
flowers_sizes.append(FlowerSizes.NotStarted)
flowers_sizes.append(default_size)
update_flowers()
+82 -82
View File
@@ -8,37 +8,37 @@ script = ExtResource("1_gyv0f")
color = 0
flowers_export = Array[Dictionary]([{
"color": 0,
"position": Vector2i(1576, 1020),
"position": Vector2i(1648, 1216),
"type": 4
}, {
"color": 0,
"position": Vector2i(660, 1364),
"position": Vector2i(760, 1276),
"type": 0
}, {
"color": 0,
"position": Vector2i(380, 452),
"position": Vector2i(352, 516),
"type": 3
}, {
"color": 0,
"position": Vector2i(1248, 408),
"position": Vector2i(1308, 748),
"type": 1
}, {
"color": 0,
"position": Vector2i(1760, 344),
"position": Vector2i(1936, 604),
"type": 2
}])
lesson_buttons_export = Array[Dictionary]([{
"path_out_position": Vector2i(87, -281),
"position": Vector2i(44, 864)
"position": Vector2i(138, 796)
}, {
"path_out_position": Vector2i(399, 447),
"position": Vector2i(641, 309)
"position": Vector2i(682, 240)
}, {
"path_out_position": Vector2i(551, 227),
"position": Vector2i(1105, 1121)
"position": Vector2i(1090, 1132)
}, {
"path_out_position": Vector2i(813, -897),
"position": Vector2i(1885, 977)
"position": Vector2i(1854, 772)
}])
is_first_or_last = 1
@@ -47,31 +47,31 @@ script = ExtResource("1_gyv0f")
color = 1
flowers_export = Array[Dictionary]([{
"color": 1,
"position": Vector2i(1444, 184),
"position": Vector2i(1516, 568),
"type": 0
}, {
"color": 1,
"position": Vector2i(1264, 812),
"position": Vector2i(1172, 1048),
"type": 1
}, {
"color": 1,
"position": Vector2i(1564, 1484),
"position": Vector2i(1576, 1564),
"type": 2
}, {
"color": 1,
"position": Vector2i(140, 1164),
"position": Vector2i(648, 1592),
"type": 3
}, {
"color": 1,
"position": Vector2i(392, 628),
"position": Vector2i(452, 616),
"type": 4
}])
lesson_buttons_export = Array[Dictionary]([{
"path_out_position": Vector2i(379, 379),
"position": Vector2i(675, 177)
"position": Vector2i(624, 232)
}, {
"path_out_position": Vector2i(548, 220),
"position": Vector2i(359, 749)
"position": Vector2i(196, 796)
}, {
"path_out_position": Vector2i(371, 55),
"position": Vector2i(1019, 1237)
@@ -86,23 +86,23 @@ script = ExtResource("1_gyv0f")
color = 2
flowers_export = Array[Dictionary]([{
"color": 13,
"position": Vector2i(492, 344),
"position": Vector2i(596, 496),
"type": 0
}, {
"color": 13,
"position": Vector2i(1588, 152),
"position": Vector2i(1356, 512),
"type": 1
}, {
"color": 13,
"position": Vector2i(1925, 584),
"position": Vector2i(1916, 764),
"type": 2
}, {
"color": 13,
"position": Vector2i(632, 976),
"position": Vector2i(584, 1408),
"type": 4
}, {
"color": 13,
"position": Vector2i(1342, 1072),
"position": Vector2i(1464, 1628),
"type": 3
}])
lesson_buttons_export = Array[Dictionary]([{
@@ -125,11 +125,11 @@ script = ExtResource("1_gyv0f")
color = 3
flowers_export = Array[Dictionary]([{
"color": 3,
"position": Vector2i(380, 912),
"position": Vector2i(456, 988),
"type": 0
}, {
"color": 3,
"position": Vector2i(1116, 352),
"position": Vector2i(1152, 820),
"type": 1
}, {
"color": 3,
@@ -137,7 +137,7 @@ flowers_export = Array[Dictionary]([{
"type": 2
}, {
"color": 3,
"position": Vector2i(1456, 1024),
"position": Vector2i(1744, 1260),
"type": 3
}, {
"color": 3,
@@ -164,15 +164,15 @@ script = ExtResource("1_gyv0f")
color = 4
flowers_export = Array[Dictionary]([{
"color": 8,
"position": Vector2i(308, 1328),
"position": Vector2i(368, 1484),
"type": 0
}, {
"color": 8,
"position": Vector2i(1416, 388),
"position": Vector2i(1684, 868),
"type": 1
}, {
"color": 8,
"position": Vector2i(1656, 1288),
"position": Vector2i(1516, 1500),
"type": 2
}, {
"color": 8,
@@ -180,7 +180,7 @@ flowers_export = Array[Dictionary]([{
"type": 3
}, {
"color": 8,
"position": Vector2i(368, 320),
"position": Vector2i(420, 604),
"type": 4
}])
lesson_buttons_export = Array[Dictionary]([{
@@ -203,23 +203,23 @@ script = ExtResource("1_gyv0f")
color = 5
flowers_export = Array[Dictionary]([{
"color": 5,
"position": Vector2i(440, 172),
"position": Vector2i(1604, 544),
"type": 0
}, {
"color": 5,
"position": Vector2i(1080, 868),
"position": Vector2i(1020, 992),
"type": 1
}, {
"color": 5,
"position": Vector2i(1612, 1540),
"position": Vector2i(1900, 1360),
"type": 2
}, {
"color": 5,
"position": Vector2i(1452, 168),
"position": Vector2i(644, 472),
"type": 3
}, {
"color": 5,
"position": Vector2i(1012, 1352),
"position": Vector2i(1228, 1528),
"type": 4
}])
lesson_buttons_export = Array[Dictionary]([{
@@ -242,23 +242,23 @@ script = ExtResource("1_gyv0f")
color = 6
flowers_export = Array[Dictionary]([{
"color": 6,
"position": Vector2i(1500, 1500),
"position": Vector2i(1552, 1656),
"type": 0
}, {
"color": 6,
"position": Vector2i(284, 304),
"position": Vector2i(308, 608),
"type": 1
}, {
"color": 6,
"position": Vector2i(1288, 116),
"position": Vector2i(1152, 556),
"type": 2
}, {
"color": 6,
"position": Vector2i(1792, 324),
"position": Vector2i(1820, 508),
"type": 3
}, {
"color": 6,
"position": Vector2i(440, 972),
"position": Vector2i(520, 1164),
"type": 4
}])
lesson_buttons_export = Array[Dictionary]([{
@@ -281,23 +281,23 @@ script = ExtResource("1_gyv0f")
color = 7
flowers_export = Array[Dictionary]([{
"color": 1,
"position": Vector2i(1868, 288),
"position": Vector2i(1900, 612),
"type": 0
}, {
"color": 1,
"position": Vector2i(390, 476),
"position": Vector2i(412, 796),
"type": 1
}, {
"color": 1,
"position": Vector2i(380, 892),
"position": Vector2i(780, 1204),
"type": 2
}, {
"color": 1,
"position": Vector2i(1092, 480),
"position": Vector2i(1212, 792),
"type": 3
}, {
"color": 1,
"position": Vector2i(1320, 1008),
"position": Vector2i(1424, 1232),
"type": 4
}])
lesson_buttons_export = Array[Dictionary]([{
@@ -320,23 +320,23 @@ script = ExtResource("1_gyv0f")
color = 8
flowers_export = Array[Dictionary]([{
"color": 14,
"position": Vector2i(932, 1168),
"position": Vector2i(880, 1332),
"type": 0
}, {
"color": 14,
"position": Vector2i(331, 164),
"position": Vector2i(268, 472),
"type": 1
}, {
"color": 14,
"position": Vector2i(563, 700),
"position": Vector2i(488, 956),
"type": 2
}, {
"color": 14,
"position": Vector2i(1572, 192),
"position": Vector2i(1604, 484),
"type": 3
}, {
"color": 14,
"position": Vector2i(879, 328),
"position": Vector2i(1004, 564),
"type": 4
}])
lesson_buttons_export = Array[Dictionary]([{
@@ -359,11 +359,11 @@ script = ExtResource("1_gyv0f")
color = 9
flowers_export = Array[Dictionary]([{
"color": 9,
"position": Vector2i(704, 252),
"position": Vector2i(804, 616),
"type": 0
}, {
"color": 9,
"position": Vector2i(1684, 1364),
"position": Vector2i(1356, 1224),
"type": 1
}, {
"color": 9,
@@ -371,11 +371,11 @@ flowers_export = Array[Dictionary]([{
"type": 2
}, {
"color": 9,
"position": Vector2i(1361, 968),
"position": Vector2i(1916, 1528),
"type": 3
}, {
"color": 9,
"position": Vector2i(1840, 848),
"position": Vector2i(1816, 996),
"type": 4
}])
lesson_buttons_export = Array[Dictionary]([{
@@ -398,7 +398,7 @@ script = ExtResource("1_gyv0f")
color = 10
flowers_export = Array[Dictionary]([{
"color": 10,
"position": Vector2i(1160, 968),
"position": Vector2i(1352, 884),
"type": 0
}, {
"color": 10,
@@ -406,15 +406,15 @@ flowers_export = Array[Dictionary]([{
"type": 1
}, {
"color": 10,
"position": Vector2i(888, 1508),
"position": Vector2i(1012, 1604),
"type": 2
}, {
"color": 10,
"position": Vector2i(574, 8),
"position": Vector2i(2012, 1408),
"type": 3
}, {
"color": 10,
"position": Vector2i(187, 440),
"position": Vector2i(308, 636),
"type": 4
}])
lesson_buttons_export = Array[Dictionary]([{
@@ -437,23 +437,23 @@ script = ExtResource("1_gyv0f")
color = 11
flowers_export = Array[Dictionary]([{
"color": 18,
"position": Vector2i(912, 276),
"position": Vector2i(916, 752),
"type": 0
}, {
"color": 18,
"position": Vector2i(1132, 1428),
"position": Vector2i(1228, 1452),
"type": 1
}, {
"color": 18,
"position": Vector2i(1523, 848),
"position": Vector2i(1452, 864),
"type": 2
}, {
"color": 18,
"position": Vector2i(1928, 536),
"position": Vector2i(1992, 972),
"type": 3
}, {
"color": 18,
"position": Vector2i(136, 1496),
"position": Vector2i(316, 1560),
"type": 4
}])
lesson_buttons_export = Array[Dictionary]([{
@@ -476,23 +476,23 @@ script = ExtResource("1_gyv0f")
color = 12
flowers_export = Array[Dictionary]([{
"color": 12,
"position": Vector2i(944, 80),
"position": Vector2i(1972, 660),
"type": 0
}, {
"color": 12,
"position": Vector2i(1444, 1088),
"position": Vector2i(1436, 1196),
"type": 1
}, {
"color": 12,
"position": Vector2i(2004, 500),
"position": Vector2i(1020, 428),
"type": 2
}, {
"color": 12,
"position": Vector2i(672, 1168),
"position": Vector2i(756, 1408),
"type": 3
}, {
"color": 12,
"position": Vector2i(272, 836),
"position": Vector2i(376, 1044),
"type": 4
}])
lesson_buttons_export = Array[Dictionary]([{
@@ -515,23 +515,23 @@ script = ExtResource("1_gyv0f")
color = 13
flowers_export = Array[Dictionary]([{
"color": 2,
"position": Vector2i(868, 564),
"position": Vector2i(1028, 1124),
"type": 0
}, {
"color": 2,
"position": Vector2i(664, 1200),
"position": Vector2i(636, 1232),
"type": 1
}, {
"color": 2,
"position": Vector2i(1728, 972),
"position": Vector2i(2016, 1216),
"type": 2
}, {
"color": 2,
"position": Vector2i(1456, 508),
"position": Vector2i(1552, 480),
"type": 3
}, {
"color": 2,
"position": Vector2i(1316, 1372),
"position": Vector2i(1508, 1420),
"type": 4
}])
lesson_buttons_export = Array[Dictionary]([{
@@ -554,23 +554,23 @@ script = ExtResource("1_gyv0f")
color = 14
flowers_export = Array[Dictionary]([{
"color": 5,
"position": Vector2i(1176, 416),
"position": Vector2i(364, 696),
"type": 0
}, {
"color": 5,
"position": Vector2i(256, 508),
"position": Vector2i(1296, 660),
"type": 1
}, {
"color": 5,
"position": Vector2i(1420, 1496),
"position": Vector2i(1332, 1552),
"type": 2
}, {
"color": 5,
"position": Vector2i(2007, 688),
"position": Vector2i(1952, 824),
"type": 3
}, {
"color": 5,
"position": Vector2i(747, 1012),
"position": Vector2i(808, 1260),
"type": 4
}])
lesson_buttons_export = Array[Dictionary]([{
@@ -584,7 +584,7 @@ lesson_buttons_export = Array[Dictionary]([{
"position": Vector2i(166, 817)
}, {
"path_out_position": Vector2i(2608, -837),
"position": Vector2i(412, 1449)
"position": Vector2i(558, 1324)
}])
is_first_or_last = 1
@@ -593,23 +593,23 @@ script = ExtResource("1_gyv0f")
color = 15
flowers_export = Array[Dictionary]([{
"color": 17,
"position": Vector2i(1048, 1260),
"position": Vector2i(372, 672),
"type": 0
}, {
"color": 17,
"position": Vector2i(192, 132),
"position": Vector2i(836, 1232),
"type": 1
}, {
"color": 17,
"position": Vector2i(2064, 1088),
"position": Vector2i(1928, 1380),
"type": 2
}, {
"color": 17,
"position": Vector2i(972, 140),
"position": Vector2i(1064, 492),
"type": 3
}, {
"color": 17,
"position": Vector2i(1200, 432),
"position": Vector2i(1588, 552),
"type": 4
}])
lesson_buttons_export = Array[Dictionary]([{