Example #1
0
        public static void OnWorldLoadFinishedHandler()
        {
            maskPart           = ResourceKey.Parse(maskTypeID + "-" + maskGroupID + "-" + maskInstanceID);
            sBloodBuffListener = EventTracker.AddListener(EventTypeId.kGotBuff, new ProcessEventDelegate(VTBlood.OnGotBuff));
            if (bathingCleans)
            {
                sBathListener = EventTracker.AddListener(EventTypeId.kEventTakeBath, new ProcessEventDelegate(VTBlood.OnClean));
            }
            if (brushingCleans)
            {
                sBrushListener = EventTracker.AddListener(EventTypeId.kBrushedTeeth, new ProcessEventDelegate(VTBlood.OnClean));
            }
            if (showeringCleans)
            {
                sShowerListener = EventTracker.AddListener(EventTypeId.kEventTakeShower, new ProcessEventDelegate(VTBlood.OnClean));
            }
            PartSearch search = new PartSearch();

            foreach (CASPart part in search)
            {
                if (part.Key == maskPart)
                {
                    VTBloodMask = part;
                }
            }
            search.Reset();
        }
Example #2
0
        public override void RequestAddCASPart(CASPart part, bool randomizeDesign)
        {
            if (MasterController.Settings.mAllowMultipleAccessories)
            {
                CASClothingCategory clothingCategory = CASClothingCategory.gSingleton;
                if (clothingCategory != null)
                {
                    if (clothingCategory.IsAccessoryType(part.BodyType))
                    {
                        CASLogic.GetSingleton().mRequestModelDirty = true;
                        CASLogic.CASOperationStack.Instance.Push(new AddCASPartOperationEx(part, randomizeDesign));
                        return;
                    }
                }
            }

            if (MasterController.Settings.mAllowMultipleMakeup)
            {
                CASMakeup makeup = CASMakeup.gSingleton;
                if (makeup != null)
                {
                    if (CASParts.IsMakeup(part.BodyType))
                    {
                        CASLogic.GetSingleton().mRequestModelDirty = true;
                        CASLogic.CASOperationStack.Instance.Push(new AddCASPartOperationEx(part, randomizeDesign));
                        return;
                    }
                }
            }

            base.RequestAddCASPart(part, randomizeDesign);
        }
Example #3
0
        protected static void ShowColorPickerTask()
        {
            try
            {
                CASMakeup ths = CASMakeup.gSingleton;
                if (ths == null)
                {
                    return;
                }

                CASPart part = new CASPart();
                if (CASMakeup.sCategory == BodyTypes.CostumeMakeup)
                {
                    if (ths.mCurrentPreset == null)
                    {
                        ICASModel      cASModel  = new CASModelProxy(Responder.Instance.CASModel);
                        List <CASPart> wornParts = cASModel.GetWornParts(CASMakeup.sCategory);

                        if (wornParts.Count > 0)
                        {
                            part = wornParts[wornParts.Count - 1];

                            ths.mCurrentPreset = new CASPartPreset(part, null);
                        }
                        else
                        {
                            return;
                        }
                    }
                }
                else
                {
                    ths.mCurrentPreset = new CASPartPreset((CASPart)ths.mGridMakeupParts.SelectedTag, null);
                }

                CASMultiColorPickerDialog.OnColorsChanged += OnColorsChanged;
                CASMultiColorPickerDialog.OnColorsSaved   += OnColorsSaved;
                CASMultiColorPickerDialog.OnDialogClosed  += OnDialogClosed;
                if (CASMakeup.sCategory == BodyTypes.CostumeMakeup)
                {
                    ths.Tick -= ths.OnTick;
                }
                Color[] makeupColors = GetMakeupColors(ths, CASMakeup.sCategory);
                if (makeupColors != null)
                {
                    CASMultiColorPickerDialog.Show(makeupColors, makeupColors.Length, true, null);
                }
                if (CASMakeup.sCategory == BodyTypes.CostumeMakeup)
                {
                    ths.Tick += ths.OnTick;
                }
                CASMultiColorPickerDialog.OnColorsChanged -= OnColorsChanged;
                CASMultiColorPickerDialog.OnColorsSaved   -= OnColorsSaved;
                CASMultiColorPickerDialog.OnDialogClosed  -= OnDialogClosed;
            }
            catch (Exception e)
            {
                Common.Exception("ShowColorPickerTask", e);
            }
        }
Example #4
0
        public override void RequestAddCASPart(CASPart part, bool randomizeDesign)
        {
            if (MasterController.Settings.mAllowMultipleAccessories)
            {
                CASClothingCategory clothingCategory = CASClothingCategory.gSingleton;
                if (clothingCategory != null)
                {
                    if (clothingCategory.IsAccessoryType(part.BodyType))
                    {
                        CASLogic.GetSingleton().mRequestModelDirty = true;
                        CASLogic.CASOperationStack.Instance.Push(new AddCASPartOperationEx(part, randomizeDesign));
                        return;
                    }
                }
            }

            if (MasterController.Settings.mAllowMultipleMakeup)
            {
                CASMakeup makeup = CASMakeup.gSingleton;
                if (makeup != null)
                {
                    if (CASParts.IsMakeup(part.BodyType))
                    {
                        CASLogic.GetSingleton().mRequestModelDirty = true;
                        CASLogic.CASOperationStack.Instance.Push(new AddCASPartOperationEx(part, randomizeDesign));
                        return;
                    }
                }
            }

            base.RequestAddCASPart(part, randomizeDesign);
        }
Example #5
0
        private static void SetHairTypeCategory(CASHair ths, CASHair.HairType cat)
        {
            try
            {
                ths.mHairType = cat;
                CASPart wornPart = ths.GetWornPart();
                ths.mHatsCustomWindow.Visible = ths.mHairType == CASHair.HairType.Hat;
                CASPhysical.gSingleton.SetLongPanel(ths.mHairType == CASHair.HairType.Hair);
                if (ths.mHairType == CASHair.HairType.Hat)
                {
                    ths.mHairColorPanel.Position = new Vector2(ths.mHairColorPanel.Position.x, 421f);
                    CASPhysical.gSingleton.SetShortPanelHeight(ths.mHatsCustomWindow.Area.Height);
                }
                else
                {
                    ths.mHairColorPanel.Position = new Vector2(ths.mHairColorPanel.Position.x, 395f);
                }

                ths.mDesignButton.Enabled = CASHair.PartIsHat(wornPart);
                LoadParts(ths);
                PopulateTypesGrid(ths);
                if (ths.mHairType == CASHair.HairType.Hair)
                {
                    ths.ReselectCurrentHairPresetItem();
                }
            }
            catch (Exception e)
            {
                Common.Exception("SetHairTypeCategory", e);
            }
        }
Example #6
0
        public static void OnGridPresetsClick(ItemGrid sender, ItemGridCellClickEvent itemClicked)
        {
            try
            {
                CASMakeup ths = CASMakeup.gSingleton;
                if (ths == null)
                {
                    return;
                }

                ths.UpdatePresetState();
                if (itemClicked.mTag is ResourceKey)
                {
                    ResourceKey mTag = (ResourceKey)itemClicked.mTag;
                    ColorInfo   info = ColorInfo.FromResourceKey(mTag);

                    CASPart part = (CASPart)ths.mGridMakeupParts.SelectedTag;

                    ths.SetMakeupColors(part, info.Colors, true, false);
                    Audio.StartSound("ui_tertiary_button");

                    ths.mCurrentPreset = new CASPartPreset(part, null);
                }
            }
            catch (Exception e)
            {
                Common.Exception("OnGridPresetsClick", e);
            }
        }
Example #7
0
            public PartPreset(CASPart part)
            {
                mPart     = part;
                mPresetId = uint.MaxValue;
                ResourceKey resKey = new ResourceKey(part.Key.InstanceId, 0x333406c, part.Key.GroupId);

                mPresetString = Simulator.LoadXMLString(resKey);
            }
