Beispiel #1
0
        private void RawValuesButton_Click(object sender, RoutedEventArgs e)
        {
            if (_material == null)
            {
                return;
            }

            var values = _material.ShaderParameterList.Select(x => {
                var ret = x.ParameterID.ToString() + " { ";

                foreach (var val in x.Args)
                {
                    ret += val.ToString("0.000") + ", ";
                }

                ret  = ret.Substring(0, ret.Length - 2);
                ret += " }";

                return(ret);
            }).ToList();

            var wind = new AffectedFilesView(values, "Raw Shader Parameters")
            {
                Owner = _view
            };

            wind.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            wind.Show();
        }
Beispiel #2
0
        private async Task ShowAffectedItems()
        {
            var items = await _metadata.Root.GetAllItems((int)ImcVariantBox.SelectedItem);

            var itemNames = items.Select(x => x.Name);

            var win = new AffectedFilesView(itemNames, "Affected Items");

            win.Show();
        }
Beispiel #3
0
        private async Task ShowAffectedItems()
        {
            var items = await _root.GetAllItems();

            var itemNames = items.Select(x => x.Name);

            var win = new AffectedFilesView(itemNames, "Affected Items");

            win.Show();
        }