Esempio n. 1
0
 public ImageInfoGenerator(SelectedItems items)
 {
     this.items = items;
 }
Esempio n. 2
0
 public ImageInfoGenerator(SelectedItems items)
 {
     this.items = items;
 }
Esempio n. 3
0
    /****ボタン処理****/
        private void button_ok_Click(object sender, RoutedEventArgs e)
        {
            if (!IsAllChecked())
            {
                MessageBox.Show("全ての項目を設定して下さい。", "", MessageBoxButton.OK, MessageBoxImage.Warning);
                return;
            }

            string filepath = GetLayerInfoFilePath();

            //選択された表情のIDに一致する差分表情を取得
            FgFileReader reader = new FgFileReader(filepath);
            var eyeLayers = reader.GetGroupLayers(SelectedEye().LayerId);
            var mouthLayers = reader.GetGroupLayers(SelectedMouth().LayerId);
                        
            SelectedItems items = new SelectedItems()
            {
                LayerInfoFilePath = filepath,
                Size = SelectedSize(),
                CharacterInfo = SelectedPose(),
                Dress = SelectedDress(),
                IsWink = (bool)this.checkbox_wink.IsChecked,
                Eyes = eyeLayers.Where(s=> SlectedBlushLevel().IsMatch(s.Name)),
                IsLipSync = false,
                Mouths = mouthLayers,
                BlushLevel = SlectedBlushLevel()
            };

            banker["SelectedItems"] = items;
            banker["IsApply"] = true;

            this.Close();
        }