/// <summary>モデルの設定一覧から設定画面のビューモデルを初期化します。</summary> /// <param name="modelSetting">モデル側の設定</param> public SettingWindowViewModel(CharacterSetting setting) { Voice = new VoiceViewModel(setting.Voice); ChatWindowText = new ChatWindowTextViewModel(setting.ChatWindowText); ChatWindowColor = new ChatWindowColorViewModel(setting.ChatWindowColor); ChatWindowLayout = new ChatWindowLayoutViewModel(setting.ChatWindowLayout); ShownCharacterName = new ShownCharacterNameViewModel(setting.ShownCharacterName); CharacterAppearance = new CharacterAppearanceViewModel(setting.CharacterAppearance); ScriptApi = new ScriptApiSettingViewModel(setting.ScriptApi); ScriptUpdate = new ScriptUpdateSettingViewModel(setting.ScriptUpdate); ScriptRoutine = new ScriptRoutineSettingViewModel(setting.ScriptRoutine); Nadenade = new NadeSettingViewModel(setting.Nadenade); CharacterName = setting.CharacterName; }