Example #8
0
        private static void PopulatePartsGrid(CASMakeup ths, BodyTypes category)
        {
            if (category != BodyTypes.CostumeMakeup)
            {
                ItemGrid mGridMakeupParts = ths.mGridMakeupParts;
                mGridMakeupParts.Clear();
                CASPart       wornPart     = ths.GetWornPart(category);
                List <object> visibleParts = ths.GetVisibleParts(category);
                ResourceKey   layoutKey    = ResourceKey.CreateUILayoutKey("GenericCasItem", 0x0);
                foreach (object obj2 in visibleParts)
                {
                    CASPart part = (CASPart)obj2;
                    ths.AddPartsGridItem(mGridMakeupParts, layoutKey, part);
                    if (part.Key == wornPart.Key)
                    {
                        mGridMakeupParts.SelectedItem = mGridMakeupParts.Count - 0x1;
                    }
                }
                ths.mButtonColor.Enabled  = (mGridMakeupParts.SelectedItem != -1) && (mGridMakeupParts.SelectedItem != 0x0);
                ths.mButtonDelete.Enabled = ths.mButtonColor.Enabled;
            }
            else
            {
                ItemGrid mGridCostumeParts = ths.mGridCostumeParts;
                mGridCostumeParts.Clear();
                ths.mCurrentPreset     = null;
                ths.mCurrentFocusedRow = null;
                ths.mTempFocusedRow    = null;
                List <object> objectList = ths.GetVisibleParts(category);
                bool          shouldEnableCatalogProductFilter = false;
                CASPart       objectToNotRemove = ths.GetWornPart(category);
                ths.mContentTypeFilter.FilterObjects(objectList, out shouldEnableCatalogProductFilter, objectToNotRemove);
                ths.mButtonCostumeFilter.Enabled = false;
                ths.mButtonCostumeFilter.Tag     = shouldEnableCatalogProductFilter;
                foreach (CASPart part4 in objectList)
                {
                    if (!(part4.Key == ths.kInvalidCASPart.Key))
                    {
                        CASClothingRow row = UIManager.LoadLayout(ResourceKey.CreateUILayoutKey("CASClothingRow", 0x0)).GetWindowByExportID(0x1) as CASClothingRow;
                        row.CASPart       = part4;
                        row.RowController = ths;
                        if (row.CreateGridItems(true).Count > 0x0)
                        {
                            mGridCostumeParts.AddItem(new ItemGridCellItem(row, null));
                            if (row.SelectedItem != -1)
                            {
                                ths.mCurrentPreset = row.Selection as CASPartPreset;
                            }
                        }

                        CASClothingRowEx.Create(row, MasterController.Settings.mAllowMultipleMakeup);
                    }
                }
                ths.mContentTypeFilter.UpdateFilterButtonState();
            }
        }
Example #9
0
 protected void SelectItem(ICASRowController ths, CASPart part, CASPartPreset preset)
 {
     if (ths is CASClothingCategory)
     {
         CASClothingCategoryEx.SelectItem(ths as CASClothingCategory, part, preset, mAllowMultiple);
     }
     else if (ths is CASMakeup)
     {
         CASMakeupEx.SelectItem(ths as CASMakeup, part, preset, mAllowMultiple);
     }
 }
Example #10
0
 protected void RemoveItem(ICASRowController ths, CASPart part)
 {
     if (ths is CASClothingCategory)
     {
         CASClothingCategoryEx.RemoveItem(ths as CASClothingCategory, part);
     }
     else if (ths is CASMakeup)
     {
         CASMakeupEx.RemoveItem(ths as CASMakeup, part);
     }
 }
Example #11
0
 // Externalized to Dresser
 public static bool Allow(CASPart part, CASAgeGenderFlags age, CASAgeGenderFlags gender, CASAgeGenderFlags species, bool maternity, OutfitCategories category)
 {
     try
     {
         return (InvalidPartBooter.Allow(new CASParts.Wrapper(part), age, gender, species, maternity, category) == InvalidPartBase.Reason.None);
     }
     catch (Exception e)
     {
         Common.Exception("Allow", e);
         return true;
     }
 }
Example #12
0
        public static bool IsWorn(CASPart part)
        {
            foreach (CASPart worn in CASLogic.GetSingleton().mBuilder.GetWornParts(new BodyTypes[] { part.BodyType }))
            {
                if (worn.Key == part.Key)
                {
                    return(true);
                }
            }

            return(false);
        }
Example #13
0
 // Externalized to Dresser
 public static bool Allow(CASPart part, CASAgeGenderFlags age, CASAgeGenderFlags gender, CASAgeGenderFlags species, bool maternity, OutfitCategories category)
 {
     try
     {
         return(InvalidPartBooter.Allow(new CASParts.Wrapper(part), age, gender, species, maternity, category) == InvalidPartBase.Reason.None);
     }
     catch (Exception e)
     {
         Common.Exception("Allow", e);
         return(true);
     }
 }
