<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Effekseer.GUI.Dock
{
	class Dynamic : DockPanel
	{
		Component.ParameterList paramerterListInput = null;

		Component.ParameterList paramerterList = null;

		bool isFiestUpdate = true;

		string compileResult = string.Empty;

		public Dynamic()
		{
			Label = Resources.GetString("DynamicParameter_Name") + "###DynamicParameter";

			paramerterListInput = new Component.ParameterList();
			paramerterList = new Component.ParameterList();
			
			Core.OnBeforeLoad += Core_OnBeforeLoad;
			Core.OnBeforeNew += Core_OnBeforeNew;
			Core.OnAfterLoad += OnAfterLoad;
			Core.OnAfterNew += OnAfterLoad;
			Core.Dynamic.Equations.OnChanged += Vectors_OnChanged;
			Core.Dynamic.Inputs.Values[0].Input.OnChanged += Input_OnChanged;
			Core.Dynamic.Inputs.Values[1].Input.OnChanged += Input_OnChanged;
			Core.Dynamic.Inputs.Values[2].Input.OnChanged += Input_OnChanged;
			Core.Dynamic.Inputs.Values[3].Input.OnChanged += Input_OnChanged;

			Read();

			Icon = Images.GetIcon("PanelDynamicParameter");
			TabToolTip = Resources.GetString("DynamicParameter");
		}

		private void Input_OnChanged(object sender, ChangedValueEventArgs e)
		{
			Manager.Viewer.SetDynamicInput(
				Core.Dynamic.Inputs.Values[0].Input.Value,
				Core.Dynamic.Inputs.Values[1].Input.Value,
				Core.Dynamic.Inputs.Values[2].Input.Value,
				Core.Dynamic.Inputs.Values[3].Input.Value);
		}

		private void Vectors_OnChanged(object sender, ChangedValueEventArgs e)
		{
		}
<commit_msg>Fixed a empty tooltip of dynamic parameter dock tab.<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Effekseer.GUI.Dock
{
	class Dynamic : DockPanel
	{
		Component.ParameterList paramerterListInput = null;

		Component.ParameterList paramerterList = null;

		bool isFiestUpdate = true;

		string compileResult = string.Empty;

		public Dynamic()
		{
			Label = Resources.GetString("DynamicParameter_Name") + "###DynamicParameter";

			paramerterListInput = new Component.ParameterList();
			paramerterList = new Component.ParameterList();
			
			Core.OnBeforeLoad += Core_OnBeforeLoad;
			Core.OnBeforeNew += Core_OnBeforeNew;
			Core.OnAfterLoad += OnAfterLoad;
			Core.OnAfterNew += OnAfterLoad;
			Core.Dynamic.Equations.OnChanged += Vectors_OnChanged;
			Core.Dynamic.Inputs.Values[0].Input.OnChanged += Input_OnChanged;
			Core.Dynamic.Inputs.Values[1].Input.OnChanged += Input_OnChanged;
			Core.Dynamic.Inputs.Values[2].Input.OnChanged += Input_OnChanged;
			Core.Dynamic.Inputs.Values[3].Input.OnChanged += Input_OnChanged;

			Read();

			Icon = Images.GetIcon("PanelDynamicParameter");
			TabToolTip = Resources.GetString("DynamicParameter_Name");
		}

		private void Input_OnChanged(object sender, ChangedValueEventArgs e)
		{
			Manager.Viewer.SetDynamicInput(
				Core.Dynamic.Inputs.Values[0].Input.Value,
				Core.Dynamic.Inputs.Values[1].Input.Value,
				Core.Dynamic.Inputs.Values[2].Input.Value,
				Core.Dynamic.Inputs.Values[3].Input.Value);
		}

		private void Vectors_OnChanged(object sender, ChangedValueEventArgs e)
		{
		}

{'fraction_non_alphanumeric': 0.11334156886967264, 'fraction_numerical': 0.004941321803582459, 'mean_word_length': 4.74290780141844, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3856093', 'n_tokens_mistral': 1124, 'n_tokens_neox': 1005, 'n_words': 164}