rokojori_action_library/Runtime/UI/Actions/SetUIText.cs

27 lines
378 B
C#
Raw Normal View History

2025-12-11 14:47:57 +00:00
using Godot;
using System;
2026-05-22 12:25:02 +00:00
using Rokojori.Extensions;
2025-12-11 14:47:57 +00:00
namespace Rokojori
{
[Tool,GlobalClass]
public partial class SetUIText: Action
{
[Export]
public UIText uiText;
[Export]
public LocaleText locale;
protected override void _OnTrigger()
{
if ( uiText == null )
{
return;
}
uiText.locale = locale;
}
}
}