Example #14
0
 public PatternObjectInitParams(List <SewingSkill.FabricType> fabrics, bool magic, int removeAmount, int skilllevel, ResourceKey resKey, bool clothing, CASPart outfit, string clothingName, bool wasGifted)
 {
     // IF this is needed, make sure to add price values and such. (See: NectarBottleObjectInitParams)
     fabricsNeeded          = fabrics;
     IsMagic                = magic;
     mSkilllevel            = skilllevel;
     amountOfFabricToRemove = removeAmount;
     resKeyPattern          = resKey;
     isClothing             = clothing;
     mSimOutfit             = outfit;
     mClothingName          = clothingName;
     mWasPatternGifted      = wasGifted;
 }
Example #15
0
        public static void OnGridPartsClick(ItemGrid sender, ItemGridCellClickEvent args)
        {
            try
            {
                CASMakeup ths = CASMakeup.gSingleton;
                if (ths == null)
                {
                    return;
                }

                if (args.mTag is CASPart)
                {
                    CASModelProxy cASModel = new CASModelProxy(Responder.Instance.CASModel);

                    List <CASPart> wornParts = cASModel.GetWornParts(CASMakeup.sCategory);

                    CASPart tag = (CASPart)args.mTag;
                    if (tag.Key == ths.kInvalidCASPart.Key)
                    {
                        foreach (CASPart wornPart in wornParts)
                        {
                            cASModel.RequestRemoveCASPart(wornPart);
                        }
                    }
                    else if (wornParts.Contains(tag))
                    {
                        if (args.mButton == MouseKeys.kMouseRight)
                        {
                            cASModel.RequestRemoveCASPart(tag);
                        }
                        else
                        {
                            Color[] makeupColors = ths.GetMakeupColors(CASMakeup.sCategory);
                            ths.SetMakeupColors(tag, makeupColors, false, false);
                        }
                    }
                    else
                    {
                        cASModel.RequestAddCASPart(tag, false);

                        ths.mCurrentPreset = new CASPartPreset(tag, null);
                    }

                    Audio.StartSound("ui_tertiary_button");
                }
            }
            catch (Exception e)
            {
                Common.Exception("OnGridPartsClick", e);
            }
        }
Example #16
0
 public PatternObjectInitParams(ulong createGroupId, Vector3 createAtPostion, List <SewingSkill.FabricType> fabrics, bool magic, int skilllevel, int level, Vector3 createFacing, HiddenFlags hiddenFlags, int removeAmount, string name, ResourceKey resKey, bool clothing, CASPart outfit, string clothingName, bool wasGifted)
     : base(createGroupId, createAtPostion, level, createFacing, hiddenFlags)
 {
     // IF this is needed, make sure to add price values and such. (See: NectarBottleObjectInitParams)
     fabricsNeeded          = fabrics;
     IsMagic                = magic;
     mSkilllevel            = skilllevel;
     amountOfFabricToRemove = removeAmount;
     resKeyPattern          = resKey;
     isClothing             = clothing;
     mSimOutfit             = outfit;
     mClothingName          = clothingName;
     mWasPatternGifted      = wasGifted;
 }
Example #17
0
        private static void ReplacePart(CASLogic ths, CASPart newPart, string preset)
        {
            List <CASPart> wornParts = ths.mBuilder.GetWornParts(new BodyTypes[] { newPart.BodyType });

            foreach (CASPart worn in wornParts)
            {
                if (newPart.Key == worn.Key)
                {
                    CASLogic.CASOperationStack.Instance.Active.AddStep(new CASLogic.ApplyPresetStringToPartStep(newPart, preset));
                    return;
                }
            }

            ths.RequestAddPart(newPart, preset);
        }
Example #18
0
        public static void OnWorldLoadFinishedHandler(object sender, EventArgs e)
        {
            maskPartSkin         = ResourceKey.Parse(0x034AEECB + "-" + 0x00000000 + "-" + 0x9F734D5B9D920083);
            sSkinAddBuffListener = EventTracker.AddListener(EventTypeId.kGotBuff, new ProcessEventDelegate(SkinAdd.OnGotBuff));
            PartSearch search = new PartSearch();

            foreach (CASPart part in search)
            {
                if (part.Key == maskPartSkin)
                {
                    SkinAddMask = part;
                }
            }
            search.Reset();
        }
