diff --git a/godot/astream/road_lines.json b/godot/astream/road_lines.json index 5faa99f..3151943 100644 --- a/godot/astream/road_lines.json +++ b/godot/astream/road_lines.json @@ -993,42 +993,6 @@ "lanes": -1, "pattern": 1, "buildings": [ - { - "building_key": "", - "line_offset": 0, - "normal_offset": 0, - "y_rotation": 0 - }, - { - "building_key": "", - "line_offset": 0, - "normal_offset": 0, - "y_rotation": 0 - }, - { - "building_key": "", - "line_offset": 0, - "normal_offset": 0, - "y_rotation": 0 - }, - { - "building_key": "Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 192.51, 0.0385437, -75 )", - "line_offset": 17.490011, - "normal_offset": -0, - "y_rotation": 0 - }, - { - "building_key": "Transform( 1, 0, 9.53674e-07, 0, 1, 0, -9.53674e-07, 0, 1, 147.621, 0.0346222, -75 )", - "line_offset": 62.379005, - "normal_offset": -0, - "y_rotation": 0.000001 - }, - { - "building_key": "Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 112.609, 0.0179977, -75 )", - "line_offset": 97.391006, - "normal_offset": -0, - "y_rotation": 0 - } ] }, "buildings9_buildings": { @@ -1046,46 +1010,53 @@ "pattern": 1, "buildings": [ { - "building_key": "Transform( 0.252425, 0, 0.967616, 0, 1, 0, -0.967616, 0, 0.252425, 325.572, 0.0140915, -373.025 )", - "line_offset": 17.543036, - "normal_offset": -0, - "y_rotation": 1.315611 - }, - { - "building_key": "Transform( 0.252425, 0, 0.967616, 0, 1, 0, -0.967616, 0, 0.252425, 314.233, 0.0113754, -329.558 )", - "line_offset": 62.464645, - "normal_offset": -0, - "y_rotation": 1.315611 - }, - { - "building_key": "Transform( 0.252422, 0, 0.967617, 0, 1, 0, -0.967617, 0, 0.252422, 305.37, 0.0140915, -295.584 )", - "line_offset": 97.575691, - "normal_offset": -0, - "y_rotation": 1.315614 - }, - { - "building_key": "Transform( -0.826927, 0, -0.56231, 0, 1, 0, 0.56231, 0, -0.826927, 386.071, 0.0181885, -285.928 )", - "line_offset": 208.283112, + "building_key": "", + "line_offset": 0, "normal_offset": 0, - "y_rotation": -2.544416 + "y_rotation": 0, + "y_offset": 0 }, { - "building_key": "Transform( -0.826926, 0, -0.562311, 0, 1, 0, 0.562311, 0, -0.826926, 414.911, 0.0102997, -305.54 )", - "line_offset": 243.159698, + "building_key": "", + "line_offset": 0, "normal_offset": 0, - "y_rotation": -2.544415 + "y_rotation": 0, + "y_offset": 0 }, { - "building_key": "Transform( -0.826925, 0, -0.562312, 0, 1, 0, 0.562312, 0, -0.826925, 456, -0.00187683, -333.48 )", - "line_offset": 292.848206, + "building_key": "", + "line_offset": 0, "normal_offset": 0, - "y_rotation": -2.544414 + "y_rotation": 0, + "y_offset": 0 }, { - "building_key": "Transform( -1, 0, 0, 0, 1, 0, 0, 0, -1, 512.826, -0.00187683, -360 )", - "line_offset": 357.836792, + "building_key": "", + "line_offset": 0, "normal_offset": 0, - "y_rotation": 3.141593 + "y_rotation": 0, + "y_offset": 0 + }, + { + "building_key": "", + "line_offset": 0, + "normal_offset": 0, + "y_rotation": 0, + "y_offset": 0 + }, + { + "building_key": "", + "line_offset": 0, + "normal_offset": 0, + "y_rotation": 0, + "y_offset": 0 + }, + { + "building_key": "", + "line_offset": 0, + "normal_offset": 0, + "y_rotation": 0, + "y_offset": 0 } ] }, @@ -1117,130 +1088,151 @@ "pattern": 2, "buildings": [ { - "building_key": "Transform( -0.999911, 0, 0.0133308, 0, 1, 0, -0.0133308, 0, -0.999911, -132.505, 3.8147e-05, -279.767 )", - "line_offset": 17.496548, + "building_key": "", + "line_offset": 0, "normal_offset": 0, - "y_rotation": 3.128262 + "y_rotation": 0, + "y_offset": 0 }, { - "building_key": "Transform( -0.999911, 0, 0.0133325, 0, 1, 0, -0.0133325, 0, -0.999911, -87.5817, -0.00187683, -279.168 )", - "line_offset": 62.423843, + "building_key": "", + "line_offset": 0, "normal_offset": 0, - "y_rotation": 3.12826 + "y_rotation": 0, + "y_offset": 0 }, { - "building_key": "Transform( -0.999911, 0, 0.0133314, 0, 1, 0, -0.0133314, 0, -0.999911, -52.2412, 0.0127792, -278.697 )", - "line_offset": 97.767479, + "building_key": "", + "line_offset": 0, "normal_offset": 0, - "y_rotation": 3.128261 + "y_rotation": 0, + "y_offset": 0 }, { - "building_key": "Transform( -0.999911, 0, 0.0133351, 0, 1, 0, -0.0133351, 0, -0.999911, -1.69597, 0.0169067, -278.023 )", - "line_offset": 148.3172, + "building_key": "", + "line_offset": 0, "normal_offset": 0, - "y_rotation": 3.128257 + "y_rotation": 0, + "y_offset": 0 }, { - "building_key": "Transform( -0.999911, 0, 0.0133326, 0, 1, 0, -0.0133326, 0, -0.999911, 31.9662, 0.0140915, -277.574 )", - "line_offset": 181.982361, + "building_key": "", + "line_offset": 0, "normal_offset": 0, - "y_rotation": 3.12826 + "y_rotation": 0, + "y_offset": 0 }, { - "building_key": "Transform( -0.999911, 0, 0.0133316, 0, 1, 0, -0.0133316, 0, -0.999911, 80.3236, 0.019165, -276.929 )", - "line_offset": 230.34407, + "building_key": "", + "line_offset": 0, "normal_offset": 0, - "y_rotation": 3.128261 + "y_rotation": 0, + "y_offset": 0 }, { - "building_key": "Transform( -0.999911, 0, 0.0133311, 0, 1, 0, -0.0133311, 0, -0.999911, 115.211, 0.0228729, -276.464 )", - "line_offset": 265.234558, + "building_key": "", + "line_offset": 0, "normal_offset": 0, - "y_rotation": 3.128261 + "y_rotation": 0, + "y_offset": 0 }, { - "building_key": "Transform( -0.999911, 0, 0.0133318, 0, 1, 0, -0.0133318, 0, -0.999911, 164.491, 0.0140915, -275.807 )", - "line_offset": 314.518951, + "building_key": "", + "line_offset": 0, "normal_offset": 0, - "y_rotation": 3.12826 + "y_rotation": 0, + "y_offset": 0 }, { - "building_key": "Transform( -0.999911, 0, 0.0133307, 0, 1, 0, -0.0133307, 0, -0.999911, 199.246, -0.0331802, -275.343 )", - "line_offset": 349.277008, + "building_key": "", + "line_offset": 0, "normal_offset": 0, - "y_rotation": 3.128262 + "y_rotation": 0, + "y_offset": 0 }, { - "building_key": "Transform( -0.211332, 0, -0.977414, 0, 1, 0, 0.977414, 0, -0.211332, 236.48, -0.00166321, -328.096 )", - "line_offset": 429.356293, - "normal_offset": -0, - "y_rotation": -1.783734 + "building_key": "", + "line_offset": 0, + "normal_offset": 0, + "y_rotation": 0, + "y_offset": 0 }, { - "building_key": "Transform( -0.211333, 0, -0.977414, 0, 1, 0, 0.977414, 0, -0.211333, 247.081, -0.001297, -377.125 )", - "line_offset": 479.51825, - "normal_offset": -0, - "y_rotation": -1.783735 + "building_key": "", + "line_offset": 0, + "normal_offset": 0, + "y_rotation": 0, + "y_offset": 0 }, { - "building_key": "Transform( -0.211331, 0, -0.977414, 0, 1, 0, 0.977415, 0, -0.211331, 254.523, 0.0189209, -411.545 )", - "line_offset": 514.733582, - "normal_offset": -0, - "y_rotation": -1.783733 + "building_key": "", + "line_offset": 0, + "normal_offset": 0, + "y_rotation": 0, + "y_offset": 0 }, { - "building_key": "Transform( 0.999924, 0, -0.0123398, 0, 1, 0, 0.0123398, 0, 0.999924, 239.47, -0.000640869, -460.315 )", - "line_offset": 589.84021, - "normal_offset": -0, - "y_rotation": -0.01234 + "building_key": "", + "line_offset": 0, + "normal_offset": 0, + "y_rotation": 0, + "y_offset": 0 }, { - "building_key": "Transform( 0.999924, 0, -0.0123484, 0, 1, 0, 0.0123484, 0, 0.999924, 204.291, -0.00187683, -460.75 )", - "line_offset": 625.021912, - "normal_offset": -0, - "y_rotation": -0.012349 + "building_key": "", + "line_offset": 0, + "normal_offset": 0, + "y_rotation": 0, + "y_offset": 0 }, { - "building_key": "Transform( 0.999924, 0, -0.0123436, 0, 1, 0, 0.0123436, 0, 0.999924, 154.158, 0.0606918, -461.368 )", - "line_offset": 675.158752, - "normal_offset": -0, - "y_rotation": -0.012344 + "building_key": "", + "line_offset": 0, + "normal_offset": 0, + "y_rotation": 0, + "y_offset": 0 }, { - "building_key": "Transform( 0.999924, 0, -0.0123399, 0, 1, 0, 0.0123399, 0, 0.999924, 119.883, 0.0995483, -461.792 )", - "line_offset": 709.436401, - "normal_offset": -0, - "y_rotation": -0.01234 + "building_key": "", + "line_offset": 0, + "normal_offset": 0, + "y_rotation": 0, + "y_offset": 0 }, { - "building_key": "Transform( 0.999924, 0, -0.0123464, 0, 1, 0, 0.0123464, 0, 0.999924, 70.166, 0.114784, -462.405 )", - "line_offset": 759.157104, - "normal_offset": -0, - "y_rotation": -0.012347 + "building_key": "", + "line_offset": 0, + "normal_offset": 0, + "y_rotation": 0, + "y_offset": 0 }, { - "building_key": "Transform( 0.999924, 0, -0.0123453, 0, 1, 0, 0.0123453, 0, 0.999924, 34.9446, 0.165733, -462.84 )", - "line_offset": 794.381226, - "normal_offset": -0, - "y_rotation": -0.012346 + "building_key": "", + "line_offset": 0, + "normal_offset": 0, + "y_rotation": 0, + "y_offset": 0 }, { - "building_key": "Transform( 0.999924, 0, -0.0123454, 0, 1, 0, 0.0123454, 0, 0.999924, -14.3668, 0.0253067, -463.449 )", - "line_offset": 843.696411, - "normal_offset": -0, - "y_rotation": -0.012346 + "building_key": "", + "line_offset": 0, + "normal_offset": 0, + "y_rotation": 0, + "y_offset": 0 }, { - "building_key": "Transform( 0.999924, 0, -0.0123453, 0, 1, 0, 0.0123453, 0, 0.999924, -49.1236, 0.0152969, -463.878 )", - "line_offset": 878.455811, - "normal_offset": -0, - "y_rotation": -0.012346 + "building_key": "", + "line_offset": 0, + "normal_offset": 0, + "y_rotation": 0, + "y_offset": 0 }, { - "building_key": "Transform( 0.999924, 0, -0.012343, 0, 1, 0, 0.012343, 0, 0.999924, -99.1523, 0.0240707, -464.496 )", - "line_offset": 928.488342, - "normal_offset": -0, - "y_rotation": -0.012343 + "building_key": "", + "line_offset": 0, + "normal_offset": 0, + "y_rotation": 0, + "y_offset": 0 } ] }, @@ -1280,337 +1272,393 @@ "building_key": "", "line_offset": 0, "normal_offset": 0, - "y_rotation": 0 + "y_rotation": 0, + "y_offset": 0 }, { "building_key": "", "line_offset": 0, "normal_offset": 0, - "y_rotation": 0 + "y_rotation": 0, + "y_offset": 0 }, { "building_key": "", "line_offset": 0, "normal_offset": 0, - "y_rotation": 0 + "y_rotation": 0, + "y_offset": 0 }, { "building_key": "", "line_offset": 0, "normal_offset": 0, - "y_rotation": 0 + "y_rotation": 0, + "y_offset": 0 }, { "building_key": "", "line_offset": 0, "normal_offset": 0, - "y_rotation": 0 + "y_rotation": 0, + "y_offset": 0 }, { "building_key": "", "line_offset": 0, "normal_offset": 0, - "y_rotation": 0 + "y_rotation": 0, + "y_offset": 0 }, { "building_key": "", "line_offset": 0, "normal_offset": 0, - "y_rotation": 0 + "y_rotation": 0, + "y_offset": 0 }, { "building_key": "", "line_offset": 0, "normal_offset": 0, - "y_rotation": 0 + "y_rotation": 0, + "y_offset": 0 }, { "building_key": "", "line_offset": 0, "normal_offset": 0, - "y_rotation": 0 + "y_rotation": 0, + "y_offset": 0 }, { "building_key": "", "line_offset": 0, "normal_offset": 0, - "y_rotation": 0 + "y_rotation": 0, + "y_offset": 0 }, { "building_key": "", "line_offset": 0, "normal_offset": 0, - "y_rotation": 0 + "y_rotation": 0, + "y_offset": 0 }, { "building_key": "", "line_offset": 0, "normal_offset": 0, - "y_rotation": 0 + "y_rotation": 0, + "y_offset": 0 }, { "building_key": "", "line_offset": 0, "normal_offset": 0, - "y_rotation": 0 + "y_rotation": 0, + "y_offset": 0 }, { "building_key": "", "line_offset": 0, "normal_offset": 0, - "y_rotation": 0 + "y_rotation": 0, + "y_offset": 0 }, { "building_key": "", "line_offset": 0, "normal_offset": 0, - "y_rotation": 0 + "y_rotation": 0, + "y_offset": 0 }, { "building_key": "", "line_offset": 0, "normal_offset": 0, - "y_rotation": 0 + "y_rotation": 0, + "y_offset": 0 }, { "building_key": "", "line_offset": 0, "normal_offset": 0, - "y_rotation": 0 + "y_rotation": 0, + "y_offset": 0 }, { "building_key": "", "line_offset": 0, "normal_offset": 0, - "y_rotation": 0 + "y_rotation": 0, + "y_offset": 0 }, { "building_key": "", "line_offset": 0, "normal_offset": 0, - "y_rotation": 0 + "y_rotation": 0, + "y_offset": 0 }, { "building_key": "", "line_offset": 0, "normal_offset": 0, - "y_rotation": 0 + "y_rotation": 0, + "y_offset": 0 }, { "building_key": "", "line_offset": 0, "normal_offset": 0, - "y_rotation": 0 + "y_rotation": 0, + "y_offset": 0 }, { "building_key": "", "line_offset": 0, "normal_offset": 0, - "y_rotation": 0 + "y_rotation": 0, + "y_offset": 0 }, { "building_key": "", "line_offset": 0, "normal_offset": 0, - "y_rotation": 0 + "y_rotation": 0, + "y_offset": 0 }, { "building_key": "", "line_offset": 0, "normal_offset": 0, - "y_rotation": 0 + "y_rotation": 0, + "y_offset": 0 }, { "building_key": "", "line_offset": 0, "normal_offset": 0, - "y_rotation": 0 + "y_rotation": 0, + "y_offset": 0 }, { "building_key": "", "line_offset": 0, "normal_offset": 0, - "y_rotation": 0 + "y_rotation": 0, + "y_offset": 0 }, { "building_key": "", "line_offset": 0, "normal_offset": 0, - "y_rotation": 0 + "y_rotation": 0, + "y_offset": 0 }, { "building_key": "", "line_offset": 0, "normal_offset": 0, - "y_rotation": 0 + "y_rotation": 0, + "y_offset": 0 }, { "building_key": "", "line_offset": 0, "normal_offset": 0, - "y_rotation": 0 + "y_rotation": 0, + "y_offset": 0 }, { "building_key": "", "line_offset": 0, "normal_offset": 0, - "y_rotation": 0 + "y_rotation": 0, + "y_offset": 0 }, { "building_key": "", "line_offset": 0, "normal_offset": 0, - "y_rotation": 0 + "y_rotation": 0, + "y_offset": 0 }, { "building_key": "", "line_offset": 0, "normal_offset": 0, - "y_rotation": 0 + "y_rotation": 0, + "y_offset": 0 }, { "building_key": "", "line_offset": 0, "normal_offset": 0, - "y_rotation": 0 + "y_rotation": 0, + "y_offset": 0 }, { "building_key": "", "line_offset": 0, "normal_offset": 0, - "y_rotation": 0 + "y_rotation": 0, + "y_offset": 0 }, { "building_key": "", "line_offset": 0, "normal_offset": 0, - "y_rotation": 0 + "y_rotation": 0, + "y_offset": 0 }, { "building_key": "", "line_offset": 0, "normal_offset": 0, - "y_rotation": 0 + "y_rotation": 0, + "y_offset": 0 }, { "building_key": "", "line_offset": 0, "normal_offset": 0, - "y_rotation": 0 + "y_rotation": 0, + "y_offset": 0 }, { "building_key": "", "line_offset": 0, "normal_offset": 0, - "y_rotation": 0 + "y_rotation": 0, + "y_offset": 0 }, { "building_key": "", "line_offset": 0, "normal_offset": 0, - "y_rotation": 0 + "y_rotation": 0, + "y_offset": 0 }, { "building_key": "", "line_offset": 0, "normal_offset": 0, - "y_rotation": 0 + "y_rotation": 0, + "y_offset": 0 }, { "building_key": "", "line_offset": 0, "normal_offset": 0, - "y_rotation": 0 + "y_rotation": 0, + "y_offset": 0 }, { "building_key": "", "line_offset": 0, "normal_offset": 0, - "y_rotation": 0 + "y_rotation": 0, + "y_offset": 0 }, { - "building_key": "Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -807.503, 0.0140915, -375 )", - "line_offset": 17.502991, - "normal_offset": -0, - "y_rotation": 0 - }, - { - "building_key": "Transform( 1, 0, 1.52588e-06, 0, 1, 0, -1.52588e-06, 0, 1, -852.561, 0.0140915, -375 )", - "line_offset": 62.560974, - "normal_offset": -0, - "y_rotation": 0.000002 - }, - { - "building_key": "Transform( 0.982871, 0, 0.184293, 0, 1, 0, -0.184293, 0, 0.982871, -917.236, 0.0146027, -370.831 )", - "line_offset": 127.623474, - "normal_offset": -0, - "y_rotation": 0.185353 - }, - { - "building_key": "Transform( 1, 0, 1.52588e-06, 0, 1, 0, -1.52588e-06, 0, 1, -996.222, 0.0140915, -360 )", - "line_offset": 207.616089, - "normal_offset": -0, - "y_rotation": 0.000002 - }, - { - "building_key": "Transform( 1, 0, 1.52588e-06, 0, 1, 0, -1.52588e-06, 0, 1, -1031.17, 0.0140915, -360 )", - "line_offset": 242.564148, - "normal_offset": -0, - "y_rotation": 0.000002 - }, - { - "building_key": "Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -1080.97, 0.0144806, -360 )", - "line_offset": 292.364075, - "normal_offset": -0, - "y_rotation": 0 - }, - { - "building_key": "Transform( 0.371391, 0, 0.928477, 0, 1, 0, -0.928477, 0, 0.371391, -1129.74, 0.0215302, -335.643 )", - "line_offset": 357.626343, + "building_key": "", + "line_offset": 0, "normal_offset": 0, - "y_rotation": 1.19029 + "y_rotation": 0, + "y_offset": 0 }, { - "building_key": "Transform( -1, 0, 1.52588e-06, 0, 1, 0, -1.52588e-06, 0, -1, -1078.2, 0.0140915, -280 )", - "line_offset": 467.89624, + "building_key": "", + "line_offset": 0, "normal_offset": 0, - "y_rotation": 3.141591 + "y_rotation": 0, + "y_offset": 0 }, { - "building_key": "Transform( -1, 0, -3.05176e-06, 0, 1, 0, 3.05176e-06, 0, -1, -1043.2, 0.0140915, -280 )", - "line_offset": 502.89624, + "building_key": "", + "line_offset": 0, "normal_offset": 0, - "y_rotation": -3.14159 + "y_rotation": 0, + "y_offset": 0 }, { - "building_key": "Transform( -1, 0, -3.8147e-06, 0, 1, 0, 3.8147e-06, 0, -1, -993.383, 0.0270004, -280 )", - "line_offset": 552.713196, + "building_key": "", + "line_offset": 0, "normal_offset": 0, - "y_rotation": -3.141589 + "y_rotation": 0, + "y_offset": 0 }, { - "building_key": "Transform( -1, 0, -1.52588e-06, 0, 1, 0, 1.52588e-06, 0, -1, -943.889, 0.0416718, -280 )", - "line_offset": 602.207214, + "building_key": "", + "line_offset": 0, "normal_offset": 0, - "y_rotation": -3.141591 + "y_rotation": 0, + "y_offset": 0 }, { - "building_key": "Transform( -1, 0, 0, 0, 1, 0, 0, 0, -1, -909.404, 0.0602722, -280 )", - "line_offset": 636.6922, + "building_key": "", + "line_offset": 0, "normal_offset": 0, - "y_rotation": 3.141593 + "y_rotation": 0, + "y_offset": 0 }, { - "building_key": "Transform( -1, 0, 0, 0, 1, 0, 0, 0, -1, -864.082, 0.0658722, -280 )", - "line_offset": 682.014221, + "building_key": "", + "line_offset": 0, "normal_offset": 0, - "y_rotation": 3.141593 + "y_rotation": 0, + "y_offset": 0 }, { - "building_key": "Transform( -1, 0, 0, 0, 1, 0, 0, 0, -1, -829.033, 0.0537186, -280 )", - "line_offset": 717.063171, + "building_key": "", + "line_offset": 0, "normal_offset": 0, - "y_rotation": 3.141593 + "y_rotation": 0, + "y_offset": 0 + }, + { + "building_key": "", + "line_offset": 0, + "normal_offset": 0, + "y_rotation": 0, + "y_offset": 0 + }, + { + "building_key": "", + "line_offset": 0, + "normal_offset": 0, + "y_rotation": 0, + "y_offset": 0 + }, + { + "building_key": "", + "line_offset": 0, + "normal_offset": 0, + "y_rotation": 0, + "y_offset": 0 + }, + { + "building_key": "", + "line_offset": 0, + "normal_offset": 0, + "y_rotation": 0, + "y_offset": 0 + }, + { + "building_key": "", + "line_offset": 0, + "normal_offset": 0, + "y_rotation": 0, + "y_offset": 0 + }, + { + "building_key": "", + "line_offset": 0, + "normal_offset": 0, + "y_rotation": 0, + "y_offset": 0 } ] }, @@ -1629,4 +1677,4 @@ ] } -} \ No newline at end of file +} diff --git a/godot/main/editor.tscn b/godot/main/editor.tscn index 77e3b87..4131f67 100644 --- a/godot/main/editor.tscn +++ b/godot/main/editor.tscn @@ -67,13 +67,13 @@ focus_mode = 2 unique_name_in_owner = true margin_top = 52.0 margin_right = 248.0 -margin_bottom = 500.0 +margin_bottom = 524.0 [node name="v_buildings" type="VBoxContainer" parent="VBoxContainer"] unique_name_in_owner = true -margin_top = 504.0 +margin_top = 528.0 margin_right = 248.0 -margin_bottom = 504.0 +margin_bottom = 528.0 [node name="v_navigation" type="VBoxContainer" parent="VBoxContainer"] unique_name_in_owner = true @@ -116,10 +116,6 @@ margin_top = 246.0 margin_right = 248.0 margin_bottom = 1205.0 -[node name="HSeparator" type="HSeparator" parent="VBoxContainer/v_road_lines"] -margin_right = 248.0 -margin_bottom = 4.0 - [node name="road_lines_base" type="PanelContainer" parent="VBoxContainer/v_road_lines"] unique_name_in_owner = true margin_top = 8.0 @@ -134,69 +130,6 @@ margin_bottom = 301.0 size_flags_horizontal = 3 size_flags_vertical = 3 -[node name="road_lines_menu_block" type="HBoxContainer" parent="VBoxContainer/v_road_lines/road_lines_base/VBoxContainer"] -unique_name_in_owner = true -margin_right = 234.0 -margin_bottom = 20.0 - -[node name="road_lines_file_menu" type="MenuButton" parent="VBoxContainer/v_road_lines/road_lines_base/VBoxContainer/road_lines_menu_block"] -unique_name_in_owner = true -margin_right = 35.0 -margin_bottom = 20.0 -focus_mode = 2 -text = "File" -items = [ "Save Lines", null, 0, false, false, 101, 0, null, "", false ] -switch_on_hover = true - -[node name="road_lines_edit_menu" type="MenuButton" parent="VBoxContainer/v_road_lines/road_lines_base/VBoxContainer/road_lines_menu_block"] -unique_name_in_owner = true -margin_left = 39.0 -margin_right = 75.0 -margin_bottom = 20.0 -focus_mode = 2 -text = "Edit" -items = [ "Undo", null, 0, false, false, 201, 0, null, "", false ] -switch_on_hover = true - -[node name="road_lines_point_menu" type="MenuButton" parent="VBoxContainer/v_road_lines/road_lines_base/VBoxContainer/road_lines_menu_block"] -unique_name_in_owner = true -margin_left = 79.0 -margin_right = 124.0 -margin_bottom = 20.0 -text = "Point" -items = [ "", null, 0, false, false, 0, 0, null, "", true, "Create", null, 0, false, false, 11, 0, null, "", false, "Remove", null, 0, false, false, 12, 0, null, "", false, "", null, 0, false, false, 3, 0, null, "", true, "Point To Cursor", null, 0, false, false, 51, 0, null, "", false, "Cursor To Point", null, 0, false, false, 52, 0, null, "", false, "Cursor to closest building", null, 0, false, false, 53, 0, null, "", false, "Item 7", null, 0, false, true, 7, 0, null, "", false ] -switch_on_hover = true - -[node name="road_lines_line_menu" type="MenuButton" parent="VBoxContainer/v_road_lines/road_lines_base/VBoxContainer/road_lines_menu_block"] -unique_name_in_owner = true -margin_left = 128.0 -margin_right = 167.0 -margin_bottom = 20.0 -focus_mode = 2 -text = "Line" -items = [ "Create", null, 0, false, false, 21, 0, null, "", false, "Delete", null, 0, false, false, 22, 0, null, "", false, "", null, 0, false, false, -1, 0, null, "", true, "Remove Generated", null, 0, false, false, 30, 0, null, "", false, "Place Generated Objects", null, 0, false, false, 31, 0, null, "", false, "Edit Line Metadata", null, 0, false, false, 23, 0, null, "", false, "Rebuild roads", null, 0, false, false, 32, 0, null, "", false, "Remove road meshes", null, 0, false, false, 33, 0, null, "", false, "Assign close (generated) buildings", null, 0, false, false, 34, 0, null, "", false, "Create new building at cursor", null, 0, false, false, 35, 0, null, "", false, "View Buildings", null, 0, false, false, 36, 0, null, "", false ] -switch_on_hover = true - -[node name="road_lines_options_menu" type="MenuButton" parent="VBoxContainer/v_road_lines/road_lines_base/VBoxContainer/road_lines_menu_block"] -unique_name_in_owner = true -margin_left = 171.0 -margin_right = 234.0 -margin_bottom = 20.0 -text = "Options" -items = [ "Update roads", null, 1, false, false, 201, 0, null, "", false, "", null, 0, false, false, 1, 0, null, "", true, "Debug Road Nodes", null, 1, false, false, 210, 0, null, "", false, "Debug Road Edges", null, 1, false, false, 211, 0, null, "", false, "Debug Road Wedges", null, 1, false, false, 212, 0, null, "", false ] -switch_on_hover = true - -[node name="HSeparator3" type="HSeparator" parent="VBoxContainer/v_road_lines/road_lines_base/VBoxContainer"] -margin_top = 24.0 -margin_right = 234.0 -margin_bottom = 28.0 - -[node name="Label" type="Label" parent="VBoxContainer/v_road_lines/road_lines_base/VBoxContainer"] -margin_top = 32.0 -margin_right = 234.0 -margin_bottom = 46.0 -text = "Road Lines mode" - [node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/v_road_lines/road_lines_base/VBoxContainer"] margin_top = 50.0 margin_right = 234.0 diff --git a/src/modules/stream/base_data.h b/src/modules/stream/base_data.h index 3a59a81..4910b6b 100644 --- a/src/modules/stream/base_data.h +++ b/src/modules/stream/base_data.h @@ -1,3 +1,5 @@ +#ifndef BASE_DATA_H +#define BASE_DATA_H #include "flecs/flecs.h" class BaseData { flecs::world ecs; @@ -11,3 +13,4 @@ public: static BaseData *get_singleton(); void cleanup(); }; +#endif \ No newline at end of file diff --git a/src/modules/stream/road_lines_data.cpp b/src/modules/stream/road_lines_data.cpp index c62df8d..c251e2c 100644 --- a/src/modules/stream/road_lines_data.cpp +++ b/src/modules/stream/road_lines_data.cpp @@ -234,6 +234,7 @@ static LinesAccessor lines; ImmediateGeometry *RoadLinesData::debug_im = nullptr; static Ref debug_material; RoadLinesData::RoadLinesData() + : initialized(false) { load_data(); } @@ -286,6 +287,7 @@ RoadLinesData *RoadLinesData::get_singleton() { if (!singleton) singleton = memnew(RoadLinesData); + assert(singleton->initialized); return singleton; } RoadLinesData::~RoadLinesData() @@ -321,7 +323,9 @@ void RoadLinesData::get_road_lines_key_list(List *keys) } void RoadLinesData::get_lines_key_list(List *keys) { + assert(initialized); ::lines.get_key_list(keys); + assert(!keys->empty()); } const String &RoadLinesData::get_next_line(const String &key) { @@ -337,6 +341,7 @@ void RoadLinesData::load_data() ConfigFile config; Error result = config.load("res://config/stream.conf"); ERR_FAIL_COND_MSG(result != OK, "Failed to load config"); + assert(result == OK); road_lines_path = config.get_value("lines", "road_lines_path"); String road_lines_path = config.get_value("lines", "road_lines_path"); String road_lines_json = @@ -345,7 +350,8 @@ void RoadLinesData::load_data() String es; int eline; Error status = JSON::parse(road_lines_json, json_v, es, eline); - ERR_FAIL_COND_MSG(status != OK, "Can't parse json: " + es + + ERR_FAIL_COND_MSG(status != OK, "Can't parse json: " + road_lines_path + + ": " + es + " at line: " + itos(eline)); Dictionary json = json_v; @@ -384,6 +390,12 @@ void RoadLinesData::load_data() set_line(key, rline); e = e->next(); } + { + List tkeys; + ::lines.get_key_list(&tkeys); + assert(!tkeys.empty()); + } + initialized = true; } void RoadLinesData::save_data() { diff --git a/src/modules/stream/road_lines_data.h b/src/modules/stream/road_lines_data.h index 7d20eb9..2d7323c 100644 --- a/src/modules/stream/road_lines_data.h +++ b/src/modules/stream/road_lines_data.h @@ -7,6 +7,7 @@ class RoadLinesData { String road_lines_path; uint32_t road_lines_hash(const Vector3 &v); static ImmediateGeometry *debug_im; + bool initialized; protected: RoadLinesData(); diff --git a/src/modules/stream/road_lines_editor.cpp b/src/modules/stream/road_lines_editor.cpp index fc4659e..ac8a36d 100644 --- a/src/modules/stream/road_lines_editor.cpp +++ b/src/modules/stream/road_lines_editor.cpp @@ -219,19 +219,6 @@ public: , editor(editor) { int i; - Node *menu_block = - editor->get_as_node("%road_lines_menu_block"); - for (i = 0; i < menu_block->get_child_count(); i++) { - Node *menu_button_node = menu_block->get_child(i); - MenuButton *menu_button = - Object::cast_to(menu_button_node); - if (!menu_button) - continue; - PopupMenu *popup = menu_button->get_popup(); - popup->connect("id_pressed", this, "main_handler"); - // popup->connect("mouse_exited", popup, "hide"); - popup->connect("focus_exited", popup, "hide"); - } Button *cancel_button = editor->get_as_node