Example #1
0
        private static void DrawTextVariables(JArray AssetProperties)
        {
            DrawDisplayName(_displayName);
            DrawDescription(_description);

            switch (AssetsLoader.ExportType)
            {
            case "AthenaBackpackItemDefinition":
            case "AthenaBattleBusItemDefinition":
            case "AthenaCharacterItemDefinition":
            case "AthenaConsumableEmoteItemDefinition":
            case "AthenaSkyDiveContrailItemDefinition":
            case "AthenaDanceItemDefinition":
            case "AthenaEmojiItemDefinition":
            case "AthenaGliderItemDefinition":
            case "AthenaItemWrapDefinition":
            case "AthenaLoadingScreenItemDefinition":
            case "AthenaMusicPackItemDefinition":
            case "AthenaPetCarrierItemDefinition":
            case "AthenaPickaxeItemDefinition":
            case "AthenaSprayItemDefinition":
            case "AthenaToyItemDefinition":
            case "AthenaVictoryPoseItemDefinition":
            case "FortBannerTokenType":
                DrawToBottom("Left", _shortDescription);
                DrawToBottom("Right", _cosmeticSource);
                break;

            case "FortWeaponRangedItemDefinition":
            case "AthenaGadgetItemDefinition":
                DrawToBottom("Left", _maxStackSize);
                DrawToBottom("Right", _itemAction);
                break;

            case "FortVariantTokenType":
                DrawToBottom("Left", _shortDescription);
                DrawToBottom("Right", _cosmeticItemDefinition);
                break;

            case "FortHeroType":
                HeroGameplayDefinition.GetHeroPerk(AssetProperties);
                break;
            }

            if (_userFacingFlagsToken != null)
            {
                foreach (JToken uFF in _userFacingFlagsToken)
                {
                    IconUserFacingFlags.DrawUserFacingFlag(uFF);
                }
                IconUserFacingFlags.xCoords = 4 - 25; //reset uFF coords
            }
        }
Example #2
0
        private static void DrawTextVariables(JArray AssetProperties)
        {
            DrawDisplayName(_displayName);
            DrawDescription(_description);

            switch (AssetsLoader.ExportType)
            {
            case "AthenaBackpackItemDefinition":
            case "AthenaBattleBusItemDefinition":
            case "AthenaCharacterItemDefinition":
            case "AthenaConsumableEmoteItemDefinition":
            case "AthenaSkyDiveContrailItemDefinition":
            case "AthenaDanceItemDefinition":
            case "AthenaEmojiItemDefinition":
            case "AthenaGliderItemDefinition":
            case "AthenaItemWrapDefinition":
            case "AthenaLoadingScreenItemDefinition":
            case "AthenaMusicPackItemDefinition":
            case "AthenaPetCarrierItemDefinition":
            case "AthenaPickaxeItemDefinition":
            case "AthenaSprayItemDefinition":
            case "AthenaToyItemDefinition":
            case "AthenaVictoryPoseItemDefinition":
            case "FortBannerTokenType":
                DrawToBottom("Left", _shortDescription);
                DrawToBottom("Right", _cosmeticSource);
                break;

            case "FortWeaponRangedItemDefinition":
            case "AthenaGadgetItemDefinition":
                DrawToBottom("Left", _maxStackSize);
                DrawToBottom("Right", _itemAction);
                break;

            case "FortVariantTokenType":
                DrawToBottom("Left", _shortDescription);
                DrawToBottom("Right", _cosmeticItemDefinition);
                break;

            case "FortHeroType":
                HeroGameplayDefinition.GetHeroPerk(AssetProperties);
                break;
            }

            if (_userFacingFlagsToken != null)
            {
                foreach (JToken uFF in _userFacingFlagsToken)
                {
                    IconUserFacingFlags.DrawUserFacingFlag(uFF);
                }
                IconUserFacingFlags.xCoords = 4 - 25; //reset uFF coords
            }

            if (_userHeroFlagsToken != null)
            {
                foreach (JToken uFF in _userHeroFlagsToken)
                {
                    IconUserFacingFlags.DrawHeroFacingFlag(uFF);
                }
                IconUserFacingFlags.xCoords = 4 - 25; //reset uFF coords
            }

            if (_userWeaponFlagsToken != null)
            {
                foreach (JToken uFF in _userWeaponFlagsToken)
                {
                    IconUserFacingFlags.DrawWeaponFacingFlag(uFF);
                }
                IconUserFacingFlags.xCoords = 4 - 25; //reset uFF coords
            }

            if (!string.IsNullOrEmpty(_miniMapIconBrushPath) && !_miniMapIconBrushPath.Contains("UI_Radar_EnemyDot_White"))
            {
                using (System.IO.Stream image = AssetsUtility.GetStreamImageFromPath(_miniMapIconBrushPath))
                {
                    if (image != null)
                    {
                        System.Windows.Media.Imaging.BitmapImage bmp = new System.Windows.Media.Imaging.BitmapImage();
                        bmp.BeginInit();
                        bmp.CacheOption  = System.Windows.Media.Imaging.BitmapCacheOption.OnLoad;
                        bmp.StreamSource = image;
                        bmp.EndInit();
                        bmp.Freeze();

                        IconUserFacingFlags.xCoords += 25;
                        IconCreator.ICDrawingContext.DrawImage(bmp, new Rect(IconUserFacingFlags.xCoords, 4, 25, 25));
                        IconUserFacingFlags.xCoords = 4 - 25; //reset uFF coords
                    }
                }
            }
        }