Example #19
0
 public static void OnWorldLoadFinishedHandler()
 {
     VTBiteMaskPart        = ResourceKey.Parse(makeupTypeID + "-" + makeupGroupID + "-" + makeupInstanceID);
     sBiteMarkBuffListener = EventTracker.AddListener(EventTypeId.kGotBuff, new ProcessEventDelegate(VTBiteMark.OnGotBuff));
     {
         PartSearch search = new PartSearch();
         foreach (CASPart part in search)
         {
             if (part.Key == VTBiteMaskPart)
             {
                 biteMask = part;
             }
         }
         search.Reset();
     }
 }
Example #20
0
        public static void RemoveItem(CASMakeup ths, CASPart part)
        {
            ICASModel cASModel = new CASModelProxy(Responder.Instance.CASModel);

            cASModel.RequestRemoveCASPart(part);

            /*
             * foreach (CASPart part in cASModel.GetWornParts(partType))
             * {
             *  cASModel.RequestRemoveCASPart(part);
             * }
             */
            ths.mCurrentPreset = null;
            ths.UpdateCostumePresetState();
            Audio.StartSound("ui_tertiary_button");
        }
Example #21
0
 public static void OnWorldLoadFinishedHandler()
 {
     VTThirstMaskPart    = ResourceKey.Parse(kMaskTypeID + "-" + kMaskGroupID + "-" + kMaskInstanceID);
     sThirstBuffListener = EventTracker.AddListener(EventTypeId.kGotBuff, new ProcessEventDelegate(VTThirst.OnGotBuff));
     AlarmManager.Global.AddAlarm(40f, TimeUnit.Seconds, new AlarmTimerCallback(VTThirst.AddChildrenEyes), "Add Children Eyes Procces", AlarmType.NeverPersisted, null);
     {
         PartSearch search = new PartSearch();
         foreach (CASPart part in search)
         {
             if (part.Key == VTThirstMaskPart)
             {
                 ThirstMask = part;
             }
         }
         search.Reset();
     }
 }
Example #22
0
        public static void SelectItem(CASMakeup ths, CASPart part, CASPartPreset preset, bool allowMultiple)
        {
            ICASModel      cASModel  = new CASModelProxy(Responder.Instance.CASModel);
            List <CASPart> wornParts = cASModel.GetWornParts(part.BodyType);
            bool           flag      = false;

            if ((part.Key == ths.kInvalidCASPart.Key) && (!allowMultiple))
            {
                foreach (CASPart part2 in wornParts)
                {
                    cASModel.RequestRemoveCASPart(part2);
                }
            }
            else if (!wornParts.Contains(part))
            {
                flag = true;
            }

            if (preset != null)
            {
                ths.mCurrentPreset = preset;
                if (preset.mPresetString != null)
                {
                    if (flag)
                    {
                        cASModel.RequestAddCASPart(part, preset.mPresetString);
                    }
                    else
                    {
                        cASModel.RequestCommitPresetToPart(part, preset.mPresetString);
                    }
                }
            }
            else if (flag)
            {
                ths.mCurrentPreset = new CASPartPreset(part, null);

                cASModel.RequestAddCASPart(part, false);
            }

            ths.UpdateCostumePresetState();
            Audio.StartSound("ui_tertiary_button");
        }
Example #23
0
        public static string PartToString(CASPart part)
        {
            Common.StringBuilder msg = new Common.StringBuilder();

            msg += Common.NewLine + "Body Type: " + part.BodyType;
            msg += Common.NewLine + "  Instance: 0x" + part.Key.InstanceId.ToString("X16");
            msg += Common.NewLine + "  Group: 0x" + part.Key.GroupId.ToString("X8");
            msg += Common.NewLine + "  Ages: " + (part.AgeGenderSpecies & CASAgeGenderFlags.AgeMask);
            msg += Common.NewLine + "  Genders: " + (part.AgeGenderSpecies & CASAgeGenderFlags.GenderMask);
            msg += Common.NewLine + "  Species: " + (part.AgeGenderSpecies & CASAgeGenderFlags.SpeciesMask);
            msg += Common.NewLine + "  Categories: ";

            foreach (OutfitCategories category in Enum.GetValues(typeof(OutfitCategories)))
            {
                if (category == OutfitCategories.None)
                {
                    continue;
                }

                if ((part.CategoryFlags & (uint)category) == (uint)category)
                {
                    msg += category + ",";
                }
            }

            msg += Common.NewLine + "  Extended: ";

            foreach (OutfitCategoriesExtended category in Enum.GetValues(typeof(OutfitCategoriesExtended)))
            {
                if ((part.CategoryFlags & (uint)category) == (uint)category)
                {
                    msg += category + ",";
                }
            }

            msg += Common.NewLine + "  BotPart: " + OutfitUtils.IsBotPart(part);

            return(msg.ToString());
        }
Example #24
0
        public static void OnOpacitySliderMouseUp(WindowBase sender, UIMouseEventArgs args)
        {
            try
            {
                CASMakeup ths = CASMakeup.gSingleton;
                if (ths == null)
                {
                    return;
                }

                Slider slider = sender as Slider;
                if (slider != null)
                {
                    CASPart part = (CASPart)ths.mGridMakeupParts.SelectedTag;

                    ths.SetMakeupOpacity(part, ((float)slider.Value) / ((float)slider.MaxValue), true);
                }
            }
            catch (Exception e)
            {
                Common.Exception("OnOpacitySliderMouseUp", e);
            }
        }
Example #25
0
 public bool ApplyPartPreset(CASPart part, SimOutfit sourceOutfit)
 {
     return new PartPreset(part, sourceOutfit).Apply(mBuilder);
 }
Example #26
0
 public PartPreset(CASPart part, uint index)
     : base(part, CASUtils.PartDataGetPresetId(part.Key, index), CASUtils.PartDataGetPreset(part.Key, index))
 { }
Example #27
0
 public PartPreset(CASPart part, string preset)
     : base(part, preset)
 { }
Example #28
0
        public static string PartToString(CASPart part)
        {
            Common.StringBuilder msg = new Common.StringBuilder();

            msg += Common.NewLine + "Body Type: " + part.BodyType;
            msg += Common.NewLine + "  Instance: 0x" + part.Key.InstanceId.ToString("X16");
            msg += Common.NewLine + "  Group: 0x" + part.Key.GroupId.ToString("X8");
            msg += Common.NewLine + "  Ages: " + (part.AgeGenderSpecies & CASAgeGenderFlags.AgeMask);
            msg += Common.NewLine + "  Genders: " + (part.AgeGenderSpecies & CASAgeGenderFlags.GenderMask);
            msg += Common.NewLine + "  Species: " + (part.AgeGenderSpecies & CASAgeGenderFlags.SpeciesMask);
            msg += Common.NewLine + "  Categories: ";

            foreach (OutfitCategories category in Enum.GetValues(typeof(OutfitCategories)))
            {
                if (category == OutfitCategories.None) continue;

                if ((part.CategoryFlags & (uint)category) == (uint)category)
                {
                    msg += category + ",";
                }
            }

            msg += Common.NewLine + "  Extended: ";

            foreach (OutfitCategoriesExtended category in Enum.GetValues(typeof(OutfitCategoriesExtended)))
            {
                if ((part.CategoryFlags & (uint)category) == (uint)category)
                {
                    msg += category + ",";
                }
            }

            msg += Common.NewLine + "  BotPart: " + OutfitUtils.IsBotPart(part);

            return msg.ToString();
        }
Example #29
0
 public void RequestAddPartAndCommitPreset(CASPart part, KeyValuePair<string, Dictionary<string, Complate>> presetEntry)
 {
     mCASModel.RequestAddPartAndCommitPreset(part, presetEntry);
 }
Example #30
0
 public static PartPreset GetPartPreset(CASPart part, SimOutfit sourceOutfit)
 {
     return(new PartPreset(part, sourceOutfit.GetPartPreset(part.Key)));
 }
Example #31
0
 public void RequestRemoveCASParts(CASPart[] parts)
 {
     mCASModel.RequestRemoveCASParts(parts);
 }
Example #32
0
 public void RequestRemoveCASPart(CASPart part)
 {
     mCASModel.RequestRemoveCASPart(part);
 }
Example #33
0
 public void RequestRandomDesign(CASPart part)
 {
     mCASModel.RequestRandomDesign(part);
 }
Example #34
0
 public void RequestCommitPresetToPart(CASPart part, string preset, bool finalize)
 {
     mCASModel.RequestCommitPresetToPart(part, preset, finalize);
 }
Example #35
0
 public void RequestCommitPresetToPart(CASPart part, KeyValuePair<string, Dictionary<string, Complate>> presetEntry, bool finalize)
 {
     mCASModel.RequestCommitPresetToPart(part, presetEntry, finalize);
 }
Example #36
0
 public void RequestCommitPresetToPart(CASPart part, string preset)
 {
     mCASModel.RequestCommitPresetToPart(part, preset);
 }
Example #37
0
 public PartPreset(CASPart part, SimOutfit sourceOutfit)
     : base(part, sourceOutfit.GetPartPreset(part.Key))
 {
 }
Example #38
0
 public void SavePartPreset(CASPart part, string presetName)
 {
     mCASModel.SavePartPreset(part, presetName);
 }
Example #39
0
            public Wrapper(CASPart part)
            {
                mPart = part;

                mType = UIUtils.GetCustomContentType(mPart.Key);
            }
Example #40
0
 public void OnCASPartRemovedProxy(CASPart part)
 {
     try
     {
         if (OnCASPartRemoved != null)
         {
             OnCASPartRemoved(part);
         }
     }
     catch (Exception e)
     {
         Common.Exception("OnCASPartRemovedProxy", e);
     }
 }
Example #41
0
 public bool ActiveWardrobeContains(CASPart part)
 {
     return mCASModel.ActiveWardrobeContains(part);
 }
Example #42
0
 public void OnPresetAppliedToPartProxy(CASPart part, string preset)
 {
     try
     {
         if (OnPresetAppliedToPart != null)
         {
             OnPresetAppliedToPart(part, preset);
         }
     }
     catch (Exception e)
     {
         Common.Exception("OnPresetAppliedToPartProxy", e);
     }
 }
        public static void OnWorldLoadFinishedHandler(object sender, EventArgs e)
        {
            maskPartChildUnisex   = ResourceKey.Parse(0x034AEECB + "-" + 0x00000000 + "-" + 0x9F734D5B9D920083);
            maskPartAdultFemale   = ResourceKey.Parse(0x034AEECB + "-" + 0x00000000 + "-" + 0x0805FC6BD47FF5C7);
            maskPartAdultMale     = ResourceKey.Parse(0x034AEECB + "-" + 0x00000000 + "-" + 0x8FFB29C402EFE024);
            maskPartTeenMale      = ResourceKey.Parse(0x034AEECB + "-" + 0x00000000 + "-" + 0xCD9D1D26E4ABD38A);
            maskPartTeenFemale    = ResourceKey.Parse(0x034AEECB + "-" + 0x00000000 + "-" + 0x02172C0B1C6D80F1);
            maskPartElderFemale   = ResourceKey.Parse(0x034AEECB + "-" + 0x00000000 + "-" + 0xA13212F706933D83);
            maskPartElderMale     = ResourceKey.Parse(0x034AEECB + "-" + 0x00000000 + "-" + 0xFDF0F0D989D601D0);
            sWolfFeetBuffListener = EventTracker.AddListener(EventTypeId.kGotBuff, new ProcessEventDelegate(WolfFeet.OnGotBuff));
            PartSearch search = new PartSearch();

            foreach (CASPart part in search)
            {
                if (part.Key == maskPartChildUnisex)
                {
                    WolfFeetMaskChildUnisex = part;
                }
            }
            search.Reset();
            PartSearch search2 = new PartSearch();

            foreach (CASPart part in search2)
            {
                if (part.Key == maskPartTeenFemale)
                {
                    WolfFeetMaskTeenFemale = part;
                }
            }
            search2.Reset();
            PartSearch search3 = new PartSearch();

            foreach (CASPart part in search3)
            {
                if (part.Key == maskPartTeenMale)
                {
                    WolfFeetMaskTeenMale = part;
                }
            }
            search3.Reset();
            PartSearch search4 = new PartSearch();

            foreach (CASPart part in search4)
            {
                if (part.Key == maskPartAdultFemale)
                {
                    WolfFeetMaskAdultFemale = part;
                }
            }
            search4.Reset();
            PartSearch search5 = new PartSearch();

            foreach (CASPart part in search5)
            {
                if (part.Key == maskPartAdultMale)
                {
                    WolfFeetMaskAdultMale = part;
                }
            }
            search5.Reset();
            PartSearch search6 = new PartSearch();

            foreach (CASPart part in search6)
            {
                if (part.Key == maskPartElderFemale)
                {
                    WolfFeetMaskElderFemale = part;
                }
            }
            search6.Reset();
            PartSearch search7 = new PartSearch();

            foreach (CASPart part in search7)
            {
                if (part.Key == maskPartElderMale)
                {
                    WolfFeetMaskElderMale = part;
                }
            }
            search7.Reset();
        }
Example #44
0
 public void RequestAddCASPartAndApplyBlend(CASPart part, BaseBlend blend, float blendAmount)
 {
     mCASModel.RequestAddCASPartAndApplyBlend(part, blend, blendAmount);
 }
Example #45
0
            public PartPreset(CASPart part)
            {
                mPart = part;
                mPresetId = uint.MaxValue;

                ResourceKey resKey = new ResourceKey(part.Key.InstanceId, 0x333406c, part.Key.GroupId);
                mPresetString = Simulator.LoadXMLString(resKey);
            }
Example #46
0
 public void RequestAddPeltLayer(CASPart part, string preset)
 {
     mCASModel.RequestAddPeltLayer(part, preset);
 }
Example #47
0
 public PartPreset(CASPart part, SimOutfit sourceOutfit)
     : base(part, sourceOutfit.GetPartPreset(part.Key))
 { }
Example #48
0
 public void RequestChangePeltLayerPart(CASPart newPart, CASPart oldPart, string preset)
 {
     mCASModel.RequestChangePeltLayerPart(newPart, oldPart, preset);
 }
Example #49
0
 public static PartPreset GetPartPreset(CASPart part, SimOutfit sourceOutfit)
 {
     return new PartPreset(part, sourceOutfit.GetPartPreset(part.Key));
 }
Example #50
0
 public void RequestMovePeltLayer(CASPart part, CASPart newLocationPart)
 {
     mCASModel.RequestMovePeltLayer(part, newLocationPart);
 }
Example #51
0
            public Wrapper(CASPart part)
            {
                mPart = part;

                mType = UIUtils.GetCustomContentType(mPart.Key);
            }
Example #52
0
 public void RequestPeltHueShift(Vector3 targetHSV, CASPart basePart, List<CASPart> partsToShift, bool finalize)
 {
     mCASModel.RequestPeltHueShift(targetHSV, basePart, partsToShift, finalize);
 }
Example #53
0
 public PartPreset(CASPart part, string preset)
     : base(part, preset)
 {
 }
Example #54
0
 public void RequestSetPeltLayersOpacity(CASPart part, List<CASPart> mLinkedParts, float newOpacity, bool finalize)
 {
     mCASModel.RequestSetPeltLayersOpacity(part, mLinkedParts, newOpacity, finalize);
 }
Example #55
0
 public PartPreset(CASPart part, uint index)
     : base(part, CASUtils.PartDataGetPresetId(part.Key, index), CASUtils.PartDataGetPreset(part.Key, index))
 {
 }
Example #56
0
 public void RequestSetPeltLayersRotation(CASPart part, List<CASPart> mLinkedParts, Vector2 centerPoint, float newRotation, bool finalize)
 {
     mCASModel.RequestSetPeltLayersRotation(part, mLinkedParts, centerPoint, newRotation, finalize);
 }
Example #57
0
 public bool ApplyPartPreset(CASPart part, SimOutfit sourceOutfit)
 {
     return(new PartPreset(part, sourceOutfit).Apply(mBuilder));
 }
Example #58
0
 public void RequestSetPeltLayersTranslationScale(CASPart part, List<CASPart> mLinkedParts, float scaleScaleX, float scaleScaleY, Vector2 newCenterPoint, Vector2 oldCenterPoint, bool finalize)
 {
     mCASModel.RequestSetPeltLayersTranslationScale(part, mLinkedParts, scaleScaleX, scaleScaleY, newCenterPoint, oldCenterPoint, finalize);
 }
Example #59
0
 public string GetRobotHoverVFX(CASPart part)
 {
     return mCASModel.GetRobotHoverVFX(part);
 }
Example #60
0
        public static void RemoveItem(CASClothingCategory ths, CASPart part)
        {
            ths.mModel.RequestRemoveCASPart(part);

            Audio.StartSound("ui_tertiary_button");
        }