private void FormConsole_Load(object sender, EventArgs e) { ArgTrackBar temp = new ArgTrackBar("Bust", ConvertToInt(_emote.GetBustScale())); temp.OnValueChanged += SetBustValue; _argTracks.TryAdd("Bust", temp); temp = new ArgTrackBar("Hair", ConvertToInt(_emote.GetHairScale())); temp.OnValueChanged += SetHairValue; _argTracks.TryAdd("Hair", temp); temp = new ArgTrackBar("Wind Direction"); temp.OnValueChanged += SetWindDirect; _argTracks.TryAdd("Wind", temp); temp = new ArgTrackBar("Wind Speed"); temp.OnValueChanged += SetWindSpeed; _argTracks.TryAdd("WindSpeed", temp); UpdatePanel(); }
private void btnGet_Click(object sender, EventArgs e) { var count = _emote.CountVariables(); for (uint i = 0; i < count; i++) { Console.WriteLine(_emote.GetVariableLabelAt(i)); Dictionary <string, int> preset = new Dictionary <string, int>(); var frameCount = _emote.CountVariableFrameAt(i); for (uint j = 0; j < frameCount; j++) { preset.Add(_emote.GetVariableFrameLabelAt(i, j), ConvertToInt(_emote.GetVariableFrameValueAt(i, j))); } ArgTrackBar temp = new ArgTrackBar(_emote.GetVariableLabelAt(i), ConvertToInt(_emote.GetVariable(_emote.GetVariableLabelAt(i))), -4097, 4097, preset); temp.OnValueChanged += SetVariable; _argTracks.TryAdd(_emote.GetVariableLabelAt(i), temp); } UpdatePanel(); }