﻿
using HutongGames.PlayMaker;

namespace SRDebugger.Playmaker.Actions
{

	[ActionCategory("SRDebugger")]
	[Tooltip("Set whether or not the docked console is expanded (i.e. showing log, or just the top bar).")]
	public class SetDockedConsoleExpanded : FsmStateAction
	{

		[Tooltip("True to expand the docked console, false to collapse.")]
		[RequiredField]
		public FsmBool expanded;

		public override void OnEnter()
		{
			SRDebug.Instance.DockConsole.IsExpanded = expanded.Value;
			Finish();
		}

	}

}