plants translated
This commit is contained in:
parent
8755102e4a
commit
c0b042ebd5
20 changed files with 140 additions and 68 deletions
|
|
@ -41,8 +41,8 @@ public partial class Previewport : SubViewport
|
|||
else
|
||||
GetNode<Sprite2D>("FrameField").Texture = start_Field;
|
||||
current_display = resource.Scene.Instantiate();
|
||||
title.Text = resource.display_name;
|
||||
description.Text = resource.display_description;
|
||||
title.Text = Tr(resource.name_key);
|
||||
description.Text = Tr(resource.description_key);
|
||||
AddChild(current_display);
|
||||
if (current_display is IEntity entity)
|
||||
entity.DisableBrain();
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@ using Godot;
|
|||
|
||||
public partial class DisplayResource : Resource
|
||||
{
|
||||
[Export] public string display_name;
|
||||
[Export(PropertyHint.MultilineText)] public string display_description;
|
||||
[Export] public string name_key;
|
||||
[Export] public string description_key;
|
||||
[Export]
|
||||
public float Cost;
|
||||
[Export]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue