using System.Collections;
using System.Collections.Generic;
using Godot;
using System;



namespace Rokojori
{
  [Tool]
  [GlobalClass]
  public partial class SaveViewportTexture:Action
  { 
    [Export] 
    public SubViewport viewport;

    [Export]
    public string path = "";

    [Export]
    public float quality = 1;

    protected override void _OnTrigger()
    {      
      Textures.Save( viewport.GetTexture(), path, quality );
    }
  }
}