チャット枠の配置設定を表します。
Inheritance: HarrietViewModelBase
Esempio n. 1
0
        public ChatWindowPositionViewModel(ChatWindowPositionModel model)
        {
            _model = model;
            Layout = new ChatWindowLayoutViewModel(model.Layout);

            Left   = model.Left;
            Top    = model.Top;
            Width  = model.Width;
            Height = model.Height;

            AssignToModel(model);
        }
        public ChatWindowPositionViewModel(ChatWindowPositionModel model)
        {
            _model = model;
            Layout = new ChatWindowLayoutViewModel(model.Layout);

            Left = model.Left;
            Top = model.Top;
            Width = model.Width;
            Height = model.Height;

            AssignToModel(model);
        }
        /// <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;
        }
        /// <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;
        }