//public HairColorSelectionDTO AlienHairColorPrimary { get; protected set; } //public HairColorSelectionDTO AlienHairColorSecondary { get; protected set; } public DresserDTO(Pawn pawn, CurrentEditorEnum currentEditorEnum, IEnumerable <CurrentEditorEnum> editors) { this.Pawn = pawn; this.CurrentEditorEnum = currentEditorEnum; this.EditorTypeSelectionDto = new EditorTypeSelectionDTO(this.CurrentEditorEnum, new List <CurrentEditorEnum>(editors)); this.EditorTypeSelectionDto.SelectionChangeListener += delegate(object sender) { this.CurrentEditorEnum = (CurrentEditorEnum)this.EditorTypeSelectionDto.SelectedItem; if (this.CurrentEditorEnum == CurrentEditorEnum.ChangeDresserHair) { Prefs.HatsOnlyOnMap = true; } else { Prefs.HatsOnlyOnMap = false; } }; this.HasHair = true; this.BodyTypeSelectionDto = null; this.GenderSelectionDto = null; this.HairStyleSelectionDto = null; this.HairColorSelectionDto = null; this.GradientHairColorSelectionDto = null; this.SkinColorSliderDto = null; this.HeadTypeSelectionDto = null; this.AlienSkinColorPrimary = null; this.AlienSkinColorSecondary = null; //this.AlienHairColorPrimary = null; //this.AlienHairColorSecondary = null; if (this.EditorTypeSelectionDto.Contains(CurrentEditorEnum.ChangeDresserApparelColor)) { this.ApparelSelectionsContainer = new ApparelColorSelectionsContainer(this.Pawn.apparel.WornApparel, IOUtil.LoadColorPresets(ColorPresetType.Apparel)); } if (this.EditorTypeSelectionDto.Contains(CurrentEditorEnum.ChangeDresserApparelLayerColor)) { this.ApparelLayerSelectionsContainer = new ApparelLayerSelectionsContainer(this.Pawn, IOUtil.LoadColorPresets(ColorPresetType.Apparel)); } this.Initialize(); }
public static void AddColorSelectorWidget(float left, float top, float width, SelectionColorWidgetDTO selectionDto, ColorPresetsDTO presetsDto) { List <SelectionColorWidgetDTO> l = new List <SelectionColorWidgetDTO>(1) { selectionDto }; AddColorSelectorWidget(left, top, width, l, presetsDto); }
public static void AddColorSelectorWidget(float left, float top, float width, SelectionColorWidgetDTO selectionDto, ColorPresetsDTO presetsDto) { List <SelectionColorWidgetDTO> l = new List <SelectionColorWidgetDTO>(1); l.Add(selectionDto); /*if (Settings.UseColorPickerV2) * { * AddColorSelectorV2Widget(left, top, width, l, presetsDto); * } * else * {*/ AddColorSelectorWidget(left, top, width, l, presetsDto); //} }