Resource order
This commit is contained in:
parent
bb7c0f63c4
commit
8b2b904834
16 changed files with 27 additions and 2 deletions
|
|
@ -14,3 +14,4 @@ ReloadTime = 15.0
|
||||||
ReloadProgress = 0.0
|
ReloadProgress = 0.0
|
||||||
Preview = ExtResource("1_t4137")
|
Preview = ExtResource("1_t4137")
|
||||||
Layer = 1
|
Layer = 1
|
||||||
|
Order = 6
|
||||||
|
|
|
||||||
|
|
@ -18,4 +18,5 @@ ReloadTime = 5.0
|
||||||
ReloadProgress = 0.0
|
ReloadProgress = 0.0
|
||||||
Preview = SubResource("AtlasTexture_3gogt")
|
Preview = SubResource("AtlasTexture_3gogt")
|
||||||
Layer = 1
|
Layer = 1
|
||||||
|
Order = 8
|
||||||
metadata/_custom_type_script = "uid://cyenlko1knygw"
|
metadata/_custom_type_script = "uid://cyenlko1knygw"
|
||||||
|
|
|
||||||
|
|
@ -14,3 +14,4 @@ ReloadTime = 7.5
|
||||||
ReloadProgress = 0.67
|
ReloadProgress = 0.67
|
||||||
Preview = ExtResource("1_datic")
|
Preview = ExtResource("1_datic")
|
||||||
Layer = 1
|
Layer = 1
|
||||||
|
Order = 7
|
||||||
|
|
|
||||||
|
|
@ -18,4 +18,5 @@ ReloadTime = 10.0
|
||||||
ReloadProgress = 0.0
|
ReloadProgress = 0.0
|
||||||
Preview = SubResource("AtlasTexture_ivp5w")
|
Preview = SubResource("AtlasTexture_ivp5w")
|
||||||
Layer = 1
|
Layer = 1
|
||||||
|
Order = 11
|
||||||
metadata/_custom_type_script = "uid://cyenlko1knygw"
|
metadata/_custom_type_script = "uid://cyenlko1knygw"
|
||||||
|
|
|
||||||
|
|
@ -14,3 +14,4 @@ ReloadTime = 25.0
|
||||||
ReloadProgress = 0.9
|
ReloadProgress = 0.9
|
||||||
Preview = ExtResource("1_xk2pg")
|
Preview = ExtResource("1_xk2pg")
|
||||||
Layer = 1
|
Layer = 1
|
||||||
|
Order = 3
|
||||||
|
|
|
||||||
|
|
@ -14,3 +14,4 @@ ReloadTime = 5.0
|
||||||
ReloadProgress = 0.0
|
ReloadProgress = 0.0
|
||||||
Preview = ExtResource("1_7fyy2")
|
Preview = ExtResource("1_7fyy2")
|
||||||
Layer = 1
|
Layer = 1
|
||||||
|
Order = 5
|
||||||
|
|
|
||||||
|
|
@ -14,3 +14,4 @@ ReloadTime = 5.0
|
||||||
ReloadProgress = 0.0
|
ReloadProgress = 0.0
|
||||||
Preview = ExtResource("1_2ol2i")
|
Preview = ExtResource("1_2ol2i")
|
||||||
Layer = 1
|
Layer = 1
|
||||||
|
Order = 4
|
||||||
|
|
|
||||||
|
|
@ -14,3 +14,4 @@ ReloadTime = 5.0
|
||||||
ReloadProgress = 1.0
|
ReloadProgress = 1.0
|
||||||
Preview = ExtResource("1_8rd5i")
|
Preview = ExtResource("1_8rd5i")
|
||||||
Layer = 1
|
Layer = 1
|
||||||
|
Order = 1
|
||||||
|
|
|
||||||
|
|
@ -14,3 +14,4 @@ ReloadTime = 5.0
|
||||||
ReloadProgress = 0.0
|
ReloadProgress = 0.0
|
||||||
Preview = ExtResource("1_hinp6")
|
Preview = ExtResource("1_hinp6")
|
||||||
Layer = 1
|
Layer = 1
|
||||||
|
Order = 10
|
||||||
|
|
|
||||||
|
|
@ -14,3 +14,4 @@ ReloadTime = 20.0
|
||||||
ReloadProgress = 0.0
|
ReloadProgress = 0.0
|
||||||
Preview = ExtResource("1_2akap")
|
Preview = ExtResource("1_2akap")
|
||||||
Layer = 1
|
Layer = 1
|
||||||
|
Order = 2
|
||||||
|
|
|
||||||
|
|
@ -18,4 +18,5 @@ ReloadTime = 1.0
|
||||||
ReloadProgress = 0.0
|
ReloadProgress = 0.0
|
||||||
Preview = SubResource("AtlasTexture_wu2q8")
|
Preview = SubResource("AtlasTexture_wu2q8")
|
||||||
Layer = 1
|
Layer = 1
|
||||||
|
Order = 0
|
||||||
metadata/_custom_type_script = "uid://cqxj7o8hdm82n"
|
metadata/_custom_type_script = "uid://cqxj7o8hdm82n"
|
||||||
|
|
|
||||||
|
|
@ -18,4 +18,5 @@ ReloadTime = 1.0
|
||||||
ReloadProgress = 0.0
|
ReloadProgress = 0.0
|
||||||
Preview = SubResource("AtlasTexture_drksh")
|
Preview = SubResource("AtlasTexture_drksh")
|
||||||
Layer = 1
|
Layer = 1
|
||||||
|
Order = 2
|
||||||
metadata/_custom_type_script = "uid://cqxj7o8hdm82n"
|
metadata/_custom_type_script = "uid://cqxj7o8hdm82n"
|
||||||
|
|
|
||||||
|
|
@ -18,4 +18,5 @@ ReloadTime = 1.0
|
||||||
ReloadProgress = 0.0
|
ReloadProgress = 0.0
|
||||||
Preview = SubResource("AtlasTexture_q44xp")
|
Preview = SubResource("AtlasTexture_q44xp")
|
||||||
Layer = 1
|
Layer = 1
|
||||||
|
Order = 1
|
||||||
metadata/_custom_type_script = "uid://cqxj7o8hdm82n"
|
metadata/_custom_type_script = "uid://cqxj7o8hdm82n"
|
||||||
|
|
|
||||||
|
|
@ -18,4 +18,5 @@ ReloadTime = 1.0
|
||||||
ReloadProgress = 0.0
|
ReloadProgress = 0.0
|
||||||
Preview = SubResource("AtlasTexture_73ahc")
|
Preview = SubResource("AtlasTexture_73ahc")
|
||||||
Layer = 1
|
Layer = 1
|
||||||
|
Order = 5
|
||||||
metadata/_custom_type_script = "uid://cqxj7o8hdm82n"
|
metadata/_custom_type_script = "uid://cqxj7o8hdm82n"
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,12 @@ public partial class AlmanachGrid : GridContainer
|
||||||
|
|
||||||
if (_zombies)
|
if (_zombies)
|
||||||
{
|
{
|
||||||
foreach (var resource in GameRegistry.GetZombies())
|
var list = GameRegistry.GetZombies();
|
||||||
|
list.Sort((a, b) =>
|
||||||
|
{
|
||||||
|
return a.Order - b.Order;
|
||||||
|
});
|
||||||
|
foreach (var resource in list)
|
||||||
{
|
{
|
||||||
Seedpacket slot = _plantCard.Instantiate<Seedpacket>();
|
Seedpacket slot = _plantCard.Instantiate<Seedpacket>();
|
||||||
AddChild(slot);
|
AddChild(slot);
|
||||||
|
|
@ -23,7 +28,12 @@ public partial class AlmanachGrid : GridContainer
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
foreach (var resource in GameRegistry.GetPlants())
|
var list = GameRegistry.GetPlants();
|
||||||
|
list.Sort((a, b) =>
|
||||||
|
{
|
||||||
|
return a.Order - b.Order;
|
||||||
|
});
|
||||||
|
foreach (var resource in list)
|
||||||
{
|
{
|
||||||
Seedpacket slot = _plantCard.Instantiate<Seedpacket>();
|
Seedpacket slot = _plantCard.Instantiate<Seedpacket>();
|
||||||
AddChild(slot);
|
AddChild(slot);
|
||||||
|
|
|
||||||
|
|
@ -16,5 +16,6 @@ public partial class DisplayResource : Resource
|
||||||
public Texture2D Preview;
|
public Texture2D Preview;
|
||||||
[Export] public CustomSeedpacketFrame customFrame;
|
[Export] public CustomSeedpacketFrame customFrame;
|
||||||
[Export] public int Layer = 1;
|
[Export] public int Layer = 1;
|
||||||
|
[Export] public int Order = 0;
|
||||||
public string internal_id;
|
public string internal_id;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue