27 lines
359 B
C#
27 lines
359 B
C#
|
|
|
||
|
|
using Godot;
|
||
|
|
|
||
|
|
|
||
|
|
namespace Rokojori;
|
||
|
|
|
||
|
|
[Tool]
|
||
|
|
[GlobalClass]
|
||
|
|
public partial class SetUIAppSettingsReady : Action
|
||
|
|
{
|
||
|
|
[Export]
|
||
|
|
public UIAppSettings uiAppSettings;
|
||
|
|
|
||
|
|
[Export]
|
||
|
|
public Action newReadyAction;
|
||
|
|
|
||
|
|
protected override void _OnTrigger()
|
||
|
|
{
|
||
|
|
if ( uiAppSettings == null )
|
||
|
|
{
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
|
||
|
|
uiAppSettings.onReady = newReadyAction;
|
||
|
|
}
|
||
|
|
}
|