Prepicked plants editor
This commit is contained in:
parent
9eba7d3069
commit
56f75a5d06
43 changed files with 532 additions and 50 deletions
|
|
@ -12,7 +12,17 @@ public partial class EntityResource : Resource
|
|||
[Export] public Texture2D Preview;
|
||||
[Export] public CustomSeedpacketFrame CustomFrame;
|
||||
[Export] public int Order = 0;
|
||||
public string internal_id;
|
||||
public string parsedDescription;
|
||||
public bool isDescriptionParsed;
|
||||
private string internal_id = "";
|
||||
public string GetInternalID()
|
||||
{
|
||||
if (internal_id == "")
|
||||
{
|
||||
string[] splitstr = ResourcePath.Split('/');
|
||||
string file = splitstr[splitstr.Length - 1].ToLower();
|
||||
internal_id = file.TrimSuffix(".tres");
|
||||
}
|
||||
return internal_id;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue