plants translated

This commit is contained in:
Rendo 2025-07-03 22:33:54 +05:00
commit c0b042ebd5
20 changed files with 140 additions and 68 deletions

View file

@ -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();

View file

@ -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]