rj-action-library/Runtime/UI/Nodes/UIWrapper.cs

26 lines
469 B
C#
Raw Normal View History

2025-06-19 17:22:25 +00:00
using Godot;
using System.Collections.Generic;
namespace Rokojori
{
[Tool]
[GlobalClass,Icon("res://addons/rokojori_action_library/Icons/UIRegion.svg")]
public partial class UIWrapper : UIRegion
{
[Export]
public Control wrappedControl;
public override void Layout()
{
base.Layout();
if ( wrappedControl != null )
{
wrappedControl.Size = Size;
wrappedControl.Position = Vector2.Zero;
}
}
}
}